XCOM 2
257 ratings
Tactical State Cleaner
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
97.638 KB
19 Mar, 2022 @ 2:38pm
30 Mar, 2022 @ 8:12pm
3 Change Notes ( view )

Subscribe to download
Tactical State Cleaner

Description
Removes units generated in the tactical space when they're no longer needed, according to a whitelist in the mod's XComGame.ini. Checks for units that should be removed when you finish missions and when you load a saved game on the strategy layer.

This *shouldn't* be targeting anything actually important but for obvious reasons be prepared for the possibility that this deletes something a mod needs later.

If you're wondering why someone would use this, when I tested it out myself it removed approximately 1500~ unitstates and 2200~ item states from a campaign that had reached February 1 2036 and came with a noticeable improvement in performance in areas like when the game had to package gamestates for strategy -> tactical transfers and what not.
31 Comments
Avaritia 2 Jan @ 6:21pm 
I am also running this with LWOTC, and I am under impression that it is indeed helping with performance issues. However, I noticed a weird bug: sometimes the perk 'Restoration' fails to work on a bleeding-out soldier, and I am pretty sure this only occurred after I subscribed to this mod, and that it happens when I load a saved mission. It looks like the game removes the soldier (the solder also doesn't show up anymore on the custom icons for the squad at the top of the screen). Is anyone else with this problem?
reddsbaron 29 Dec, 2024 @ 4:17am 
when you have over 1k of mods this comes in handy... thanks
The Galactic Bulge 19 Feb, 2024 @ 8:45pm 
Interesting. Does that mean my results were completely placebo then? Installing this doesn't do anything if you already have LWOTC? I ask because I now have a game-breaking crash - trying to do the Chosen Avenger defense, and the game crashes every time I try to start the mission. My latest save from on the Avenger before the mission pops up is 10.8MB, which the game also cannot load. I'm trying to figure out how to reduce the save size. I can load my saves from the last mission before this point, those saves are 7MB, but otherwise I am stuck.
RustyDios 16 Feb, 2024 @ 10:33pm 
which is kind of funny as LWotC has this built-in//integrated ....
The Galactic Bulge 16 Feb, 2024 @ 2:02pm 
Playing LWOTC with 70-80 mods. Was getting huge slow downs and crashing as my playthrough went on. Installed this, instantly fixed things. I was surprised by how much faster the game suddenly was, the slow down over time had crept up on me.
Acedian 23 Nov, 2023 @ 6:54pm 
I'll give it a shot, but I had the LWOTC cleaner disabled and this unsubscribed, and something was still erasing them
Maybe they had already been erased and displaying in the barracks/with the print command was a fluke? Who knows
Thanks for the advice
RustyDios 23 Nov, 2023 @ 4:22pm 
My guess is LWotC messing with things is your issue. You should look in the LWotC configs for the [ShouldCleanupObsoleteUnits] setting and turn it to false. Which will allow THIS version to take over .. and I'm 99%certain this version does not erase MOCX units as I've seen it in use with the MOCX barracks (using the UFOPedia & Bestiary & MOCX Plugin to directly view the MOCX crew)
Acedian 23 Nov, 2023 @ 3:20pm 
Both versions still do. Oddly enough, it's still doing it even when I've turned the whole thing off in the config. So I don't know if it's something else or what
Some people say Mod Jam messes with the cleaner, but I can't find anything referencing it anywhere in the configs
RustyDios 21 Nov, 2023 @ 8:19pm 
it shouldn't do. There was an exclusion put in specifically for MOCX units.. especially as both of these were made by the same author ...

The LWotC built-in version of this had an issue where it would remove MOCX units, but I'm 99% certain that has also been patched/fixed from LWotC 1.1 onwards ..
Acedian 21 Nov, 2023 @ 7:24pm 
This erases MOCX units.