Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (rki), 426 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Problem using %EXE_DIR% with #define PRAGMA_PATH #468071
09/16/17 16:55
09/16/17 16:55
Joined: Sep 2015
Posts: 1
Eper Offline OP
Guest
Eper  Offline OP
Guest

Joined: Sep 2015
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

Re: Problem using %EXE_DIR% with #define PRAGMA_PATH [Re: Eper] #468078
09/17/17 07:13
09/17/17 07:13
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline
Serious User
txesmi  Offline
Serious User

Joined: Jun 2007
Posts: 1,337
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"



Moderated by  HeelX, rvL_eXile 

Gamestudio download | chip programmers | 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