Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Surplusguy on Mon 01/07/2013 03:32:03

Title: RestartGame crash
Post by: Surplusguy on Mon 01/07/2013 03:32:03
If this isn't the right forum please move this topic, but when I try setting a restart point, then running RestartGame in the same room, it crashes the player and brings up an error message with a dmp file. Why is this? Can I fix it?
Title: Re: RestartGame crash
Post by: Khris on Mon 01/07/2013 09:14:59
SetRestartPoint(); doesn't save the game instantly. According to the manual:
QuoteNOTE: The restart point cannot be set while a script is running -- therefore, when you call this it will actually set the restart point at the next game loop where there is not a blocking script running in the background.

Could this be the problem?

We need to take a look at your code and inside which events you're calling it anyway though, so please give us something to go on.