Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, 1 invisible), 18,758 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Subfolders don't work anymore after publishing? #239927
12/08/08 11:22
12/08/08 11:22
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline OP
Expert
oliver2s  Offline OP
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
Yesterday I wanted to publish my first Lite-C game. I have different subfolders:

Code:
#define PRAGMA_PATH "models";
#define PRAGMA_PATH "textures";
#define PRAGMA_PATH "temp";
#define PRAGMA_PATH "gfx";


While development they worked fine. But after publishing the game the files in these subfolders weren't found anymore. Only if I copy the files into the root folder (where the exe lies) they were found.

What I'm doing wrong?

Re: Subfolders don't work anymore after publishing? [Re: oliver2s] #239929
12/08/08 11:54
12/08/08 11:54
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
As far as I understood the manual page about paths, you only need PRAGMA_PATH for script includes, as they are no longer included from path defines.

Not sure though.

Re: Subfolders don't work anymore after publishing? [Re: Xarthor] #239974
12/08/08 16:00
12/08/08 16:00
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Erstell nen .wdl skriptmit demselben Namen wie dein Mainskript und pack da "path = "xyz";" rein. Das funktioniert dann auch mit gepublisheten Spielen (auch wenn du als .exe kompilierst). Nur werden da keine Skripts draus geladen.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: Subfolders don't work anymore after publishing? [Re: WretchedSid] #240021
12/08/08 21:07
12/08/08 21:07
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline OP
Expert
oliver2s  Offline OP
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
Aber das kann doch nicht die Standardlösung sein? Mich wundert es das diesen Bug (falls es denn einer sein sollte) noch niemand gemeldet hat, es sein denn ich mache was falsch...

Re: Subfolders don't work anymore after publishing? [Re: oliver2s] #240033
12/08/08 22:49
12/08/08 22:49
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
XD.. ohne die pro version ( hab ich festgestellt ), funktionieren zum beispiel Subfolders, die für den user sichtbar sein sollen, auch nicht...


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Subfolders don't work anymore after publishing? [Re: Espér] #240208
12/09/08 23:48
12/09/08 23:48
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

Try

#define PRAGMA_PATH "..\\temp";


Ottawa smile

Re: Subfolders don't work anymore after publishing? [Re: Ottawa] #240214
12/10/08 00:48
12/10/08 00:48
Joined: Apr 2006
Posts: 624
DEEP 13
badapple Offline
User
badapple  Offline
User

Joined: Apr 2006
Posts: 624
DEEP 13
@ oliver2s....

if you get an answer to this could you plz post it in english , i am in need of that info myself,thnx.

Re: Subfolders don't work anymore after publishing? [Re: badapple] #240240
12/10/08 07:41
12/10/08 07:41
Joined: Jul 2008
Posts: 23
Turkey
H
Hatean Offline
Newbie
Hatean  Offline
Newbie
H

Joined: Jul 2008
Posts: 23
Turkey
Me, too. Could you use English guys? I was trying to use PRAGMA_PATH yesterday but I couldn't ...

Last edited by Hatean; 12/10/08 07:41.

The Life Game is disgustingly bad but the graphics and reality are extremely cool...
Re: Subfolders don't work anymore after publishing? [Re: Hatean] #240289
12/10/08 12:05
12/10/08 12:05
Joined: Apr 2008
Posts: 594
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 594
Austria
Originally Posted By: The Mighty Manual!
PRAGMA_PATH is only evaluated during compilation. In a published project, all files are placed in the project folder by default. For using subfolders in a published project, either add them at runtime through add_folder(), or use a .wdl project file.

laugh


Re: Subfolders don't work anymore after publishing? [Re: Petra] #240366
12/10/08 16:47
12/10/08 16:47
Joined: Aug 2002
Posts: 3,258
Mainz
oliver2s Offline OP
Expert
oliver2s  Offline OP
Expert

Joined: Aug 2002
Posts: 3,258
Mainz
Now it's clear. I read the manual, but I didn't notice the part Petra posted. Nevertheless this confuses me. So many (advanced) users can't interpret the part about paths in the manual right.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | 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