Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/06/23 11:29
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
7 registered members (3run, miwok, AndrewAMD, Quad, TipmyPip, fairtrader, 1 invisible), 637 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
save and scene_map problem #7103
09/27/01 15:38
09/27/01 15:38

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Here's the problem I've got with sky textures and save/load functions.

In the 'main' function I have init_sky() function (which sets cloud_map, sky_map, scene_map and so on) and I load a level1. Then I load another level2 and I have function init_sky_next_level(). When I save the second lavel2 (with the new sky set) and then I load it there's the sky from previous level? HOW COME? I tried to init_sky before load_level but it's only worked when I didn't init_sky in the main function.
Does anybody know what is wrong?

Greetings
AL


Re: save and scene_map problem #7104
09/30/01 04:18
09/30/01 04:18

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



maybe you have to close the first sky, I do not know enough about wdl yet to tell you how to make init_sky=-null before you load the next sky for your second level.

Re: save and scene_map problem #7105
10/01/01 09:51
10/01/01 09:51

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Hi: If you send me the structure of the different wdl involved ( or is only one ? ), perhaps I can help you. For now, I can't understand the exact order in which you do the calls.

Re: save and scene_map problem #7106
10/02/01 21:33
10/02/01 21:33

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Hi I'll just try to make it more clear
Here's what I do:

//here I set the sky in the first level
function init_sky_in_first_level(){
scene_map = first_level_map;
//oher stuff...
}

//here I set the sky in the second level
function init_sky_in_second_level(){
scene_map = second_level_map;
//oher stuff...
}

function main{//'main' function...
//other stuff...
load_level(<first_level.wmb> );
init_sky_in_first_level();
//other stuff...
}

I run the game, the first level is loaded, and then during the game the second level is loaded

function load_second_level{
me=null;
load_level(<second_level.wmb> );
init_sky_in_second_level();
}

And the problem is that when I save the game at the second level and I load it afterwards I've got the wrong scene_map. (Eg. from a previous level.)

Greetings
AL


Re: save and scene_map problem #7107
10/02/01 22:02
10/02/01 22:02
Joined: Jul 2000
Posts: 2,037
Lafayette, LA USA
J
James Snydstrup Offline
Senior Expert
James Snydstrup  Offline
Senior Expert
J

Joined: Jul 2000
Posts: 2,037
Lafayette, LA USA
AndyEl:

You need to verify that 'function load_second_level' is actually being executed after the second level loads. If it is being executed then you can continue to troubleshoot the problem but that is the first thing you need to determine. One way to do that is to put in a BEEP or breakpoint.



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