Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
2 registered members (3run, AndrewAMD), 623 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
main.wdl problem #142163
07/19/07 17:14
07/19/07 17:14
Joined: Sep 2006
Posts: 292
M
Mythran Offline OP
Member
Mythran  Offline OP
Member
M

Joined: Sep 2006
Posts: 292
When i try to launch my game it says it canīt run MAIN.wdl

Here's my script:

function main()
{
camera.clip_near = 0;
video_switch(8,0,1);
clip_size = 0;
level_load("game.wmb");
}

Is there a problem in here?

Please help me.

Re: main.wdl problem [Re: Mythran] #142164
07/19/07 18:02
07/19/07 18:02
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline

.
Nems  Offline

.

Joined: Mar 2003
Posts: 4,264
Wellington
place a wait(3); after level_load instruction, that might help
You need the engine to wait untill the level is loaded but it might not be the only prob.

Re: main.wdl problem [Re: Nems] #142165
07/19/07 18:09
07/19/07 18:09
Joined: Sep 2006
Posts: 292
M
Mythran Offline OP
Member
Mythran  Offline OP
Member
M

Joined: Sep 2006
Posts: 292
Nope it continues to say it can run MAIN.WDL

Can anyone post a simple working demo for me to compare to my game to see what i'm doing wrong?

How do i include files?

is it include <player.wdl>; suposed to work?

Last edited by Mythran; 07/19/07 18:19.
Re: main.wdl problem [Re: Mythran] #142166
07/19/07 18:26
07/19/07 18:26
Joined: Sep 2006
Posts: 292
M
Mythran Offline OP
Member
Mythran  Offline OP
Member
M

Joined: Sep 2006
Posts: 292
Ok i have managed it. I just rewrited the code, and it worked perfectly.
Now it says it can't find the wmb :S
Is this a known problem?

Re: main.wdl problem [Re: Mythran] #142167
07/19/07 18:37
07/19/07 18:37
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline

Expert
Blink  Offline

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
is the level in the same folder? it cant find something that is not there.


My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
Re: main.wdl problem [Re: Blink] #142168
07/19/07 18:45
07/19/07 18:45
Joined: Sep 2006
Posts: 292
M
Mythran Offline OP
Member
Mythran  Offline OP
Member
M

Joined: Sep 2006
Posts: 292
Everything is in the same folder. I built the level, everything is in place.
And it says that cant find the wmb. Error E1100 and erro W1301. I erased the file and built again, and nothing. I'm using v 6.60 and the wmp2wmb version is 6.355 could this be the problem?


//path "C:\\Program Files\\GStudio6\\work\\Yellav";

#include <player.wdl>;
#include <enemy.wdl>;
#include <animation.wdl>;

FUNCTION main()
{
camera.clip_near = 0;
video_switch(8,0,1);
level_load("Yellav.wmb");
wait(3);
}



Last edited by Mythran; 07/19/07 18:47.
Re: main.wdl problem [Re: Mythran] #142169
07/19/07 19:38
07/19/07 19:38
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
hello

i dont know if it works but video_swich takes a few milesec for its good and maby it cant load because videoswitch freeze the game

i maby wont work but u can try this

FUNCTION main()
{
camera.clip_near = 0;
video_switch(8,0,1);
sleep(2);
level_load("Yellav.wmb");
wait(2);
}


"empty"
Re: main.wdl problem [Re: flits] #142170
07/19/07 19:57
07/19/07 19:57
Joined: Sep 2006
Posts: 292
M
Mythran Offline OP
Member
Mythran  Offline OP
Member
M

Joined: Sep 2006
Posts: 292
Nope thats not the problem :S
i truly believe that the problem has to do with a path, but i can't find how to do it. It just keep's saying that it can't find Yellav.wmb

Might anyone have an idea why does this happend?

Re: main.wdl problem [Re: Mythran] #142171
07/19/07 20:30
07/19/07 20:30
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Maybe you have forgotten to compile you map?


Always learn from history, to be sure you make the same mistakes again...
Re: main.wdl problem [Re: Uhrwerk] #142172
07/19/07 20:47
07/19/07 20:47
Joined: Sep 2006
Posts: 292
M
Mythran Offline OP
Member
Mythran  Offline OP
Member
M

Joined: Sep 2006
Posts: 292
Everything is in the same folder. I built the level, everything is in place.
And it says that cant find the wmb. Error E1100 and Malfunction W1301. I erased the file and built again, and nothing. I'm using v 6.60 and the wmp2wmb version is 6.355 could this be the problem?




By compile the map you mean build right?

Page 1 of 2 1 2

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