Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Ayumi), 1,405 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Paths from C-script version not working in Lite-C #185431
02/24/08 13:25
02/24/08 13:25
Joined: Nov 2003
Posts: 1,659
San Francisco
JetpackMonkey Offline OP
Serious User
JetpackMonkey  Offline OP
Serious User

Joined: Nov 2003
Posts: 1,659
San Francisco
Hey

I have code re-written from C-Script into Lite-C. Paths, however, are not working! It's in 7.05.4 commercial.

Here's the original C-Script paths code:

Code:
 
// Global paths

path "/../gstudio6/sleepysushi_dev/_dev_scripts_070219"; // The working code base
path "/../gstudio6/sleepysushi_dev/_dev_images";// images (e.g. not textures)
path "/../gstudio6/sleepysushi_dev/_dev_models";//meshes (mostly substitutes)
path "/../gstudio6/sleepysushi_dev/_dev_audio"; //Sounds & Music
path "/../gstudio6/sleepysushi_dev/_dev_shaderfx"; //Shader FX files
path "/../gstudio6/sleepysushi_dev/_dev_plugins"; //Plugins and DLL files
path "/../gstudio6/sleepysushi_dev/_dev_dialogues"; //
path "/../gstudio6/sleepysushi_dev/_dev_terrains"; //



None of these paths are recognized in Lite-C.

Also, I tried
#define PRAGMA_PATH "models";

Which didn't find the models folder

and also


#define PRAGMA_PATH "/../gstudio6/sleepysushi_dev/_dev_code"; // The test code base

I'm not sure why this is happening-- can't lite C support relative and absolute paths? Are the slashes wrong? Can anyone help?

Re: Paths from C-script version not working in Lit [Re: JetpackMonkey] #185432
02/24/08 14:03
02/24/08 14:03
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
Quote:

Included scripts are not searched in the paths. They should be located in the work folder. Alternatively, their paths can be explicitely given in the #include statements or in PRAGMA_PATH statements.




-The Mighty Manual

PRAGMA_PATH is more convenient, but is only avaiable in >7.07

You can also use add_folder().

Also note that in Lite-C it has to be PATH and not path, I think.

Re: Paths from C-script version not working in Lit [Re: Excessus] #185433
02/24/08 14:55
02/24/08 14:55
Joined: Nov 2003
Posts: 1,659
San Francisco
JetpackMonkey Offline OP
Serious User
JetpackMonkey  Offline OP
Serious User

Joined: Nov 2003
Posts: 1,659
San Francisco
Thank you Excessus!


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