The International Simutrans Forum

Simutrans Extended => Simutrans-Extended gameplay discussion => Topic started by: Junna on August 30, 2019, 01:22:29 PM

Title: Has there been any changes to save format?
Post by: Junna on August 30, 2019, 01:22:29 PM
I noticed as my hard-drive space ran out, that, for some reason, my save games from the server map I have been playing on singly, have now reached an almost monstrous size; they have climbed from 50 mb to 850mb and above, occasionally reaching 1.2GB, for a single save alone. Has there been any changes to how things are stored, is there a bug, or is that expected?
Title: Re: Has there been any changes to save format?
Post by: ACarlotti on August 30, 2019, 06:13:27 PM
There was a change several months back to allow saving path explorer data to avoid having to recompute it upon every load or server join. The data usage in an uncompressed save file would be approximately 6 bytes per ordered pair of halts, for each category/class, plus a bit extra for work-in-progress. For example, if you have 5 passenger classes, 2 mail classes, 5000 halts with passenger service and 4000 with mail service, then that would give a total contribution to the save file size of 5*5000*5000*6+2*4000*4000*6 bytes, i.e about 942MB. However, save files are usually compressed, which reduces this size somewhat.

I think you should be able to switch off saving path explorer data by setting save_path_explorer_data = 0 in simuconf.tab, although I'm not sure whether this applies to existing games - you may need to edit the setting ingame to do that (I'm can't remember right what key you need to reach that settings menu).
Title: Re: Has there been any changes to save format?
Post by: Matthew on August 30, 2019, 08:39:36 PM
Quote from: ACarlotti on August 30, 2019, 06:13:27 PMyou may need to edit the setting ingame to do that (I'm can't remember right what key you need to reach that settings menu).

The key is "i" in pak128.Britain-Ex.
Title: Re: Has there been any changes to save format?
Post by: Junna on August 31, 2019, 07:09:38 PM
Ah, that is good to know in case I need to upload it.

For reference, the actual number of stops is 9,752.
Title: Re: Has there been any changes to save format?
Post by: jamespetts on September 22, 2019, 01:50:44 PM
You could also make sure to enable compression for saving data just in case you had turned this off for some reason.