XCOM 2
53 ratings
[WOTC] Export Barracks to Character Pool
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
235.075 KB
Jun 28, 2024 @ 9:47am
Jul 15, 2024 @ 4:31pm
6 Change Notes ( view )

Subscribe to download
[WOTC] Export Barracks to Character Pool

Description
Mod Description
This mod provides two core functionalities:

1. Export the entire barracks from a loaded campaign into the character pool
2. Remove duplicate characters (i.e. characters with the same name) from the pool

The features can be used in two ways:

1. Directly from buttons in the Mod Config Menu (MCM)
2. Using the console commands "ExportBarracks" and/or "RemoveDuplicatesFromCharacterPool" from the in-game console.

Before either of the commands are run, a timestamped backup of the current character pool is saved to <Users>\<WinUserName>\Documents\my games\XCOM2 War of the Chosen\XComGame\CharacterPool\CPBackup_ExportBarracks_<TIMESTAMP>.bin

Config Flags
The default behaviour of ExportBarracks is that it does not care what is in the character pool already, and will just create new entries/instances in the character pool for each soldier in the barracks. For those wanting more granular control, the following config flags (default=false) can be set in the Mod Config Menu:
  • Replace Character Pool Characters - This will replace the appearances of characters in the pool with the current appearences of soldiers with the same name from the barracks. If there are multiple instances of the same soldier in the pool already, only the first will be over-ridden.

  • Only Add New Characters - This option skips soldiers which have the same names as those already in the character pool. This allows the CP appearances to take preference & prevents creation of duplicates.

Please let me know if you experience any issues or bugs, or have any feature requests and I'll do my best to help.
15 Comments
BlackDog  [author] Jan 21 @ 9:25pm 
Yes that's, correct - under typical circumstances the class that is saved into the pool is just used for cosmetically displaying the soldier when viewing them there (there is a box in the CP that says something like "display as: ranger" for example) but the behaviour can be modified by mods.
John keL1er Jan 14 @ 5:38am 
@Leokosta - by default the game doesn't care what class is specified in the pool, but there is a mod that changes this:
https://steamcommunity.com/sharedfiles/filedetails/?id=1125727531
Leokosta Dec 22, 2024 @ 3:04pm 
Hi. My doubt is, if a soldier is marked as, lets say, sharpshooter ,on Character pool, can he still appear as a rookie ? Or only as rewards of that class ? Thank you
BlackDog  [author] Jul 18, 2024 @ 2:52pm 
Ah crud, sorry folks. When I was updating the mod for MCM, there were some inconsistent names so I updated them all to match - it seems your save is looking for the old mod name. You can use the 'remove missing mods' mod to stop that popup in future. There should be no issue in doing that.
Yezandriel Jul 16, 2024 @ 11:23pm 
Seems the renaming of the mod hat some sideeffects, - i also get the missing mod popup everytime i load a game. Not breaking, but quite annoying. Any ideas how so solve that?
sah227 Jul 16, 2024 @ 9:23pm 
I was trying to play my campaign, but it keeps saying "missing ExportBattacks". What is going on?
BlackDog  [author] Jul 15, 2024 @ 4:34pm 
Update - added MCM support, plus buttons in the MCM which will carry out the export & duplicate removal functions without needing to use the console. Also added code to append proper time-stamps to the backup pool files instead of having just a single one.
BlackDog  [author] Jul 6, 2024 @ 8:39am 
@SolarMaximum - Thanks for pointing this out, you're entirely correct. Fix is now implemented so the default pool is re-selected after the backup is done. I had (incorrectly) thought that each time you invoke the character pool manager, the new instance would use the default pool file, but evidently it just uses the last file name that was specified.
SolarMaximum Jul 5, 2024 @ 4:37am 
it seems like running the command creates the DefaultCharacterPool_Backup_ExportBarracks.bin and makes IT the default character pool .bin any further changes to the cp will be made to the exportbarracks.bin and not the DefaultCharacterPool.bin
BlackDog  [author] Jul 4, 2024 @ 4:01pm 
Sorry I don't really understand what you're hoping me to implement. MCM support would just be a gui implementation of the existing config toggles that you can adjust in the ini file. Were you expecting something different / more interesting?