Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Dualnames on Wed 02/07/2008 09:35:33

Title: Ye Old Restart() Messes My Game.
Post by: Dualnames on Wed 02/07/2008 09:35:33
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.
Title: Re: Ye Old Restart() Messes My Game.
Post by: Pumaman on Fri 04/07/2008 18:59:38
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.
Title: Re: Ye Old Restart() Messes My Game.
Post by: Dualnames on Fri 04/07/2008 20:57:45
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.