[WOTC] Too Many Mods
A rough project that seeks to solve XCOM 2’s 16 bit integer limit on the combined length of the names of all mods you have installed + the name of your save file, by cheating. Basically, if you get that red "Save out of date" error when you try to load old saves, chances are that the names of all of your mods + the save name itself combined to a value greater than 65535.
Note that you should only download this if you’ve already reached that limit, as this mod will likely remove way more than you would otherwise need removed, and you should just use Remove Missing Mods for WotC instead.
Functionally, you use it the same way as Remove Missing Mods. It adds a button to your save screen labeled "Unbind Mods and Save." If you’ve over the 16 bit limit, you have to use this button to save from now on, which also means you’ll be unable to actually name your saves.
It does this by only adding "Active Mods" from a manually curated list of Mods that do things on OnLoadedSaveGame and then not adding the rest, since these are the mods that likely do things on "first installation." This doesn’t actually "remove" the mods from your save, it just removes their names, so in theory it shouldn’t break too much…
However, we suspect that many mods, upon seeing themselves not in the save file, won’t play nice, and thus, potentially break things. I’m making this as a proof of concept to see if it works, and if it does, I’d like to add some way to better curate this list down the line so I don’t have to manually add mods to exclude, or hope someone more experienced can come up with a more elegant way of doing this that isn’t just "pretend those mods don’t exist." There’s a script in the modding Discord[discord.com] you can use to see which mods do stuff on OnLoadedSaveGame, if you want to help me out.
I’ve shamelessly reused the code from sq_paradox’s Remove Missing Mods for WotC mod, I hope you don’t mind…
Like sq_paradox mentions in their original mod, I don’t recommend using this mod UNLESS you’ve run into this problem, since this does directly modify how your game saves itself. Likewise, I’ve included the same config options, but I’ve enabled cleaning your save while in tactical. I still do not recommend running this in tactical, but if you absolutely need to, I figured it’s better to have the option there than to force you to restart the game. As a matter of fact, as long as you don’t exit to menu, your should be able to load your save even if it’s over 65535 characters long while in game anyways, but as soon as you menu out, the saves will become unloadable.
Use with caution, back up your saves, pretty much just the same warnings sq_paradox gave.
Revisions:
Old revisions of this mod are available below. Click the link to download.
