XCOM 2
68 ratings
[WoTC] Encounter List Cleaner
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
37.217 KB
3 Oct, 2023 @ 7:00pm
20 Jul @ 2:14pm
11 Change Notes ( view )

Subscribe to download
[WoTC] Encounter List Cleaner

Description
This mod does exactly what it says. It loops over all encounter lists, and removes units that don't have character templates from them. If the game tries to spawn a unit from an encounter list that doesn't actually exist in your game, the game will crash, so this mod prevents that.

Compatibility: This is just OPTC, so should be compatible with everything.

Credits: Thanks to Rusty, SwfDelicious, and Iridar for helping fix my code.
28 Comments
Tedster  [author] 14 Mar @ 10:47pm 
You don't need this if you're playing LWoTC, but it exists standalone for those not using LWoTC
marshmallow justice 12 Mar @ 4:59am 
do you stil need this mod after lwotc 1.1? it says in patch notes 'integrated my new encounter list cleaner mod'
LeyShade 16 Feb @ 12:24am 
Thank you for additional debugging tools to help us track down what's broken, possibly beyond the X2 game itself. <3
LeyShade 15 Feb @ 9:52am 
@Tedster - Could you DM me an example of what we need to look for, so can trace it back. ELC isn't only thing affected, just trying to find the common reliance that's broken by another.
Tedster  [author] 15 Feb @ 8:52am 
I've never heard of anything like this before, my only guess is if something kills the character template manager.
LeyShade 15 Feb @ 6:31am 
@Tedster - Was wondering if there's something that would interfere with it's operation or has caused issues before, such that we can narrow down that list, as problem was unheard of before a slate of updates for other things came in.
Tedster  [author] 15 Feb @ 6:25am 
The mod checks for the existence of templates, so if something is nuking the base game templates, I'd start looking for that.
LeyShade 15 Feb @ 1:41am 
Would like to request technical assistance as ELC has started picking up units that are definitely installed, including base game units, and there isn't an update to ELC or it's functioning for us to examine. Thank you.
Necrosaro 24 Nov, 2023 @ 11:50am 
This saved my games which I could not figure out why it was crashing. Thanks so much for the mod!
BlackDog 8 Oct, 2023 @ 3:19pm 
Yeah, patching stuff after it's been generated but before the game starts using it is what OPTC is for & generally shouldn't go in CHL directly. If it turns out to be possible to prevent that behaviour happening by altering base game script in a non invasive way, it may be valid for a CHL fix down the line.