Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
4 registered members (AndrewAMD, Quad, soulman3, Ayumi), 675 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
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 Offline OP
Expert
Joozey  Offline 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
J
jane Offline
Member
jane  Offline
Member
J

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: jane] #344534
10/18/10 08:15
10/18/10 08:15
Joined: Jul 2000
Posts: 27,967
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,967
Frankfurt
Check out the manual - Paths are defined under "Presets". This generates a WDL file as jane described. PRAGMA_PATH works also, though.

Re: no script found errors in WED [Re: jcl] #344590
10/18/10 16:59
10/18/10 16:59
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
Which directory does WED take as working directory?

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 Offline OP
Expert
Joozey  Offline 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.
Code:
#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:
Code:
#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: Joozey] #344617
10/19/10 04:28
10/19/10 04:28
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
This is because for your script the path is relative to "Lib" but for WED it is relative to the work folder.

I would avoid using different path roots for WED and for the script. Dont include files in subfolders from another subfolder. Or if you really want to do that, you must add those subfolders to the WED path list so that WED knows them too.

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 Offline OP
Expert
Joozey  Offline 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: Joozey] #344768
10/20/10 15:25
10/20/10 15:25
Joined: Jul 2000
Posts: 27,967
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,967
Frankfurt
Right click on the "Paths" icon and you get a menu with options for adding paths. It's the same procedure as for adding texture folders or WADs. This is described in the manual.

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 Offline OP
Expert
Joozey  Offline 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

Moderated by  old_bill, Tobias 

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