File Oversized [Solved]

Started by Vincent, Tue 22/06/2021 12:54:56

Previous topic - Next topic

Vincent

Good day to all Agser, I am working on a demo which I've have just done right now but I think there's something strange. I have a folder in my computer where there are all the sprites used on the game and the folder size is 21,7 Mb. I have another folder where there are all the music and sound for the game and it's size is 29,9 MB. When I do right click on the compiled folder the size it's 691 MB which it should be around 50 MB more or less, I don't understand why it's become so heavy, do you know why? I am using AGS 3.5.0.29-P7

eri0o

#1
So this really big change is weird, but totally possible. Regarding to sprites, this manual page has a bit of information:

https://adventuregamestudio.github.io/ags-manual/DistGame.html#managing-the-graphics-footprint

I recommend using the sprite compression always, turn it on in the general settings. In your project directory, look at the size of the sprite cache there (I think it's named acsprite.spr), and it will be the size of your sprites as bmp in ags.

Music uses whatever compression you used, those are simply copied.

Do you have anything in the Data directory besides your game?

Your room files (the .crm files in project root directory) are also directly copied inside your game when it's built.

When you say Compiled folder, what directory do you mean? If you are building for Linux too, you have three times your game there: datafile, Windows, and Linux. These would be in Data, Windows, and Linux directories under Compiled

Gilbert

Have you enable the "compress sprite file" option?
I think default setting is to have this disabled (at least in the past), so the compiled game's size can differ greatly from your original resource image files (especially if they're compressed effectively like being in .PNG or .JPEG formats).
Even if this is enabled they still may not be compressed as good as the original files (as AGS uses only a very simple RLE scheme), depending heavily on how "complicated" they are, but should be better than none.

Edited: Ninja'd by Eric, but I'll just post this as-is, in case it may help.

Vincent

Quote from: eri0o on Tue 22/06/2021 13:00:17
So this really big change is weird, but totally possible. Regarding to sprites, this manual page has a bit of information:

https://adventuregamestudio.github.io/ags-manual/DistGame.html#managing-the-graphics-footprint

I recommend using the sprite compression always, turn it on in the general settings.

Thanks for the manual page, I'll keep it in mind. I can't see any sprite compression in general setting but just the sprite cache size at the default setup in the editor, you mean that? I tried to increase it from 128 to 1280, I re-compiled the game but nothing has changed. The size of the acsprset.spr is 653 MB when the compiled folder is 691 MB. I don't have any data besides the game(acsetup.cfg, audio.vox, mygame.ags), I am using agsshell.dll but that's nothing. I am just compiling for Windows btw

Vincent

Quote from: Gilbert on Tue 22/06/2021 13:13:02
Have you enable the "compress sprite file" option?
I think default setting is to have this disabled (at least in the past), so the compiled game's size can differ greatly from your original resource image files (especially if they're compressed effectively like being in .PNG or .JPEG formats).
Even if this is enabled they still may not be compressed as good as the original files (as AGS uses only a very simple RLE scheme), depending heavily on how "complicated" they are, but should be better than none.

Edited: Ninja'd by Eric, but I'll just post this as-is, in case it may help.

Thanks Gilbert for posting it, I just find the compress sprite file option right now and I'll going to test it

Vincent

#5
Quote from: Gilbert on Tue 22/06/2021 13:13:02
Have you enable the "compress sprite file" option?
I think default setting is to have this disabled (at least in the past), so the compiled game's size can differ greatly from your original resource image files (especially if they're compressed effectively like being in .PNG or .JPEG formats).
Even if this is enabled they still may not be compressed as good as the original files (as AGS uses only a very simple RLE scheme), depending heavily on how "complicated" they are, but should be better than none.

Edited: Ninja'd by Eric, but I'll just post this as-is, in case it may help.

Ok that works fine, it has been drastically reduced to 72 Mb. Thanks a lot for the hint both eri0o and Gilbert

SMF spam blocked by CleanTalk