Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (NewbieZorro, TipmyPip, AndrewAMD), 14,749 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: event impact with the right entity [Re: Dega] #406567
08/24/12 04:32
08/24/12 04:32
Joined: Jul 2008
Posts: 2,110
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,110
Germany
Code:
PRAGMA_PATH "codes"



Code:
#include "anyscript.c"



Quote:
#include "filename"
#include <filename>
Reads an additional script from the given file name and then continues compiling the original script file. This way a project can contain an arbitrary number of scripts.
Remarks:
Scripts are read from the work folder or from subfolders; in the latter case the path to the script must be given, relative to the work folder. Due to the ambiguity of relative paths, scripts in project subfolders should not include further scripts.
If the script name is given in angular brackets <..>, it is searched in the include folder. The include folder contains all common .h include files and the default.c script.
If the script name is given in double quotes "...", it is first searched in the work folder, then in the path defined by PRAGMA_PATH. The file search PATHs given in a WDL file are irrelevant for #include statements.
If a path to an include script begins with "%EXE_DIR%", it's searched in a subfolder of the program folder (like "%EXE_DIR%\template_7\code\template.c").
Script names must not be longer than 15 characters and must not contain spaces or nonstandard characters.
If no #include statement is found in the main script, acknex.h and default.c are automatically included.
Example (lite-C)
#include <acknex.h> // include for Pure Mode
#include <default.c> // default key functions
#include <mtlFX.c> // default materials and shaders
#include "scripts\venture.c"
#include "%EXE_DIR%\template_7\code\template.c"
See also:
BIND, LEVEL, PATH, RESOURCE, PRAGMA_PATH
&#9658; latest version online


Last edited by rayp; 08/24/12 04:34.

Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: event impact with the right entity [Re: rayp] #406568
08/24/12 05:04
08/24/12 05:04
Joined: Dec 2010
Posts: 100
D
Dega Offline OP
Member
Dega  Offline OP
Member
D

Joined: Dec 2010
Posts: 100
This is so strange. When I try to compile it says it is an undeclared identifier as if it has no clue what it is? I use #include <acknex.h> right?

Last edited by Dega; 08/24/12 05:19.

boolean my.awesomeness = so true;
Re: event impact with the right entity [Re: Dega] #406569
08/24/12 05:34
08/24/12 05:34
Joined: Jul 2008
Posts: 2,110
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,110
Germany
Mhm...hard to say from here.

Code:
// typical main.c ---------------------------
#include <acknex.h> // include for Pure Mode
#include <default.c> // default key functions
// ------------------------------------------
PRAGMA_PATH    "scripts"
// ------------------------------------------
#include "anyscript.c"
// ------------------------------------------
STRING* map01 = "mymap.WMB";
// ------------------------------------------
void main()
{
 level_load(map01);
}
// ------------------------------------------




Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: event impact with the right entity [Re: rayp] #406585
08/24/12 16:59
08/24/12 16:59
Joined: Dec 2010
Posts: 100
D
Dega Offline OP
Member
Dega  Offline OP
Member
D

Joined: Dec 2010
Posts: 100
Well now I don't have my script anymore. The file is corrupted. frown I am just going to have to redo it again but before that I pasted what you posted and it gave me the exact same compiling error.


boolean my.awesomeness = so true;
Re: event impact with the right entity [Re: Dega] #406590
08/25/12 00:09
08/25/12 00:09
Joined: Dec 2010
Posts: 100
D
Dega Offline OP
Member
Dega  Offline OP
Member
D

Joined: Dec 2010
Posts: 100
Hey I tried to add a script through SED without using code by going to Tools->Add Script but it said it is missing a file called "template.xml"? (This is what I am starting out with my remake of this project)

Last edited by Dega; 08/25/12 00:11.

boolean my.awesomeness = so true;
Re: event impact with the right entity [Re: Dega] #406763
08/29/12 03:16
08/29/12 03:16
Joined: Aug 2012
Posts: 3
America
J
jacklink Offline
Guest
jacklink  Offline
Guest
J

Joined: Aug 2012
Posts: 3
America
Dear, again in the http://www.mmolive.com/ valentine's day. I don't know how many of you have me to your chocolate, but I see clearly... http://www.mmohome.com/
!This year I can send--to reduce weight tea?

Page 2 of 2 1 2

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1