Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Sir Bob on Sat 10/12/2005 22:36:11

Title: Restore Error (SOLVED)
Post by: Sir Bob on Sat 10/12/2005 22:36:11
When I was trying to use my new Restore script:

Quote
An exception 0xC0000005 occured in ACWIN.EXE at EIP = 0x0045B7AC ; program pointer is +2051, ACI version 2.70.864, gtags (6,3)

#sectionstart loadgame_Click  // DO NOT EDIT OR REMOVE THIS LINE
function loadgame_Click(GUIControl *control, MouseButton button) {
 
  int index = loadlist.SelectedIndex;
  RestoreGameSlot(savegameindex[index]);
  gLoadscreen.Visible = false;
  gMenu1.Visible = true;
  gMenu1.Centre();
}
#sectionend loadgame_Click  // DO NOT EDIT OR REMOVE THIS LINE
Title: Re: Restore Error
Post by: Pumaman on Sat 10/12/2005 23:15:50
Have you changed your game since that save game was created? If you try to restore a position that was saved with an older version of the game, it can cause problems.
Title: Re: Restore Error
Post by: Sir Bob on Sat 10/12/2005 23:28:46
That must have been the problem...