Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Akow), 1,361 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Save Error [Re: Secret_V] #247131
01/19/09 08:09
01/19/09 08:09
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Are you sure that your action does not work after loading? The action is not written in a way that you can see this easily, so what happens when you replace it by something simple for testing, such as rotating the entity?

Re: Save Error [Re: jcl] #247753
01/22/09 11:22
01/22/09 11:22
Joined: Nov 2008
Posts: 50
S
Secret_V Offline OP
Junior Member
Secret_V  Offline OP
Junior Member
S

Joined: Nov 2008
Posts: 50
Well, there is a way I can check whether the action works or not. I put a watch on the battle_var variable, to keep track of it. As long as I keep walking against the entity, battle_var picks a random number every frame. And when battle_var equals 100, the function battle is called. But when the game loads using game_load and I walk against the entity, the engine does not pick a rondom number any more. And even when I set battle_var to 100 manually and then touch the entity, function battle does not run, but I'll check anyway.

I'm afraid it's not working. I replaced the body of function battle with:
Code:
grass_ent.scale_z += 1;


When I use New Game, it works. But when I use Continue, thus loading using game_load, it doesn't work. As soon as I come near the entity, it give me an error message: Error E1535 - Crash in continu.

Re: Save Error [Re: Secret_V] #248335
01/26/09 08:56
01/26/09 08:56
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I've tried it - event pointer are saved and loaded correctly. For finding why it did not work in your case, try the following:

Manually set the event after loading. You can do that by letting the action permanently set the event again:

Code:
action grass()
{
   while(1) {
	my.emask |= ENABLE_IMPACT;
	my.event = battle;
	wait(1);
   }
}



Now save and check if the event now works after loading. If so, then the original event pointer loaded from the .sav file was wrong for some reason. Please let me know the outcome of this test.


Re: Save Error [Re: jcl] #248399
01/26/09 16:45
01/26/09 16:45
Joined: Nov 2008
Posts: 50
S
Secret_V Offline OP
Junior Member
Secret_V  Offline OP
Junior Member
S

Joined: Nov 2008
Posts: 50
As soon as I press Continue, I get the message:

Error E1513

Crash in continu

And then it loads the level. But the action itself does work now. smile That is, when I run it in Test Run. When I run it in debug run... First it gives the Crash in continu again, and then the level won't even load. frown

Edit: Never mind, I fixed that already, it's all working fine now. smile

Thank you kindly,

Secret V

Last edited by Secret_V; 01/26/09 16:52.
Page 2 of 2 1 2

Moderated by  old_bill, Tobias 

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