Page 1 of 1

Savegame vs autosave size difference

Posted: Wed Feb 22, 2023 8:14 pm
by szydas
Hi,
where comes file size difference between savegame and autosave from? In my case it's 816 vs 730 MB files, saved one by one. Restoring game from both gives same results. So why one is much bigger than other?

Re: Savegame vs autosave size difference

Posted: Wed Feb 22, 2023 8:46 pm
by Rseding91
There is no difference in the file format between the save methods. What most likely is happening is the game is updating between the two and things in the game are changing resulting in different data being saved.

Re: Savegame vs autosave size difference

Posted: Thu Feb 23, 2023 1:05 pm
by szydas
There is only few seconds time between both saves. How much could change in game in such liitle time span?
Zrzut ekranu 2023-02-23 144614.png
Zrzut ekranu 2023-02-23 144614.png (3.81 KiB) Viewed 2033 times

Re: Savegame vs autosave size difference

Posted: Thu Feb 23, 2023 2:14 pm
by Rseding91
Technically; anything can change between any two game ticks.

You can test it simply by going into the editor and using the editor-pause feature. Let autosave run and do a manual save.

Re: Savegame vs autosave size difference

Posted: Thu Feb 23, 2023 7:03 pm
by DaleStan
This looks to me like it's probably a case of different compression settings for autosaves and manual saves.

Compare the size of the decompressed saves too, and see if the difference is closer to what you expect.

Re: Savegame vs autosave size difference

Posted: Thu Feb 23, 2023 7:28 pm
by szydas
Is there different setting for compression of autosaves? I thought only one setting available affects all saves, auto and manual ones.

I unpacked both files: exept descriptor files (json, preview etc) every single .dat file has different size. About 5-20% bigger are manual saves.

Re: Savegame vs autosave size difference

Posted: Thu Feb 23, 2023 8:02 pm
by cbhj1
The compression ratio for the game state is going to vary from tick to tick with the sheer number of entities and states within. The sea of bytes is not always going to be optimally compressed as compatibility with the algorithm waxes and wanes.

Re: Savegame vs autosave size difference

Posted: Thu Feb 23, 2023 9:10 pm
by BlueTemplar
A hint might be that the manual (?) savegame is called «nilaus» - and since I assume you aren't Nilaus (?), there might be some difference between his Factorio (and OS ?) and yours ??

P.S.: Also, what kind of gigantic factory is this save for ?! :shock:

Re: Savegame vs autosave size difference

Posted: Thu Feb 23, 2023 9:29 pm
by szydas
No, I am not Nilaus :) I named my save by him, because in this game I use some of his blueprints. Well, a lot. I don't know if my base is huge, now it's about 27k SPM, but a little chaotic in design. My design from begining, not savegame file from net.

Re: Savegame vs autosave size difference

Posted: Thu Feb 23, 2023 10:56 pm
by FuryoftheStars
I think if you do as Rseding91 suggested, you'll see they're correct.

Save size.png
Save size.png (11.9 KiB) Viewed 1909 times

And really, a 27k SPM base is pretty big with a lot of moving parts. It's not hard to imagine tens of thousands of things changing in a single tick.

Re: Savegame vs autosave size difference

Posted: Fri Feb 24, 2023 8:13 am
by szydas
You are right but... if save file size would change due tick-to-tick gamestate changes it will result with random size difference: sometimes manual save and sometimes autosave should be bigger. In my case manual save is ALWAYS bigger.
I am not familiar with editor mode - a good "howto" online?

Re: Savegame vs autosave size difference

Posted: Fri Feb 24, 2023 2:09 pm
by FuryoftheStars
There is also a setting specifically for auto save file compression. Check out "The rest" in the main menu by ctrl+alt+clicking the Settings button. Mine is set for "fast".

For editor, easiest is to just open the console (tilde (~) key) in your currently running game and type (without quotes) "/editor" (in freeplay mode you may have to do it a second time). Time will automatically pause, but autosaves will still happen at the regular intervals. Just wait for one of them to happen (you can change the interval for the tests if you like), then do a manual save.

Re: Savegame vs autosave size difference

Posted: Fri Feb 24, 2023 3:54 pm
by szydas
Strange, I have only "autosave-compression-level" and "muliplayer-compression-level" :?: Autosave level is set to maximum already, as I mentioned before, I set multiplayer level also to maximeum, let's see what will happen ;)

Re: Savegame vs autosave size difference

Posted: Fri Feb 24, 2023 4:08 pm
by FuryoftheStars
szydas wrote:
Fri Feb 24, 2023 3:54 pm
Strange, I have only "autosave-compression-level" and "muliplayer-compression-level" :?:
Yes, that's all I have, too.
szydas wrote:
Fri Feb 24, 2023 3:54 pm
Autosave level is set to maximum already
Well, that may explain it, then. If manual save uses fast, then it's going to be consistently larger as your auto-save is set to compress it as much as possible.

Maybe a feature request, then, to also give us a setting for the manual (single player) save compression? Personally, I'd rather have auto-save be fast and manual be slow and compact, but that may just be me.