Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Newbie Questions
by AndrewAMD. 12/04/23 11:14
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 (TipmyPip, izorro), 556 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 4 of 5 1 2 3 4 5
Re: ok, maybe i am going about this all wrong.... [Re: Blink] #137429
06/24/07 16:53
06/24/07 16:53
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
No that shouldn't be an issue, however try to add the following lines into your main function:
gid01_level_state = gid01_level_not_loaded;

Now in the "start_game" function after the level_load (wait(3) should be inbetween):
gid01_level_state = gid01_level_loaded;

Re: ok, maybe i am going about this all wrong.... [Re: Xarthor] #137430
06/24/07 16:57
06/24/07 16:57
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline OP

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
say that again. it should look like this?
Code:
function main()
{
gid01_level_state = gid01_level_not_loaded;
wait(3);

//start the menu:
menue();
}



Re: ok, maybe i am going about this all wrong.... [Re: Blink] #137431
06/24/07 17:02
06/24/07 17:02
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Yes and now edit the function "start_game()" and add the line:
gid01_level_state = gid01_level_loaded;
after these lines:
level_load(...);
wait(3);

Re: ok, maybe i am going about this all wrong.... [Re: Blink] #137432
06/24/07 17:08
06/24/07 17:08
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline OP

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
start_game is in the menu code. is that where i am putting the other addition?

Re: ok, maybe i am going about this all wrong.... [Re: Blink] #137433
06/24/07 17:09
06/24/07 17:09
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Yes, because you load the level from there.
But make sure to write that gid01 stuff _after_ the level load instruction and after a wait(3); instuction.

Re: ok, maybe i am going about this all wrong.... [Re: Blink] #137434
06/24/07 17:12
06/24/07 17:12
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline OP

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
its saying parameter unknown, its an error in the menu code now.


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: ok, maybe i am going about this all wrong.... [Re: Blink] #137435
06/24/07 17:14
06/24/07 17:14
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Please quote the whole error message.
Its not that easy to guess from a statement like "parameter unkown".

Re: ok, maybe i am going about this all wrong.... [Re: Blink] #137436
06/24/07 17:16
06/24/07 17:16
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline OP

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
heres what it looks like.
Code:
string level_str = <nurfcut.WMB>;///Name of your level 
function start_game()
{
mouse_mode = 0;
pn_menue.visible = off; //switch off the menu

aviHandle = media_play(gimov_new_avi,null,100);
while(media_playing(aviHandle))
{
if(key_space)
{
media_stop(aviHandle);
}
wait(1);
}
wait(1);
// now load the level
level_load(level_str);
wait(3);
gid01_level_state = gid01_level_loaded;
}



Re: ok, maybe i am going about this all wrong.... [Re: Blink] #137437
06/24/07 17:21
06/24/07 17:21
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline OP

Expert
Blink  Offline OP

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
<gid01_level_state=gid01_level_loaded>
numen622.wdl 75:0 (): parameter unknown gid01_level_state

script error


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: ok, maybe i am going about this all wrong.... [Re: Blink] #137438
06/24/07 17:26
06/24/07 17:26
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Ok make sure that the order of your includes is this way:
1. a6 template script files
2. your own script files

Page 4 of 5 1 2 3 4 5

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

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