Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by M_D. 04/26/24 20:22
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (M_D, AndrewAMD, Quad, Ayumi), 806 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
A little help with paths. #337085
08/08/10 12:49
08/08/10 12:49
Joined: Jan 2002
Posts: 300
Usa
Rich Offline OP
Senior Member
Rich  Offline OP
Senior Member

Joined: Jan 2002
Posts: 300
Usa
Hi, I did a little searching and testing things but I can't seem to make this work right.

I have a level that has some models in it.
The maps are stored in a folder named "maps", models in a folder named "models" and the script is run in the main directory.

I set the model up in WED, and when I run my script from sed, when the engine loads I get an error W1301 saying " "modelname": cannot open file".

I have tried this, and it does nothing:

Code:
#define PRAGMA_PATH "%EXE_DIR%\scripts\";
#define PRAGMA_PATH "%EXE_DIR%\maps\";
#define PRAGMA_PATH "%EXE_DIR%\models\";



I am probably doing something wrong but the manual doesn't really seem to help me too much, so I thought I would post here.

Thanks for reading and any suggestions.


A8 com / A7 free
Re: A little help with paths. [Re: Rich] #337091
08/08/10 13:39
08/08/10 13:39
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
#define PRAGMA_PATH "%EXE_DIR%\scripts";
will add files from your GStudio7 folder (or 6 or 8)

#define PRAGMA_PATH "scripts"
will add files from your current folder the initial .c file is running from

Though when placing models in WED, it creates the model to the same directory as the running .wmp file



Re: A little help with paths. [Re: Rich] #337092
08/08/10 13:41
08/08/10 13:41
Joined: Jul 2010
Posts: 127
Germany, Herford
Ditje Offline
Member
Ditje  Offline
Member

Joined: Jul 2010
Posts: 127
Germany, Herford
I am not sure, but I had this problem today, too. I could everything (sounds, bmps and scripts) move to folders and engine found them. But for .mdl-files I got an error message of missing files, too.

So I suppose it`s not possible with mdl-files.

edit: I used: define PRAGMA_PATH "snd"

Ditje

Last edited by Ditje; 08/08/10 13:43.
Re: A little help with paths. [Re: Rich] #337100
08/08/10 14:41
08/08/10 14:41
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
pararealist Offline
Senior Member
pararealist  Offline
Senior Member

Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
I think you have to put this also in your setup function
or main.
add_folder("scripts");
add_folder("maps");
add_folder("models");
this works for me.
Its all a little transparent in the manual sometimes.


A8.3x Commercial, AcknexWrapper and VS 2010 Express
○pararealist now.
Re: A little help with paths. [Re: pararealist] #337105
08/08/10 15:15
08/08/10 15:15
Joined: Jan 2002
Posts: 300
Usa
Rich Offline OP
Senior Member
Rich  Offline OP
Senior Member

Joined: Jan 2002
Posts: 300
Usa
Thanks for all of the replies laugh MrGuest's suggestion worked for me.

I have to agree about the manual being confusing at times, but I'm grateful for the community.

Thanks again!


A8 com / A7 free

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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