My personal list of problems with AGS 4

Started by Monsieur OUXX, Thu 17/07/2025 21:16:43

Previous topic - Next topic

Monsieur OUXX

#20
ISSUE #7 : Catastrophic failure

This issue is probably not new, but reveals an old problem of AGS :
- I had an exception while saving the game. This time, the "out of memory" issue hit the JsonWriter.
- I told myself : "Nevermind, I'll close it and re-open it".
- When I re-opened AGS and the game, I had a message that over a thousand sprites were missing.
- I exited the game without saving and did a copy of my game folder.
- Then, I re-opened AGS and I helped the game going back to a healthy state by doing "File -> Restore all sprites from source".
- But then the sprites themselves were of course still missing.

NONE OF THE BACKUP FILES HELPED:
  - game.agf.bak was the exact same as game.agf
  - acsprset.spr had been partly overwritten by the corrupt data (incomplete file)

I'm not allowing myself to panic yet because I still have the files from before my AGS 4 upgrade. EDIT: I used the acsprset.spr file straight from after my AGS 3.6 upgrade, and it worked directly.

But I think this highlights the need of a better recovery mechanism :
-  If the saving crashes in the middle, then the critical files SHOULD NOT be overwritten. They should be swapped only after the save is successful.
- Or, at least, there should be more than one backup file generated. It's no longer 2005, we could have 10 of them (I'm exaggerating to make a point) and it would still use close to no resources.
 

SMF spam blocked by CleanTalk