Game crash using RestartGame() (FIXED)

Started by monkey0506, Fri 10/03/2006 18:46:16

Previous topic - Next topic

monkey0506

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.

RickJ

These are fairly obvious suggestions but in case you haven't thought of it you could try to:

  • Delete the save game files from the compiled directory, especially *.999
  • Make sure you do a  SetRestartPoint () before you do a RestartGame ()

    Note to CJ:  These two functions should probably reference each other in the manual. 

Pumaman

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.

hedgefield

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.

bullfrog

#4
I get this error when I try to restart the game from a script module.

monkey0506

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.

SMF spam blocked by CleanTalk