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
1 registered members (TipmyPip), 18,388 guests, and 6 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
publish error #397676
03/22/12 04:30
03/22/12 04:30
Joined: Aug 2003
Posts: 902
Van Buren, Ar
Gordon Offline OP
User
Gordon  Offline OP
User

Joined: Aug 2003
Posts: 902
Van Buren, Ar
Ok I am using a complex although common in software development area directory structure:

main dir
code
images
levels
g*****a (cant give away all my secrets :-) )
data
xml


The main has a #define path
for images that are needed in the exe and a bind file for the ones that are loaded.

Also code uses a lot of ..\\..\\dir\\module
for modules that are used by project but need to be maintained separate.. all works fine from sed but when I try to publish I get about 500 file not found errors...

BTW it is not that I don't know how to get around this issue but it is a bug with relative paths. I have already created a "pre-process" to copy all files to a build directory and remove all relative paths.

But this type of "fix" is just a kluge to get around a problem that should be fixed..

Thanks


Our new web site:Westmarch Studios
Re: publish error [Re: Gordon] #397786
03/23/12 15:25
03/23/12 15:25
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Man use add_folder function instead f path or pragma_path

Re: publish error [Re: Ch40zzC0d3r] #397790
03/23/12 16:14
03/23/12 16:14
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
You define paths not with "#define path". That would just define a token named "path". You can define paths either under "Presets" in WED, or with a PATH statement in a .wdl project file - just look in the manual.

http://manual.3dgamestudio.net/apath.htm

add_folder would work also, but that's for the experts only.

Re: publish error [Re: jcl] #397801
03/23/12 17:20
03/23/12 17:20
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
and PRAGMA_PATH only works for compilation, meaning code location, not for resource files, as it is a preprocessor command which you won't find after the compiler ran over it.

Re: publish error [Re: FBL] #397888
03/24/12 18:23
03/24/12 18:23
Joined: Aug 2003
Posts: 902
Van Buren, Ar
Gordon Offline OP
User
Gordon  Offline OP
User

Joined: Aug 2003
Posts: 902
Van Buren, Ar
OK. so the PRAGMA_PATH that I a using only works for testing and not for publishing... This is kind of misleading as the manual states:

Looks for include and other files in the given path when they are not found in the current folder. This is similar to the PATH statement in a project file, with the exception that paths given by PRAGMA_PATH are also used for include files.

As you can see it states and "other files" but only works for compile not for publish....


That is the bug... maybe just better documentation needed....


Our new web site:Westmarch Studios

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