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
3 registered members (NewbieZorro, TipmyPip, AndrewAMD), 14,749 guests, and 7 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
why is it doesn't run #99492
11/21/06 14:38
11/21/06 14:38
Joined: Nov 2006
Posts: 47
V
viva Offline OP
Newbie
viva  Offline OP
Newbie
V

Joined: Nov 2006
Posts: 47
i use the template code follow the tutorial but why is it doesn't work?

THIS IS MY PROJECT >>> http://www.yousendit.com/transfer.php?action=download&ufid=2AFE52DD1AA26C2B

please help me. i don't know what i have to do now (-*-)

Re: why is it doesn't run [Re: viva] #99493
11/21/06 15:23
11/21/06 15:23
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
aztec Offline

Expert
aztec  Offline

Expert

Joined: Apr 2005
Posts: 2,332
Germany, BaWü
did you have something like that in the main script?

Code:
function main
{
level_load("yourlevel.wmb");
............
}




Visit:
schwenkschuster-design.de
Re: why is it doesn't run [Re: aztec] #99494
11/21/06 18:02
11/21/06 18:02
Joined: Nov 2006
Posts: 47
V
viva Offline OP
Newbie
viva  Offline OP
Newbie
V

Joined: Nov 2006
Posts: 47
No, how can i add this. Do u have tutorials about this??

Re: why is it doesn't run [Re: viva] #99495
11/21/06 19:22
11/21/06 19:22
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
aztec Offline

Expert
aztec  Offline

Expert

Joined: Apr 2005
Posts: 2,332
Germany, BaWü
Its really simple search your function main
then write this
Code:

level_load(".....")


for the dots just type the name of your game if its shooter
then write

level_load("shooter.wmb");
hope this helps
regards
Aztec


Visit:
schwenkschuster-design.de
Re: why is it doesn't run [Re: aztec] #99496
11/22/06 13:57
11/22/06 13:57
Joined: Nov 2006
Posts: 47
V
viva Offline OP
Newbie
viva  Offline OP
Newbie
V

Joined: Nov 2006
Posts: 47
I add this

function main
{
level_load("test.wmb")
}

And it error

<level_load("test.wmb")>
TEST.WDL 43:-1 Error(6) Script error last line

<gid01_level_state = gid01_level_not_loaded;>
TEST.WDL 48:0 Error(29):Keyword unknown gid01_level_state

<warn_level = 2;>
TEST.WDL 52:0 Error(29):Keyword unknown warn_level

<mouse_mode = o;>
TEST.WDL 56:0 Error(29):Keyword unknown mouse_mode

<wait(3);>
TEST.WDL 59:0 Error(29):Keyword unknown wait

HOW TO FIX IT????
Thanks for your help

Last edited by viva; 11/22/06 14:06.
Re: why is it doesn't run [Re: viva] #99497
11/22/06 14:11
11/22/06 14:11
Joined: Nov 2006
Posts: 47
V
viva Offline OP
Newbie
viva  Offline OP
Newbie
V

Joined: Nov 2006
Posts: 47
This is my whole code. Can code's error occur somewhere else?


Filename of the starting level.
string level_str = <Test.WMB>; // give file names in angular brackets

////////////////////////////////////////////////////////////////////////////
// Included files
include <gid01.wdl>; // global ids
include <display00.wdl>; // basic display settings
include <plSelect.wdl>;
include <cameraTarget.wdl>;
include <miscInput01.wdl>;
include <plBipedInput01.wdl>;
include <bipedPhy01.wdl>;
include <bipedAnim01.wdl>;
include <bipedSnd01.wdl>;
include <plBiped01.wdl>;
include <cameraSelect.wdl>;
include <camera3rd01.wdl>;





/////////////////////////////////////////////////////////////////
// Desc: The main() function is started at game start
function main
{
level_load("test.wmb")
}


// set some common flags and variables
// freeze all entity functions
freeze_mode = 1;
// no level has been loaded yet...
gid01_level_state = gid01_level_not_loaded;

// entry: Warning Level (0,1, or 2)
// entry_help: Sets sensitivity to warnings (0 = none, 1 = some, 2 = all).
warn_level = 2; // announce bad texture sizes and bad wdl code


// entry: Starting Mouse Mode (0, 1, or 2)
mouse_mode = 0;

// wait 3 frames (for triple buffering) until it is flipped to the foreground
wait(3);

// now load the level
level_load("test.wmb");

wait(2); // let level load
// level should be loaded at this point...
gid01_level_state = gid01_level_loaded;

//+++ load starting values

// main game loop
while(1)
{
if(gid01_level_state != gid01_level_loaded)
{
// pause the game
freeze_mode = 1;
}
else
{
// un-freeze the game
freeze_mode = 0;
}
wait(1);
}
}


// Desc: this is the function used to restart the game.
function main_restart_game()
{
// wait 3 frames (for triple buffering) until it is flipped to the foreground
wait(3);

// now load the level
level_load(level_str);
// freeze the game
freeze_mode = 1;

wait(2); // 1-level loads, 2-entities load

//+++ load starting values

// un-freeze the game
freeze_mode = 0;
}


// Desc: this is the function used to quit the game.
function main_quit()
{
//+++ // save global skills & strings
exit;
}

/////////////////////////////////////////////////////////////////
// The following definitions are for the pro edition window composer
// to define the start and exit window of the application.
WINDOW WINSTART
{
TITLE "3D GameStudio";
SIZE 480,320;
MODE IMAGE; //STANDARD;
BG_COLOR RGB(240,240,240);
FRAME FTYP1,0,0,480,320;
// BUTTON BUTTON_START,SYS_DEFAULT,"Start",400,288,72,24;
BUTTON BUTTON_QUIT,SYS_DEFAULT,"Abort",400,288,72,24;
TEXT_STDOUT "Arial",RGB(0,0,0),10,10,460,280;
}

/* no exit window at all..
WINDOW WINEND
{
TITLE "Finished";
SIZE 540,320;
MODE STANDARD;
BG_COLOR RGB(0,0,0);
TEXT_STDOUT "",RGB(255,40,40),10,20,520,270;

SET FONT "",RGB(0,255,255);
TEXT "Any key to exit",10,270;
}*/


/////////////////////////////////////////////////////////////////
//INCLUDE <debug.wdl>;

Re: why is it doesn't run [Re: viva] #99498
11/22/06 14:54
11/22/06 14:54
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
The errors are caused by manually editing your script. Now it won't compile anymore. Delete the lines that you added - they don't make sense here - and start over.

Only edit your script when you know what you're doing! The best way to learn how to program a script is the C-Script Workshop.

Re: why is it doesn't run [Re: jcl] #99499
11/23/06 15:19
11/23/06 15:19
Joined: Nov 2006
Posts: 47
V
viva Offline OP
Newbie
viva  Offline OP
Newbie
V

Joined: Nov 2006
Posts: 47
OK now i can make it move. Thanks for every answers. thank you very much


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