[WOTC] Fix Save Bloat
Adds a highly experimental console command Zelf_SquashGameState that can be used to force gamestate history to be compressed to a single history frame. This makes the save file size smaller which can help with saves becoming unloadable due to their size.
This is similar to what the game does when transferring between the strategy and tactical layers. It is not exactly the same and causes some angry logging but from testing seems to be working fine anyway.
If you are able to go on a mission you should just do that instead of using this command. This is effectively a workaround when you’ve been on the strategy layer for too long.
Only works in strategy (on the Avenger/geoscape)!
1. Make a manual save normally first
2. Use the console command Zelf_SquashGameState
3. Make another save to a different file
4. Load your first save and keep playing if the game didn’t crash
5. You can load the second save to keep your progress if you crashed trying to load the first save
Has special handling for Covert Infiltration. It is not guaranteed to work because CI does some things unconventionally. The mod jumps through a lot of hoops to support it.
Due to the experimental nature of how this mod works I will not be automating its functionality.
I can’t guarantee squashed saves working correctly so try to avoid relying on them. You can keep playing after using the console command but it’s only meant as a backup in case a save made before using it won’t work.
