|
|
no script found errors in WED
#344482
10/17/10 18:57
10/17/10 18:57
|
Joined: Oct 2004
Posts: 4,134 Netherlands
Joozey
OP
Expert
|
OP
Expert
Joined: Oct 2004
Posts: 4,134
Netherlands
|
Hello,
I have a little library that I load in the main script file using PRAGMA_PATH. This file includes many more files via local path, using the PRAGMA_PATH as the root. But when loading levels that use the main script file, I get "file not found" errors for each file that's in my library.
Apparently WED does not always search in the PRAGMA_PATH for included files. The code works fine when running; all files are found during runtime. It's just time consuming to click through a heap of errors when using WED. How can I fix this?
I use A7pro
Last edited by Joozey; 10/17/10 18:58.
Click and join the 3dgs irc community! Room: #3dgs
|
|
|
Re: no script found errors in WED
[Re: Joozey]
#344493
10/17/10 19:21
10/17/10 19:21
|
Joined: Nov 2008
Posts: 216
jane
Member
|
Member
Joined: Nov 2008
Posts: 216
|
have you tested a .wdl with the same name from the mainscript
with:
PATH "your code folder"; PATH "your textures folder"; ... ... ...
PLUGINDIR = "a folder with your libary";
in your projectfolder ?
Last edited by jane; 10/17/10 19:22.
|
|
|
Re: no script found errors in WED
[Re: FBL]
#344608
10/18/10 21:01
10/18/10 21:01
|
Joined: Oct 2004
Posts: 4,134 Netherlands
Joozey
OP
Expert
|
OP
Expert
Joined: Oct 2004
Posts: 4,134
Netherlands
|
I am using relative paths, absolute paths work fine. The following include structure causes a problem for WED, because WED does not use the PRAGMA_PATH as a root folder to search included files in that use relative paths. The main file is loading fine, all files are found.
#define PRAGMA_PATH "Lib"
#include "common.c" //library main file, it sits in the "Lib" folder
//rest of the game includes (they load fine in WED)
#include "player.c"
Here are the includes in common.c in "Lib" folder. All of these give errors in WED. So common.c is found, the files included in common.c not. I can guess this is because here relative paths are used. They work fine for the engine, not for WED:
#include "shorts.c"
#include "org\point.c" //this file sits in the "org" folder in the "Lib" folder
#include "org\array.c"
#include "org\linkedlist.c"
#include "geo\coordinates.c"
#include "geo\area.c"
#include "geo\collision.c"
#include "geo\bezier.c"
#include "geo\quaternions.c"
#include "gfx\submodel.c"
#include "gfx\funcs2D.c"
#include "effects\thunder.c"
#include "ui\ui.c"
I can't make WED ignore these files?
Last edited by Joozey; 10/18/10 21:04.
Click and join the 3dgs irc community! Room: #3dgs
|
|
|
Re: no script found errors in WED
[Re: Tobias]
#344701
10/19/10 20:11
10/19/10 20:11
|
Joined: Oct 2004
Posts: 4,134 Netherlands
Joozey
OP
Expert
|
OP
Expert
Joined: Oct 2004
Posts: 4,134
Netherlands
|
Yes, that is the problem. I am eager to know about this WED path list, but can't find the settings to change the one in the resources tab.
options.scr does not contain options for setting alternate paths to search for code files at startup.
Last edited by Joozey; 10/19/10 20:37.
Click and join the 3dgs irc community! Room: #3dgs
|
|
|
Re: no script found errors in WED
[Re: jcl]
#344828
10/20/10 22:16
10/20/10 22:16
|
Joined: Oct 2004
Posts: 4,134 Netherlands
Joozey
OP
Expert
|
OP
Expert
Joined: Oct 2004
Posts: 4,134
Netherlands
|
I can do this for textures in the preset tab yes, as for adding script paths I can't find a right mouse menu anywhere in the resource tab (the only tab that mentions script files and various paths). The folders in the resource tab do not show a right mouse menu for me. I read in the manual about the resource and other tabs, that some resources have a double click action, but I read no thing about adding new script paths. The Path folder in the resource tab seems pretty static to me.
Last edited by Joozey; 10/20/10 22:16.
Click and join the 3dgs irc community! Room: #3dgs
|
|
|
|