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
1 registered members (M_D), 1,430 guests, and 3 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
Publishing problem #333794
07/19/10 04:50
07/19/10 04:50
Joined: Jan 2010
Posts: 40
Adelaide, Australia
Sub_Game Offline OP
Newbie
Sub_Game  Offline OP
Newbie

Joined: Jan 2010
Posts: 40
Adelaide, Australia

I can't work out why my project runs perfectly within SED, but when I publish it I have the following:
Invalid name: sub_prototype_test_2.wdl
then it proceeds to publish the project.

When it executed I get the following errors:
t_day_sky+6.TGA: Can't open file
WAVEMODEL_NEAR.MDL: Can't open file
WAVEMODEL_MID.MDL: Can't open file
WAVEMODEL_MID.MDL: Can't open file
then the game starts with no textures, models or sprites in play. The sounds do work.

All those models and sprites have been copied into the published projects .cd file by the publisher.

Help please?


A7 Commercial
First person submarine combat simulator project
http://alexanderforeman.webs.com/fightersubgame.htm
Re: Publishing problem [Re: Sub_Game] #334003
07/20/10 16:29
07/20/10 16:29
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
"Invalid name" means this name wont work, its most likely too long for an old WDL file. Use short names or in the long run, switch to lite-C! WDL was for A5 and A6, it makes no sense with A7.

Last edited by Spirit; 07/20/10 16:31.
Re: Publishing problem [Re: Spirit] #334065
07/21/10 00:35
07/21/10 00:35
Joined: Jan 2010
Posts: 40
Adelaide, Australia
Sub_Game Offline OP
Newbie
Sub_Game  Offline OP
Newbie

Joined: Jan 2010
Posts: 40
Adelaide, Australia
That is strange - I am using A7 lite-C. My code is compiling from a .c file. There is no wdl file in the game directory.

I have run it with a shorter name and no longer get the "Invalid name: sub_prototype_test_2.wdl" error, but it still has the other errors when I execute the compiled game:
t_day_sky+6.TGA: Can't open file
WAVEMODEL_NEAR.MDL: Can't open file
WAVEMODEL_MID.MDL: Can't open file
WAVEMODEL_MID.MDL: Can't open file


A7 Commercial
First person submarine combat simulator project
http://alexanderforeman.webs.com/fightersubgame.htm
Re: Publishing problem [Re: Sub_Game] #334086
07/21/10 06:48
07/21/10 06:48
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
do you still use : <t_day_sky+6.TGA> ?
if yes then try using "t_day_sky+6.TGA"

Re: Publishing problem [Re: bart_the_13th] #334093
07/21/10 08:22
07/21/10 08:22
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Also check if the models are in the work folder or in the path.

Re: Publishing problem [Re: bart_the_13th] #334127
07/21/10 13:11
07/21/10 13:11
Joined: Jan 2010
Posts: 40
Adelaide, Australia
Sub_Game Offline OP
Newbie
Sub_Game  Offline OP
Newbie

Joined: Jan 2010
Posts: 40
Adelaide, Australia
Originally Posted By: bart_the_13th
do you still use : <t_day_sky+6.TGA> ?
if yes then try using "t_day_sky+6.TGA"


Thanks for your help. Here is my code. Works fine when run from SED:
Code:
level_load ("");
my_sky = ent_createlayer("sprites/t_day_sky+6.tga", SKY | CUBE | VISIBLE, 0);



Code:
my_updated_wave = ent_create("waves/wavemodel_near.mdl", vector(0, 0, 10000), wave_action);



Code:
ent_create("waves/wavemodel_mid.mdl", vector(x_temp*224*3, y_temp*224*3, 0), wave_action);



Originally Posted By: Tobias
Also check if the models are in the work folder or in the path.


The models are in the specified path and they are also all in the root of the published folder.

I tried // out the specified models but it just couldn't find other models.


Last edited by Sub_Game; 07/21/10 13:15.
Re: Publishing problem [Re: Sub_Game] #334144
07/21/10 15:04
07/21/10 15:04
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

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

I suggest that you use

#define PRAGMA_PATH "path";
at the beginning of your code and then
in your code

ent_create("wavemodel_mid.mdl",..........
You will not have to give the path. wink


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C

Moderated by  HeelX, Spirit 

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