XCOM 2
57 个评价
[WOTC] Too Many Mods
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
715.190 KB
5 月 18 日 下午 1:05
5 月 22 日 上午 11:14
4 项改动说明 ( 查看 )

订阅以下载
[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.

Usage
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.
热门讨论 查看全部(1)
7
9 月 3 日 下午 6:01
置顶: List of mods that do NOT get removed
N.C.V.
21 条留言
Meksit 9 月 21 日 上午 3:39 
same, just in case
MakuBexx 9 月 17 日 下午 3:43 
Let me Fav this it may be needed in the future
Papistman 7 月 11 日 下午 3:02 
此留言正在等待我们的自动内容检查系统分析。在我们证实其内容无害之前(例如试图窃取信息的钓鱼站点链接),留言将暂时隐藏。
XpanD 7 月 11 日 下午 1:35 
I created a new mod project in the SDK with a short name, and then (co-)wrote a Powershell script to clone it thousands of times, giving each clone its own number. Great for testing, but unfortunately not something that would scale up to actual mods that do things. Recompiling those is technically possible, but would be way too much work to do for a large mod set. (and would mess with things like automatic updates and load order)

The closest thing you /can/ realistically do is probably to merge simple mods like config tweaks into one big local mod. I've also seen people merge asset mods like voice packs, but that's a bit more involved.
Papistman 7 月 11 日 下午 12:38 
@XpanD
You mention doing this earlier:

"I successfully had the game saving and loading over 2000 testing mods, with a limit somewhere around the 2160 mod mark. This was purely due to it overflowing the data block responsible for storing mod names and save metadata, and I could shift that point around by just making my mod names (or even just the save name itself) shorter or longer."

How did you make the mod names shorter? Was it by editing the mod names in the Alternative Mod Launcher?
XpanD 6 月 14 日 上午 2:16 
@LightenedDark: If you're curious enough, I added details on what to look for to the modding wiki: https://www.reddit.com/r/xcom2mods/wiki/mod_troubleshooting/#wiki_what_is_the_maximum_number_of_mods_i_can_play_with.3F
LightenedDark 6 月 13 日 下午 8:29 
I wonder what an normal/average amount of mods would have to be added to a modlist before this issue pops up. I've run about a thousand and not seen it, but that doesn't mean I'm not right around the limit...
N.C.V.  [作者] 5 月 27 日 下午 2:37 
Note: It did not fix the Old War Hero bug. I guess just dismiss the extra one you get on load in, since I'm not quite sure why it's not counting as added.
N.C.V.  [作者] 5 月 22 日 上午 11:14 
Alright there we go, should stop giving you an Old War Hero every time you load in now.
N.C.V.  [作者] 5 月 21 日 下午 5:05 
New bug I found. Since this technically removes Resistance Warrior Pack, it'll keep giving you a new Old War Hero every time you load in, so I'll add all the XCOM 2 DLCs to the list in the next update. They won't actually do anything if you don't have them installed, but it should fix that problem.