Returning from mini game error

Started by Ezekiel000, Sat 22/09/2012 12:19:58

Previous topic - Next topic

Ezekiel000

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

Khris

Could you post the code maybe...?

Ezekiel000

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.

SMF spam blocked by CleanTalk