XCOM 2
139 ratings
[WOTC] Pull ALL Faction Soldiers From My Pool
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
423.508 KB
5 May, 2024 @ 2:25am
3 Aug, 2024 @ 9:38pm
2 Change Notes ( view )

Subscribe to download
[WOTC] Pull ALL Faction Soldiers From My Pool

Description
Fixes a super old but super annoying bug that caused every Faction Soldier after the second to be randomly generated instead of pulled from the pool.

What the game did was generate faction soldiers that were never rewarded. This mod fixes that but requires a new campaign, because already generated soldiers that were never rewarded can't be retroactively restored.

This hasn't been exhaustively tested with mods that allow you to get more than 2 soldiers per faction but I expect it to work, if it doesn't let me know, it's going to be a simple fix.
Popular Discussions View All (1)
1
28 Mar @ 10:03am
This mod also works with the MOCX Initiative, and that's a bad thing.
Hunkules
32 Comments
AgRipnus  [author] 28 Mar @ 10:11am 
If the mod doesn't work with LWOTC that means LWOTC bypasses the base game script that gives faction soldiers and replaces it with its own. Unfortunately many mod makers copied the bugged base game script for their own mods which ends up reintroducing the bug.
EtriusSierra 28 Mar @ 6:39am 
Greetings. Based on what I've been able to test using the "GiveFactionSoldiers" command, this mod doesn't appear to work with LWOTC. I seem to only be able to draw two from the character pool before the rest come in as random. I've tried tweaking "GameData" ini files, changing pool variables using "eCPSM_Mixed" to eCPSM_PoolOnly"; no dice.
We go together 8 Feb @ 3:55pm 
"What the game did was generate faction soldiers that were never rewarded. This mod fixes that but requires a new campaign, because already generated soldiers that were never rewarded can't be retroactively restored."

I planned on starting a new game and deleting all my old saves anyways. So thanks.
AgRipnus  [author] 16 Sep, 2024 @ 9:15am 
If you have a mod that is generating soldiers that should come from the pool but for some reason aren't, then you must look into that mod's src folder and find the part of the script responsible for calling for the creation of new units so you can debug it. I don't know of any other mod that is adding a new faction besides Allies Unknown, the exact fix from this mod could only be useful there.
bigwormfire 15 Sep, 2024 @ 8:11pm 
sorry to annoy you but i have one last question (then i'll stop): you remember that you told me that other faction class have different recruitment then vanilla. i want to know, is it possible to make an add-on mod for those class?
Mighty_Rathalos 21 Aug, 2024 @ 2:32pm 
were you able to test if your last update fixed the report of MrCloista? close to starting a new campaign and I was hoping your mod will do me wonders :D
AgRipnus  [author] 3 Aug, 2024 @ 11:53pm 
OK. I have now expanded it to Reward_FactionSoldier and Reward_ExtraFactionSoldier without other checks. The fix for when meeting factions should still be in place and now I'll wait and see if the game generates 2 soldiers per "CovertAction_RecruitFactionSoldier" like it did with "CovertAction_ContactFaction" in case soldiers start being wasted again.
MrCloista 3 Aug, 2024 @ 11:32pm 
That screenshot is actually from ChristopherOdd's new campaign they're his 3rd faction. He's had a few people in his community report the issue and it's happened regardless of what faction met it was. I've also tested it personally and found it happen with 1st 2nd and 3rd factions. The important thing is that you don't have an existing soldier of the faction post meeting them (so dead/captured).
AgRipnus  [author] 3 Aug, 2024 @ 8:05pm 
I knew this would come up eventually. I was aware of a special case that the game was checking for but I couldn't figure out how to trigger. Do you remember if the skirmishers were your first, second or third faction met so I can check that distance boolean?
MrCloista 3 Aug, 2024 @ 5:52pm 
This mod causes a bug with 'Recruit FactionSoldier' (CovertAction_RecruitFactionSoldier) - which is the covert action you get if you lose your only soldier of a specific faction. With this mod enabled, this covert action gives no soldier reward as seen here

Recruit Skirmisher [imgur.com] @AgRipnus