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
2 registered members (TipmyPip, 1 invisible), 18,731 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
Page 1 of 2 1 2
can´t load map II #290440
09/18/09 23:54
09/18/09 23:54
Joined: Nov 2008
Posts: 15
Germany
R
rrv094055036862 Offline OP
Warez kiddie
rrv094055036862  Offline OP
Warez kiddie
R

Joined: Nov 2008
Posts: 15
Germany
Hi,

now I want to start the map with a function

a button is linked to this function when clicked

function map_start()
{
level_load("Level.wmb");
wait(1);
}


so but he doesn´t start this map

but whyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy?

Re: can´t load map II [Re: rrv094055036862] #290449
09/19/09 02:36
09/19/09 02:36
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
The function looks fine, so you need to be absolutely sure that it is being called. Replace it with this function and click the button again...
Code:
function map_start()
{
error("Button Clicked!!!");
//level_load("Level.wmb");
//wait(1);
}


Now if you click it, you should get a message box pop up. If it doesnt then the function isnt being called properly.

Re: can´t load map II [Re: DJBMASTER] #290451
09/19/09 03:12
09/19/09 03:12
Joined: Nov 2008
Posts: 15
Germany
R
rrv094055036862 Offline OP
Warez kiddie
rrv094055036862  Offline OP
Warez kiddie
R

Joined: Nov 2008
Posts: 15
Germany
so I got the Error message when I click on the Button but with

function map_start()
{
level_load("Level.wmb");
wait(1);
}


nothing happens

after clicking many times I got following error message:

can´t load and save in the same frame - map_start

Re: can´t load map II [Re: rrv094055036862] #290804
09/21/09 14:47
09/21/09 14:47
Joined: Nov 2008
Posts: 15
Germany
R
rrv094055036862 Offline OP
Warez kiddie
rrv094055036862  Offline OP
Warez kiddie
R

Joined: Nov 2008
Posts: 15
Germany
????? where is the problem. Could it be that the problem is not in the code but in the map? what can I try?

Re: can´t load map II [Re: rrv094055036862] #290806
09/21/09 14:55
09/21/09 14:55
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
Try this:
limiting the amount to load the level


var loaded=0;
function map_start()
{
if(loaded) return;
loaded=1;
level_load("Level.wmb");
wait(1);
}

Re: can´t load map II [Re: Damocles_] #290819
09/21/09 16:08
09/21/09 16:08
Joined: Nov 2008
Posts: 15
Germany
R
rrv094055036862 Offline OP
Warez kiddie
rrv094055036862  Offline OP
Warez kiddie
R

Joined: Nov 2008
Posts: 15
Germany
no, doesn´t work

but could it be the problem that I saved this file as a .c file and not as a .wdl file?

maybe wrong script language?

Re: can´t load map II [Re: rrv094055036862] #290821
09/21/09 16:12
09/21/09 16:12
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
Quote:
no, doesn´t work


you need to say what does not work,
and what the error message
or wrong behaviour is.

Re: can´t load map II [Re: Damocles_] #290823
09/21/09 16:16
09/21/09 16:16
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Save as .c is right, wdl is the old c-script.
Edit: i see that you post in the WDL forum...
What you use: lite-c (.c) or c-script (.wdl)?
What version you use?

As Damocles say, we need more input...

Last edited by Widi; 09/21/09 16:19.
Re: can´t load map II [Re: Widi] #290831
09/21/09 17:37
09/21/09 17:37
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
You must purchase Gamestudio for loading a map. From your problems I see that youre not using a normal version. The warez version was beta and doesnt have the functions of the normal release version.

Re: can´t load map II [Re: Spirit] #290832
09/21/09 17:41
09/21/09 17:41
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
But he has A7Pro according to the profile,
so he must be either quite wealthy or a serious developer...

wink

Page 1 of 2 1 2

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

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