Level restart bad

Non-platform specific questions.

Level restart bad

Postby alexwbc » Wed Mar 05, 2014 11:12 pm

Heya people, another help needy newbie here.

I am still working on the game mechanics and now I am at the point when the player die: there are no life, additional ship or stuff like that: you lose, you restart the level (or the latest checkpoint... but still need to figure how enable them).

Now, I though that for restarting the level all you needed was to use:
Code: Select all
LoadGame("leve1.ged");

(Basically the first level recalling itself)
But it seems that it doesn't works smoothly: some things are missing (timer, parent actor links, scripts etc...etc...); you can see it in the source I've attached (key '1' is for inflict self damage to death (and restart) or just press 'r' to reset right away)


Believing the problem may be some residual data left in memory I tried to fix loading a "bridge level" in between the reset
level.ged > LoadGame("loading_screen.ged"); > and then in the loading_screen.ged > LoadGame("level1.ged");
But nothing solve :(
Attachments
wj.source.tar.gz
(493.37 KiB) Downloaded 129 times
User avatar
alexwbc
 
Posts: 15
Joined: Fri Feb 07, 2014 5:28 pm
Score: 0 Give a positive score

Re: Level restart bad

Postby lcl » Wed Mar 05, 2014 11:30 pm

Have you tried exporting it?
I've heard that there are some problems when using LoadGame(); in the editor.
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Level restart bad

Postby alexwbc » Thu Mar 06, 2014 9:07 am

I think I can confirm said problem for 1.4.0 then: exporting to binary solves the problem :)
User avatar
alexwbc
 
Posts: 15
Joined: Fri Feb 07, 2014 5:28 pm
Score: 0 Give a positive score

Re: Level restart bad

Postby lcl » Thu Mar 06, 2014 1:52 pm

Great! :)
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Level restart bad

Postby alexwbc » Thu Mar 06, 2014 2:42 pm

Great indeed, thank for the help also :D
User avatar
alexwbc
 
Posts: 15
Joined: Fri Feb 07, 2014 5:28 pm
Score: 0 Give a positive score

Re: Level restart bad

Postby lcl » Thu Mar 06, 2014 2:46 pm

No problem. :)
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest