Ye Old Restart() Messes My Game.

Started by Dualnames, Wed 02/07/2008 09:35:33

Previous topic - Next topic

Dualnames

Well, ok, this isn't not a thread I'm asking help with, I've bypassed the restart command which causing severe problems on the game. At first I thought I was doing something wrong as it usually happens, but then some other people told me that they share the same old problem. So I've bypassed it. It matter not the way, however I'd rather have the old RestartGame() function instead of my code if it's possible. I had the same problems with AGS 2.72. Anyway, I created an empty game with a restart game code and set restart point thing. I tested the restart about 10 or 12 time can't really be sure and at some point the hotspots got weird, some integers that got value instead of turning back to zero kept on their current value. Sorry if this will cause frustration Chris. I know you're working more than you actually should on this, I just thought I'd rather mention this. So anyone had any ideas what causes Restart to bug and when? because it seems random all and all.
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Pumaman

Can you post an example where this isn't working? The restart point can be a bit confusing because it is created on the first non-blocking game loop, but in itself it is just a save game so it shouldn't behave any differently to a normal save/load process.

Dualnames

I replaced it with a savegame and it works. anyway, well.
At the first room of the game at part
room_AfterFadein
I put this
SetRestartPoint();

then just call RestartGame();

I replace the above lines with this:
SaveGameSlot(12,"restart");

and RestoreGameSlot(12);

and put some various things to fix it better.
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

SMF spam blocked by CleanTalk