Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Marion on Wed 05/03/2025 16:46:41

Title: error : I can't start the game anymore !
Post by: Marion on Wed 05/03/2025 16:46:41
HELP !! I can't launch my game anymore! I got this error :

(https://cdn.discordapp.com/attachments/877174995573424208/1346886402998140988/image.png?ex=67c9d136&is=67c87fb6&hm=c90d89f9e88b8ed2946f3875f240515dbf8e5d295151eae8fb0c72ec7bb415f2&)

All I did since last time was adding some inventory items !
Title: Re: error : I can't start the game anymore !
Post by: Crimson Wizard on Wed 05/03/2025 17:06:11
Could you upload the image somewhere else, because it does not show for me?

Also, you can usually do Ctrl+C when error window is open, that will copy the text to clipboard, and then you can paste it into the forum post.
Title: Re: error : I can't start the game anymore !
Post by: Marion on Wed 05/03/2025 17:41:27
Sure, sorry. Here is the text :

Loading game failed with error:
There was error reading game data extensions.
Unknown extension.
Type: id:89.

The game files may be incomplete, corrupt or from unsupported version of AGS.

***

I'm using AGS 4.0. It worked fine until today.
Title: Re: error : I can't start the game anymore !
Post by: Crimson Wizard on Wed 05/03/2025 18:16:28
So, this is happening when running a compiled game.
Have you tried to fully rebuild it?
Please tell what version is this exactly (you can see the full version numbers in Help->About menu).
Title: Re: error : I can't start the game anymore !
Post by: Marion on Wed 05/03/2025 18:18:12
It's happening when I try to test the game. I also have rebuilt it fully and I got the same error when I launch the .exe.
It's the version v4.0.0
Title: Re: error : I can't start the game anymore !
Post by: Crimson Wizard on Wed 05/03/2025 18:34:50
Quote from: Marion on Wed 05/03/2025 18:18:12It's the version v4.0.0

There should be 4 numbers, the last is important for me to know.
Title: Re: error : I can't start the game anymore !
Post by: Marion on Wed 05/03/2025 18:35:32
Sorry, wrong line : 4.00.00.13
Title: Re: error : I can't start the game anymore !
Post by: Crimson Wizard on Wed 05/03/2025 18:50:21
Well, this error means that the game was not compiled correctly. But I cannot tell how exactly that could happen.

Did you upgrade the version of AGS recently?
Do you remember what did you add to the game right before this began to happen?
Title: Re: error : I can't start the game anymore !
Post by: Marion on Wed 05/03/2025 18:52:28
I use the same version since I began the game. I didn't change. I tried to open the game with a previous version when I had problems importing sprites, but it couldn't open it and didn't save anything.
Apart of that, I just added some sprites and inventory items, write some code lines, but not much.
Title: Re: error : I can't start the game anymore !
Post by: Crimson Wizard on Wed 05/03/2025 19:09:06
I'm afraid that I won't be able to tell what is going on without knowing more, or directly debugging the game project.

Is it possible for you to send me your project files privately so that I could take a look?
Title: Re: error : I can't start the game anymore !
Post by: Marion on Wed 05/03/2025 19:23:01
Sure, I will send it to you by MP. But it's 15Go, it will take some times to compress and upload. Thank you very much for your help !
Title: Re: error : I can't start the game anymore !
Post by: Snarky on Wed 05/03/2025 22:03:01
Quote from: Marion on Wed 05/03/2025 19:23:01it's 15Go

That'll be why it stopped working.
Title: Re: error : I can't start the game anymore !
Post by: Marion on Wed 05/03/2025 23:34:58
 :~(
Title: Re: error : I can't start the game anymore !
Post by: Crimson Wizard on Thu 06/03/2025 12:44:12
Quote from: Marion on Wed 05/03/2025 19:23:01Sure, I will send it to you by MP. But it's 15Go, it will take some times to compress and upload.

I'd like to give a hint for the future: there are 2 files in the project:
"acsprset.spr" - is a sprite package
"backup_acsprset.spr" - is a backup copy of a sprite package

This is usually the largest files in the game. You have put both in the archive, which made it twice as large, but only first file is necessary.

Similarly, there's Game.agf and Game.agf.bak, where latter is a backup copy. This file also may be large if there's a lot of game content (like dialogs). Game.agf.bak is unnecessary to include into the archive.

Then, in AGS 4 the rooms are stored as folders in "Rooms" folder, and files called "roomN.crm" are only used as a temporary output when compiling the game. So there's no need to include "roomN.crm" files also.

Removing "backup_acsprset.spr", "Game.agf.bak" and "roomN.crm" files from the archive shrinks it down from 22 GB to 10 GB.

Something else that you may try to do in regards to your game is to change Sprite Compression from LZW to Deflate, that option was added recently and usually better than LZW.

I will try to check out what the problem is next...
Title: Re: error : I can't start the game anymore !
Post by: Marion on Thu 06/03/2025 12:49:56
Noted ! Sorry ! Thank you very much !
Title: Re: error : I can't start the game anymore !
Post by: Crimson Wizard on Thu 06/03/2025 15:47:40
I found what's wrong, this is a bug in the engine, that makes it fail to load a Release game build since version 4.0.0.13. You probably had your game set to Debug mode, but then turned that off recently, and that's where it began to fail.

I made a fixed version of 4.0.0.13 engine, which you may replace in your Editor program folder:
https://www.dropbox.com/scl/fi/j6le6de9nqs5z3zkwo5kq/acwin-4.0.0.13-fixloadreleasedgame.zip?rlkey=faqnjvy5c2b7z0s1yzl87bg9w&st=cfwkjzl1&dl=0

I will be adding this fix to the recent 4.0 update too, and provide a download link later today.
Title: Re: error : I can't start the game anymore !
Post by: Crimson Wizard on Thu 06/03/2025 16:38:48
Another thing, I made an experiment, switching Sprite Compression from LZW to Deflate.
It took ALOT of time to resave the game due to a huge size of a sprite file (about 15 minutes maybe :/).
But the size of acsprset.spr went down from 16 GB to 9.8 GB, so like 40% off.

EDIT: Although, I would question the necessity of having so much graphic data for this game. I only made a quick glance of the game process, and it looks mostly as a travel between rooms with static backgrounds and minimum of functional animations. Perhaps it could have been optimized up to a certain degree.
Title: Re: error : I can't start the game anymore !
Post by: Marion on Thu 06/03/2025 17:21:18
I will try immediately ! Thank you SO much !!!! ♥♥♥
Title: Re: error : I can't start the game anymore !
Post by: Marion on Thu 06/03/2025 17:32:58
It works !! I can continue my game !! I can't thank you enough !!!  \o/