Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
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
1 registered members (VoroneTZ), 732 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
PRAGMA_PATH doesn't work with the published game #189222
03/18/08 15:03
03/18/08 15:03
Joined: Sep 2003
Posts: 271
Germany
Chris3D Offline OP
Member
Chris3D  Offline OP
Member

Joined: Sep 2003
Posts: 271
Germany
Hi,

I am using #define PRAGMA_PATH "textures\models"; for my textures, and every file is found when I run the game in sed or wed.
When I publish the game, it can't find any textures / folders (of course, I copied the texture-folder in my "main.cd" folder).
So I think it's a BUG!

Greetings Chris

Re: PRAGMA_PATH doesn't work with the published ga [Re: Chris3D] #189223
03/19/08 08:19
03/19/08 08:19
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
#defines are evaluated at compile time, not at runtime. So when you want to have a folder structure in a compiled version, you need to use a WDL file to define the paths. That's not a bug, it's just how #defines work in a compiled language.

Re: PRAGMA_PATH doesn't work with the published ga [Re: jcl] #189224
03/19/08 10:06
03/19/08 10:06
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
maybe add_folder will help?


3333333333
Re: PRAGMA_PATH doesn't work with the published ga [Re: Quad] #189225
03/19/08 13:21
03/19/08 13:21
Joined: Sep 2003
Posts: 271
Germany
Chris3D Offline OP
Member
Chris3D  Offline OP
Member

Joined: Sep 2003
Posts: 271
Germany
I wouldn't say that it is a bug when it works with a wdl file, BUT IT DOESN'T !

I created a main.wdl to my main.c. In that wdl, I put all the path stuff:
Code:
 

PLUGINDIR = "plugins";
path "textures\\models";
path "textures\\models\\Map1";
path "textures\\models\\Map2";
path "textures\\models\\Map3";
path "textures\\models\\Map4";
path "textures\\models\\Map5";
path "textures\\models\\Map6";
path "textures\\models\\Map7";
path "textures\\models\\Map8";
path "textures\\models\\char";
path "textures\\models\\Cman";
path "textures\\menu";
path "textures\\menu\\Start";
path "textures\\menu\\Options";
path "textures\\menu\\Players";
path "textures\\menu\\Maps";
path "textures\\menu\\Items";
path "textures\\menu\\Game";
path "mdls";
path "mdls\\maps";
path "mdls\\char";
path "sounds";




And it doesn't work in the published version!
Any ideas?

P.S.: My A7 version is V7.07.6

Last edited by Chris3D; 03/19/08 13:22.
Re: PRAGMA_PATH doesn't work with the published ga [Re: Chris3D] #189226
03/19/08 16:18
03/19/08 16:18
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Add_folder would work also. However I can't confirm a problem with PATH in a WDL file. Have you copied the WDL file into the .CD folder?

Re: PRAGMA_PATH doesn't work with the published ga [Re: jcl] #189227
03/19/08 16:29
03/19/08 16:29
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
Quote:

However I can't confirm a problem with PATH in a WDL file.



But I can! -.-

Re: PRAGMA_PATH doesn't work with the published ga [Re: Lukas] #189228
03/20/08 14:45
03/20/08 14:45
Joined: Sep 2003
Posts: 271
Germany
Chris3D Offline OP
Member
Chris3D  Offline OP
Member

Joined: Sep 2003
Posts: 271
Germany
yes I copied the wdl in my main.cd folder.However, if you can't believe me, I can make a little test demo...

Re: PRAGMA_PATH doesn't work with the published ga [Re: Chris3D] #189229
03/20/08 16:04
03/20/08 16:04
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Thanks, I'll check it again in more detail. Maybe there are some circumstances where the WDL file is not read. If I can't reproduce the problem I'll post here - then I'd need your test demo.

Re: PRAGMA_PATH doesn't work with the published ga [Re: jcl] #189230
03/21/08 16:01
03/21/08 16:01
Joined: Sep 2003
Posts: 271
Germany
Chris3D Offline OP
Member
Chris3D  Offline OP
Member

Joined: Sep 2003
Posts: 271
Germany
Ok here is a test level:
if you run the .exe the engine won't find the models, but if you run the .c file it works. Check it out:

smoothdemo.cd.zip

sorry for using rapidshare but I didn't find a better one at the moment...

P.s.: with add_folder("models"); it works, but the wdl stuff doesn't, so its a bug, isn' it?

Re: PRAGMA_PATH doesn't work with the published ga [Re: Chris3D] #199999
04/02/08 04:06
04/02/08 04:06
Joined: Feb 2002
Posts: 357
Florida
Zelek Offline
Senior Member
Zelek  Offline
Senior Member

Joined: Feb 2002
Posts: 357
Florida
I am having the same problems mentioned by Chris. Using add_folder does seem to do the trick, though.

Page 1 of 2 1 2

Moderated by  jcl, Nems, Spirit, 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