Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Marion on Thu 03/04/2025 08:14:47

Title: Savegame problems ?
Post by: Marion on Thu 03/04/2025 08:14:47
Hi, I think I have a problem with my savegames. I don't know why, but when I test my game, everything works fine. I save, I load my game, and then nothing works anymore. It crashes when it tries to execute the Global Script's "repeatedly execute" commands and says there's no reference, or when I click anywhere in the GUI - then I get this message:
(http://marionpoinsot.fr/dessins/wp-content/uploads/2025/04/error-300x209.jpg)

It's as if once a game is loaded, it no longer takes into account the global script...

I'm using AGS 4.00.00.15.

Thank you in advance ♥
Title: Re: Savegame problems ?
Post by: Khris on Thu 03/04/2025 08:25:39
Not saying this isn't a bug, but please post line 483 and surrounding ones.
Title: Re: Savegame problems ?
Post by: Marion on Thu 03/04/2025 08:30:59
Here is the code from the error message, but it's not the only thing not working. It doesn't want to execute ANY of the GUI buttons (I have different error messages depending on which button I click), or anything included in the Repeteadly_execute, once I have loaded a previous game :


function bCharger_OnClick(GUIControl *control, MouseButton button)
{
 aClic.Play();
Wait(20);
gCrafting.Visible=false;
gCuisine.Visible=false;
gInventaire.Visible=false;
dCharger.Start();
}
}
Title: Re: Savegame problems ?
Post by: Crimson Wizard on Thu 03/04/2025 09:46:29
Please try to upgrade to 4.0.0.16 and check if this error still happens.
This would be the current download link in ags 4 forum thread:
https://www.adventuregamestudio.co.uk/forums/ags-engine-editor-releases/ags-4-0-early-alpha-for-public-test/


Also, in general, since 4.0 is not entirely stable at the moment, it's better to report such "strange" errors in the AGS 4 forum thread.
Title: Re: Savegame problems ?
Post by: Marion on Thu 03/04/2025 10:06:47
Thank you very much, I'll try this right now !
Title: Re: Savegame problems ?
Post by: Marion on Thu 03/04/2025 10:09:49
It works ! THANK YOU !!  :-*  :-*  :-*  :-*