Gamestudio Links
Zorro Links
Newest Posts
What are you working on?
by txesmi
Today at 12:27
save you.x in *.txt with ent_next doesen't work :(
by Ezzett
Today at 10:24
Log file - overwrite and/or append
by DdlV
Today at 00:14
c_scan and c_trace / TRIGGER
by Ayumi
Yesterday at 22:57
The Z Systems
by AndrewAMD
Yesterday at 18:08
Always accept detrended result as more realistic?
by jcl
Yesterday at 07:50
Login 0 IG ..
03/15/18 20:50
AUM Magazine
Latest Screens
Forgotten Tales - Demo version
Triton Wing now available on Steam
AckCon'17: Lotter vs The World
Who's Online
14 registered (easyX, FLD, MatPed, dmac, DAVIDMORETON, painkiller, boatman, 20BN, maurice1973, Ezzett, 1 invisible), 516 Guests and 3 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
maurice1973, IMMO_VIE, Enric, rhodes386, Igz
17916 Registered Users
Topic Options
Rate This Topic
#468071 - 09/16/17 18:55 Problem using %EXE_DIR% with #define PRAGMA_PATH
Eper Offline

Registered: 09/20/15
Posts: 1
Hello, I have the free version of Gamestudio.

For some reason, when I use #define PRAGMA_PATH "%EXE_DIR%\Entities" and run the script it doesn't find my entities.
However, when I put an absolute path ( #define PRAGMA_PATH "C:\Game\Entities" ) the script will run with out any problems.

Here is my code:

#include <acknex.h>
#include <default.c>


#define PRAGMA_PATH "%EXE_DIR%\Entities"

function main()
vec_set(screen_color,vector(50,1,1)); // dark blue
vec_set(sky_color,vector(50,1,1)); // dark blue
video_window(NULL,NULL,0,"My New Game");
d3d_antialias = 1;
shadow_stencil = 3;



Will appreciate your help! laugh

#468078 - 09/17/17 09:13 Re: Problem using %EXE_DIR% with #define PRAGMA_PATH [Re: Eper]
txesmi Online
Serious User

Registered: 06/13/07
Posts: 1073
Loc: Hiporope and its pain
EXE_DIR points to GStudio folder into program files folder. Project folders are defined with no root.
#define PRAGMA_PATH "Entities"


Moderator:  HeelX, rvL_eXile 

Gamestudio download | chip programmers | Zorro platform | shop | resources | magazine | manual | support faq | bugs

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