Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Ezekiel000 on Sat 22/09/2012 12:19:58

Title: Returning from mini game error
Post by: Ezekiel000 on Sat 22/09/2012 12:19:58
I have a mini game in one of my rooms which when started saves in slot 7 and runs mg3.ags, that works fine.
When I exit mg3.ags it starts the main exe and the main game before the title screen checks for a save game in slot 7 if it exists then it loads it.
But when it tries to load the save game in slot 7 ags crashes and gives me this error:
Error: Restore_Game: Game has changed (inv), unable to restore position

What does this error mean?
I'm running AGS 2.72
Title: Re: Returning from mini game error
Post by: Khris on Sat 22/09/2012 13:31:24
Could you post the code maybe...?
Title: Re: Returning from mini game error
Post by: Ezekiel000 on Sat 22/09/2012 16:40:39
Never mind I found out what was going wrong, I was saving in the same script function as loading the mini game so as the save function executes last it was saving in the mini game.
I instead save, fade out and set variable run_game in the interaction script and in repeatedly execute I run the mini game depending on if the variable run_game is > 0 and the room has faded out other wise it is reset to 0.

Thank you for replying anyway and I'll remember to include the relevant code in the future when I need help.