Gamestudio Links
Zorro Links
Newest Posts
oldschool fps project
by 3run
56 minutes 42 seconds ago
[ALL STYLES] 2D Videogame Artist (pixel, vector, painted)
by DesixStudios
Today at 14:45
Easy question
by jcl
Today at 13:47
Cheap bouncing shells/gibs
by 3run
Today at 00:36
WED doesnt show all entity actions in the behavior list
by rayp
Yesterday at 22:31
Fullscreen Antialiasing plugin
by Iglarion
Yesterday at 22:29
Date field in dataset functions
by jcl
Yesterday at 10:55
AUM Magazine
Latest Screens
RPG PARTY
Triton Wing now available on Steam
AckCon'17: Lotter vs The World
Triton Wing
Who's Online
13 registered (Hredot, jumpman, 3run, Ch40zzC0d3r, Kartoffel, AndrewAMD, MasterQ32, kujo, FLD, 1 invisible), 462 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
cme, pataba, byano, Tuguldur717, jmgrnt7
17833 Registered Users
Topic Options
Rate This Topic
#468071 - 09/16/17 18:55 Problem using %EXE_DIR% with #define PRAGMA_PATH
Eper Offline
Guest

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_size,vector(800,400,0));
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;

level_load("Map.wmb");
vec_set(camera.x,vector(-250,0,50));
vec_set(camera.pan,vector(0,-15,0));

}

Will appreciate your help! laugh

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

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


Top


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) 3dgamestudio.net