Paths from C-script version not working in Lite-C

Posted By: JetpackMonkey

Paths from C-script version not working in Lite-C - 02/24/08 13:25

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?
Posted By: Excessus

Re: Paths from C-script version not working in Lit - 02/24/08 14:03

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.
Posted By: JetpackMonkey

Re: Paths from C-script version not working in Lit - 02/24/08 14:55

Thank you Excessus!
© 2024 lite-C Forums