Problem using %EXE_DIR% with #define PRAGMA_PATH

Posted By: Eper

Problem using %EXE_DIR% with #define PRAGMA_PATH - 09/16/17 16:55

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
Posted By: txesmi

Re: Problem using %EXE_DIR% with #define PRAGMA_PATH - 09/17/17 07:13

Hi,
EXE_DIR points to GStudio folder into program files folder. Project folders are defined with no root.
Code:
#define PRAGMA_PATH "Entities"

© 2024 lite-C Forums