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
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Ayumi, 7th_zorro, 1 invisible), 1,060 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
#include - more than one folder #175369
12/30/07 09:50
12/30/07 09:50
Joined: Jul 2003
Posts: 1,300
Albury, Australia
James_Burke Offline OP
Serious User
James_Burke  Offline OP
Serious User

Joined: Jul 2003
Posts: 1,300
Albury, Australia
Hi,
This bug is a little annoying and has been around for at least the few releases. In Lite-C if you use #include "folder\folder\script.c" (for example, I have the main script then a scripts folder and then a header folder within it) WED will be unable to open it, however, it will compile and run fine.

This really only causes problems when WED will automatically update the scripts and will pop up with errors saying "Can't open script file 'file'". It just becomes irritable

Thanks,
James

Re: #include - more than one folder [Re: James_Burke] #175370
12/30/07 10:02
12/30/07 10:02
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Yep, that isn't working. Though, you can extract all actions you need into an "actions.wdl" and assign it to your level. By this, WED just reads in leightweight data and not your whole project. In addition, you can also turn those crappy actions into real procedures.

Re: #include - more than one folder [Re: HeelX] #292147
09/30/09 16:39
09/30/09 16:39
Joined: Sep 2009
Posts: 6
T
theplayer Offline
Newbie
theplayer  Offline
Newbie
T

Joined: Sep 2009
Posts: 6
hi,

i know this thread is really old but i have still one big problem. what is a "real procedure"? i found nothing about in the manual.
is there another way to solve the problem because i want to let my actions in their files.
thanks for your help.

greets theplayer

Re: #include - more than one folder [Re: theplayer] #292153
09/30/09 16:46
09/30/09 16:46
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
WED does not use the path from include files. But you can use either PRAGMA_PATH, or a WDL file with a path statement.

Re: #include - more than one folder [Re: jcl] #292156
09/30/09 16:55
09/30/09 16:55
Joined: Sep 2009
Posts: 6
T
theplayer Offline
Newbie
theplayer  Offline
Newbie
T

Joined: Sep 2009
Posts: 6
hi jcl,

thanks for your fast help. i've defined a PRAGMA_PATH to my project folder and reopened the project but for every included file as seen below, occurs the error "can't open script file".

Code:
#define PRAGMA_PATH "C:\Documents and Settings\theplayer\My Documents\3DGS Projects\Project1"

#include <environment.c>
#include <actions.c>
#include <graphics.c>
#include <camera.c>
#include <shader.c>



the problem is to use both, the materials from the shader.c and the actions from the actions.c. how would this be done?

greetz theplayer

Last edited by theplayer; 09/30/09 17:39.
Re: #include - more than one folder [Re: theplayer] #292161
09/30/09 18:04
09/30/09 18:04
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
Try using double slashes in your PRAGMA_PATH statement...
Code:
#define PRAGMA_PATH "C:\\Documents and Settings\\theplayer\\My Documents\\3DGS Projects\\Project1"



Re: #include - more than one folder [Re: DJBMASTER] #292162
09/30/09 18:10
09/30/09 18:10
Joined: Sep 2009
Posts: 6
T
theplayer Offline
Newbie
theplayer  Offline
Newbie
T

Joined: Sep 2009
Posts: 6
hi djbmaster,

thats it. now i can load all files. thanks.
i've also found the artice in the manual about wdl files. how is the path described there? i tested path=".\\code" to set the path to my code directory. but its a syntax error

greets theplayer


Moderated by  HeelX, rvL_eXile 

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