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, alibaba), 1,184 guests, and 3 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
[SOLVED] - Problem with WED & attached scripts #444196
08/01/14 22:24
08/01/14 22:24
Joined: May 2014
Posts: 179
The lit part of the Truth
C
CyberGhost Offline OP
Member
CyberGhost  Offline OP
Member
C

Joined: May 2014
Posts: 179
The lit part of the Truth
Hello


I asked about that before in 'Starting with Gamestudio' section and no one answered me


MY ISSUE:

In WED, I attached a level to my main script in "Map properties" window. The main script itself is 'attached' successfully ,but the scripts included in the main script (through "#include") are NOT attached. WED keeps saying "Can't open this.c or that.c". Also, when I try to run the level (after being compiled), it can't even open the main script itself although WED didn't complain about main script during attaching. Is that normal? I think the scripts attached with <> not "" work well. It is my own scripts that don't work.


This problem also prevents me from attaching actions to entities as the scripts having these actions can't be opened by WED ,so I can't find them in the action list


Thanks for reading & any help will be appreciated

Last edited by CyberGhost; 08/03/14 14:13.

Nothing to say ....
Re: Problem with WED & attached scripts [Re: CyberGhost] #444198
08/02/14 06:48
08/02/14 06:48
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
I have few ideas in my head:
1-make sure that you've defined all game folders which you have in your project's root folder;
2-make sure that your scripts are placed in defined folders (or in project's root folder);
3-make sure to include all of your own scripts by "" (instead of <> - use those only to include engine lib) f.e. #include "player.c".

I'm sure if you go through all this steps, you'll get everything working laugh good luck!

Greets


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Problem with WED & attached scripts [Re: 3run] #444207
08/02/14 15:30
08/02/14 15:30
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline
Serious User
Reconnoiter  Offline
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
DLively already gave you the answer earlier tongue :

Quote:
Quote:
1) I attached a level to my main script in "Map properties" window.

You mean: You attached a script to a level.

There are TWO KINDS OF INCLUDES:

#include <mtlFX.c> //Default files
#include "thisoniscustom.c" //custom files


From the holy manual:

Quote:
If the script name is given in angular brackets <..>, it is searched in the include folder. The include folder contains all common .h include files and the default.c script.
If the script name is given in double quotes "...", it is first searched in the work folder, then in the path defined by PRAGMA_PATH. The file search PATHs given in a WDL file are irrelevant for #include statements.

Re: Problem with WED & attached scripts [Re: Reconnoiter] #444219
08/02/14 20:33
08/02/14 20:33
Joined: May 2014
Posts: 179
The lit part of the Truth
C
CyberGhost Offline OP
Member
CyberGhost  Offline OP
Member
C

Joined: May 2014
Posts: 179
The lit part of the Truth
Wait a minute ... Do you only write the script's name ("script.c") or the RELATIVE path for the script ("scripts/script.c"). All the time I was doing the latter ,but when I only wrote the script's name, it worked.


Also, if the script was empty, it will give "can't open" error ,right?

Last edited by CyberGhost; 08/02/14 20:35.

Nothing to say ....
Re: Problem with WED & attached scripts [Re: CyberGhost] #444228
08/03/14 05:34
08/03/14 05:34
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
yes, it will laugh


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Problem with WED & attached scripts [Re: 3run] #444229
08/03/14 08:57
08/03/14 08:57
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
it's PRAGMA_PATH and script references without any path.

Re: Problem with WED & attached scripts [Re: FBL] #444232
08/03/14 14:12
08/03/14 14:12
Joined: May 2014
Posts: 179
The lit part of the Truth
C
CyberGhost Offline OP
Member
CyberGhost  Offline OP
Member
C

Joined: May 2014
Posts: 179
The lit part of the Truth
Ok. Thank you all laugh


Nothing to say ....

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