Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: monkey0506 on Fri 10/03/2006 18:46:16

Title: Game crash using RestartGame() (FIXED)
Post by: monkey0506 on Fri 10/03/2006 18:46:16
Using RestartGame my game keeps crashing with the following error:

Quote---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occured in ACWIN.EXE at EIP = 0x00460E09 ; program pointer is +6, ACI version 2.72.908, gtags (2,12)

AGS cannot continue, this exception was fatal. Please note down the numbers above, remember what you were doing at the time and notify CJ on the Tech forum.



Most versions of Windows allow you to press Ctrl+C now to copy this entire message to the clipboard for easy reporting.
---------------------------
OK   
---------------------------

Not really sure what I've done.  It just doesn't seem to like me trying to restart the game.

Edit by strazer:

AGS v2.72 Beta 6:
* Fixed crash if you used Restore or Restart within a script module event handler.
Title: Re: Game crash using RestartGame()
Post by: RickJ on Sat 11/03/2006 07:13:55
These are fairly obvious suggestions but in case you haven't thought of it you could try to:

Title: Re: Game crash using RestartGame()
Post by: Pumaman on Sat 11/03/2006 10:57:28
Would it be possible to upload your game so i can look into it?

QuoteMake sure you do a  SetRestartPoint () before you do a RestartGame ()

This should not be necessary, the vast majority of games shouldn't need to use SetRestartPoint.

QuoteThese two functions should probably reference each other in the manual. 

Good point, will do.
Title: Re: Game crash using RestartGame()
Post by: hedgefield on Sat 11/03/2006 11:00:54
I had this error before when I tried saving the game to slot 999 I believe. Not sure what was going on there.

If you use SetRestartPoint remember to put it in a quiet bit (aka no running scripts like cutscenes) otherwise it gets all borked up when you restart.
Title: Re: Game crash using RestartGame()
Post by: bullfrog on Sun 12/03/2006 12:33:41
I get this error when I try to restart the game from a script module.
Title: Re: Game crash using RestartGame()
Post by: monkey0506 on Mon 13/03/2006 01:09:13
There are no save games in the compiled directory (and yes, I have deleted the .999 one (which is left in the folder when the game crashes)), nor is there even any functions currently implemented to save the game.

The way I understood it, you could use RestartGame without calling SetRestartPoint first.

And yes, I am calling it from a script module, so that seems likely to be related.

I can't upload the file right now, although I may be able to later (I'm on my mom's laptop, not my computer).  I'm currently trying to do something a little bit against the current conventions, so until I get it fully working I'd like to keep it as under wraps as possible (we wouldn't want another screwup like the ScrollingDialog module on my record now would we?).  But if you still want me to upload it, I trust you Chris.  Like I said though, I don't have access to it right now.