[WOTC] Fix Save Bloat

If you liked this item, please rate it up on Steam Workshop page.

Author: Zelfana

Last revision: 2 Oct, 2024 at 01:26 UTC

File size: 86.78 KB

On Steam Workshop

Description:
Overview

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)!

How to use

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

Compatibility

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.

Notes

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.

Download
Required DLC:

These DLC should be installed in order to use this item.


XCOM 2: War of the Chosen