Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Cordate on Fri 07/10/2022 07:41:30

Title: Error when trying to load game
Post by: Cordate on Fri 07/10/2022 07:41:30
The other day while I was working on my game, AGS stopped responding and I couldn't close it out, and using task manager didn't work so I restarted my computer. Now when I try to load my game I get an error that says "Unable to load spriteset from ACSPRSET.SPR. Unsupported spriteset format (requested 0, format 4-11)."
Is there a way to fix this or am I screwed?
Title: Re: Error when trying to load game
Post by: Khris on Fri 07/10/2022 08:35:13
Luckily AGS makes a backup of the spriteset file.

The very first thing you should do is make a backup copy of the game folder.

Now close AGS if it's still open, then go into the game folder and delete acsprset.spr and rename backup_acsprset.spr to acsprset.spr. Now try opening the game again.
Title: Re: Error when trying to load game
Post by: Cordate on Fri 07/10/2022 08:54:04
Quote from: Khris on Fri 07/10/2022 08:35:13Luckily AGS makes a backup of the spriteset file.

The very first thing you should do is make a backup copy of the game folder.

Now close AGS if it's still open, then go into the game folder and delete acsprset.spr and rename backup_acsprset.spr to acsprset.spr. Now try opening the game again.

Oh my god thank you so much! It worked!
Title: Re: Error when trying to load game
Post by: Crimson Wizard on Fri 07/10/2022 10:30:17
For the reference, which version of AGS are you using?

I don't remember when we did this, but in recent versions AGS supposed to save acsprset.spr to a temp file first, and replace the actual file only if writing was successful.

Another thing, in the most recent AGS 3.6.0 you can completely restore acsprset.spr if you still have got all the sprite source files you used in same locations (AGS saves the paths to these source files when you import them). This is done using a command in File menu.

But of course, making your own backups regularily is a good idea.
Title: Re: Error when trying to load game
Post by: Cordate on Fri 07/10/2022 21:37:30
Quote from: Crimson Wizard on Fri 07/10/2022 10:30:17For the reference, which version of AGS are you using?

I don't remember when we did this, but in recent versions AGS supposed to save acsprset.spr to a temp file first, and replace the actual file only if writing was successful.

Another thing, in the most recent AGS 3.6.0 you can completely restore acsprset.spr if you still have got all the sprite source files you used in same locations (AGS saves the paths to these source files when you import them). This is done using a command in File menu.

But of course, making your own backups regularily is a good idea.
I'm using 3.5