XCOM 2
[WOTC] MOCX Customizer+
289 Comments
FearTheBunnies  [author] 14 Oct @ 9:26pm 
Yes, the XCOM soldier you get from capture is fully configurable under the XComDarkClassData.ini file
khumak 14 Oct @ 8:01pm 
Yeah I mean the class of of the surviving MOCX soldiers you capture. I don't mind if they're a nonstandard class while I'm fighting them, but when they join my team I like my classes to be consistent. Will have to take a closer look at the config options, sounds like that may already be possible.
FearTheBunnies  [author] 14 Oct @ 3:37pm 
@khumak Do you mean the MOCX enemy unit or the MOCX converted soldier XCOM captures?

If the enemy unit, short answer is probably not. That would require someone to build out the enemy units including special abilities and AI along with weapons, upgrades, et al.

If the XCOM captures reward unit, then you can tweak the config array for each of the dark units to change their reward unit's class to your liking. Look up the Proficiency MOCX Plugin for an example of that.
khumak 14 Oct @ 1:09pm 
Are there current or planned options to allow restricting MOCX to particular modded classes instead of the base game classes? I'd like them to all be LWOTC classes instead of the base game classes in my game for instance. Failing that, I wonder if the rebuild soldier mod would let you rebuild them as an LWOTC class?
khumak 12 Oct @ 8:28pm 
Worked like a charm, all of my MOCX are female now. Haven't tried customizing anything else yet.
FearTheBunnies  [author] 10 Oct @ 7:38am 
@khumak No, it is not an issue. If there are no CP units it will always fall back to randoms. The big thing is to make sure you have your MaleToFemaleRatio set to the preferred setting with 0 for all women and 100 for all men
khumak 9 Oct @ 8:34pm 
Is it a problem if I don't have anyone saved to my character pool? I just use random. I installed this essentially as the MOCX version of Gender Bias. Guess I'll find out soon enough if that works. I tried editing the MOCX configs manually for that but didn't have any luck with that.
FearTheBunnies  [author] 26 Sep @ 7:13am 
@Joyeuse I assume you figured out how to use the array then? (Basically HelmetHeads=("FirstHeadName", "SecondHeadName", "ThirdHeadName", etc). I also added your request for a VoiceOverrides array which will pick from the pool of voices versus using the singular voice in the customization.
Joyeuse 25 Sep @ 10:54pm 
Actually, I'd like to make a feature request: Would it be possible to have a similar array function for voicebanks as well as for helmets?
Joyeuse 25 Sep @ 10:15pm 
Hi! Could I have an example of a 'var array<name> HelmetHeads' entry, please? This is all pretty new to me, but using your framework I'm working on a MOCX configuration which I'm thinking of sharing once it's done.
savagek29 24 Sep @ 10:18pm 
I was having the same issue as 猫猫. Figured out it was that I was using the Character pool + Random option. Changing to only Character pool fixed it
FearTheBunnies  [author] 12 Aug @ 7:46pm 
@Firejedi "bUseCharacterPoolOnly" is a flag that says to use only CP units or to blend CP units with random units. The soldier and dark VIP flags control which CP units are used if any CP units are used. So, yes, setting CP only to true and dark VIP to true will mean you are only using dark VIP units in your CP for MOCX
Firejedi 12 Aug @ 6:42pm 
Question for MOCX config: is "bUseCharacterPoolOnly" restricted by "bUseDarkVIPs" and "bUseSoldiers"? Example being if "bUseSoldiers" is false, "bUseCharacterPoolOnly" only using dark vips?
樱风今天吃什么 10 Aug @ 11:48pm 
Thank you, I'll give it a try.
FearTheBunnies  [author] 10 Aug @ 2:51pm 
I would recommend trying to create a few more CP soldiers and see if that solves the problem.

Alternatively, mark specific CP units as Dark VIP and set the bUseSoldiers flag to false and it should source those specific units.

Another way to think about the MOCX folks is a chance to meet new squad mates.
樱风今天吃什么 10 Aug @ 12:41pm 
Actually, I have already tried this configuration. After your reminder, I think the problem might be that I already have almost all the soldiers in the character pool. However, not all of them, so it's strange that none of them were spawned.

I've tried using the command, but it's still not working... And I'm pretty sure I haven't installed any mods that overwrite the same things... Forget it, if it's not working, then it's not working. Thanks for your reply.
FearTheBunnies  [author] 10 Aug @ 12:19pm 
This configuration should pull all your units from the Character Pool for MOCX. Now, one thing to note about the recruitment, is MOCX will ignore any units that are already in your barracks. So you should make sure you have enough soldiers in your character pool to support both what is in your barracks and what is recruited by MOCX. Also, if you make changes to the recruitment config it will NOT be applied until the next time MOCX recruits, so run the console command `RegenerateMOCXCrew` to force it to reroll and it should pull your CP units.

If it continues to be an issue, verify you aren't running a modlist that has overrides for this mod (something like the Odd S9 Tweaks mod), and you can always reach out to me via Discord and the XCOM Modder's Discord for getting log files to me so I can help triage what's going on.
FearTheBunnies  [author] 10 Aug @ 12:19pm 
bUseCharacterPoolClass = true,\\
bForceCharacterPoolClass = false,\\
bRookiesAreWildcardClass = true,\\
bUseCharacterPoolAppearance = true,\\
bUseCharacterPoolBackstory = true,\\
bUseCharacterPoolNationality = true,\\
bUseLeaderSpecificUnit = false,\\
bUseLeaderSpecificAppearance = false,\\
bUseCharacterPoolOnly = true,\\
bUseRandomRolls = false,\\
bUseSoldiers = true,\\
bUseDarkVIPs = true,\\
MixedPoolRandomThreshold = 50,\\
bAllowAlliesUnknown = true,\\
bForceAlliesUnknownOnly = false,\\
bUnknownAlliesAsDarkVIPs = true,\\
AlliesUnknownRandomThreshold = 10,\\
MaleToFemaleRatio = -1\\
樱风今天吃什么 10 Aug @ 12:01pm 
Yes, I had hoped that MOCX would use presets from the character pool. Actually, it doesn't matter whether it's a soldier or a Dark VIP, because I have set all presets to either soldier or Dark VIP. As for the class, it doesn't matter either, because I haven't set any relevant classes and I don't really care. But the problem is, I have tried modifying the configuration file multiple times, but the units generated by MOCX always have random appearances
FearTheBunnies  [author] 10 Aug @ 11:56am 
Just so I am following and can give the best advice: You want MOCX to use units from your Character Pool instead of using randomly rolled soldiers? Are you wanting your regular soldiers to be recruits or only Dark VIPs? When a member of your character pool is recruited do you want their class in the character pool to map to their MOCX equivalent?
樱风今天吃什么 10 Aug @ 8:56am 
I tried disabling this mod and configuring the settings of the original mod:

SoldiersOnly = false; //set this to true so units tagged as only soldiers can be used
DarkVIPsOnly = true; //set this to true so units tagged as only Dark VIPs can be used

UseEntireAppearance = true; //set this to true if you want looks determined entirely by a character's appearance in the character pool

RandomizePool = false; //this sets MOCX to mixed mode independent of the character pool. Set this to false if you have a large enough pool when the character pool is set to pool only.

But the appearance is still random. My character pool is set to soldiers and DarkVIP
樱风今天吃什么 10 Aug @ 8:02am 
bUseCharacterPoolClass = false,\\ *(or true)
bForceCharacterPoolClass = false,\\
bRookiesAreWildcardClass = true,\\
bUseCharacterPoolAppearance = true,\\
bUseCharacterPoolBackstory = true,\\
bUseCharacterPoolNationality = true,\\
bUseLeaderSpecificUnit = false,\\
bUseLeaderSpecificAppearance = false,\\
bUseCharacterPoolOnly = true,\\
bUseRandomRolls = false,\\
bUseSoldiers = true,\\
bUseDarkVIPs = true,\\
MixedPoolRandomThreshold = 0,\\
bAllowAlliesUnknown = false,\\
bForceAlliesUnknownOnly = false,\\
bUnknownAlliesAsDarkVIPs = false,\\
AlliesUnknownRandomThreshold = 0,\\
MaleToFemaleRatio = -1\\

With this option, still generated randomly, but they all had Advent logo Xcom uniform, no one used my custom face and armmor etc.
樱风今天吃什么 10 Aug @ 7:26am 
I have modified the configuration file, but I don't know why it still generates random roles:

bUseCharacterPoolClass = true,\\
bForceCharacterPoolClass = true,\\ *false still randomly generate
bRookiesAreWildcardClass = true,\\
bUseCharacterPoolAppearance = true,\\
bUseCharacterPoolBackstory = true,\\
bUseCharacterPoolNationality = true,\\
bUseLeaderSpecificUnit = false,\\
bUseLeaderSpecificAppearance = false,\\
bUseCharacterPoolOnly = true,\\
bUseRandomRolls = false,\\
bUseSoldiers = true,\\
bUseDarkVIPs = true,\\
MixedPoolRandomThreshold = 50,\\
bAllowAlliesUnknown = true,\\
bForceAlliesUnknownOnly = false,\\
bUnknownAlliesAsDarkVIPs = true,\\
AlliesUnknownRandomThreshold = 10,\\
MaleToFemaleRatio = -1\\
Minnow 21 Jul @ 10:28am 
Amazing, thanks so much!
FearTheBunnies  [author] 21 Jul @ 8:46am 
@Minnow Added a new customization option: bUseCharacterPoolNationality. This will allow you to persist the Character Pool soldiers' nationalities. Original MOCX technically did set the nationality to ADVENT but it required you having an ADVENT flag pack installed otherwise it was a "missing flag" and got defaulted to a "normal" flag.
Minnow 21 Jul @ 7:36am 
Oh wow, that would be wonderful, thank you!

I could've sworn vanilla didn't do that, but I guess it's been a while since I played without this mod on top :p

Thanks again! :hmgorock:
FearTheBunnies  [author] 20 Jul @ 11:17pm 
@Minnow Currently that is not a supported option (even OG MOCX gave them the Advent nationality). Lemme cook on it and that should be an easy enough option to add.
Minnow 20 Jul @ 9:35pm 
I mean for them to keep the source unit's nationality, yes.

As it is, every soldier (from pool or random) is spawning with ADVENT nationality, and I'd like to stop that happening if possible.
FearTheBunnies  [author] 20 Jul @ 9:05pm 
@Minnow Do you mean for them to keep the nationality of the source unit or do you mean switching from EXALT to ADVENT nationality?
Minnow 20 Jul @ 7:59pm 
Hi, I'm trying to use the config to stop the Mocx units having their nationalities overridden by ADVENT, but I'm having a little trouble with the config.

Under the section that says FTBMocxUsePoolClass in XComDarkXCom.ini there's a comment that says "If set to false, MOCX will always spawn with ADVENT nationality", but there doesn't seem to be any property to set to True or False.

There are others for bAllowMocxSpawnAsExalt & bForceMocxSpawnAsExalt with similar descriptions, but nothing under that specific comment. Am I missing something, or is the file? :p

Thanks for any help! :hmgorock:
FearTheBunnies  [author] 1 Jun @ 5:12pm 
That should just be the regular character pool screen when editing a character from the main menu.
Wrath 1 Jun @ 1:30pm 
@FearTheBunnies I mean the menu on the second picture of your mod presentation " Can appear as ... "
I don't have this
FearTheBunnies  [author] 1 Jun @ 12:37pm 
@Wrath This mod does not expose its configs through MCM UI menus. Instead you will have to edit the .ini files manually through config edits.
Wrath 1 Jun @ 11:37am 
Oh okay guys thanks ! I have installed it but I can't find the menus with the "dark vip" options, where is it exactly?
FearTheBunnies  [author] 31 May @ 10:18am 
@Wrath This mod contains bug fixes and enhancements for the way MOCX loads character pool cosmetics for the enemies it creates. As @Soul said, base MOCX always allowed capture of MOCX soldiers. This mod has enhanced logic for other mod to mod support as well enhanced logic around what kind of reward soldier class is given to XCOM after capturing MOCX enemies.

Overall, this mod is a companion to the base MOCX mod and is required to support the MOCX Phantom enemy units due to hard coded hero unit logic from the base mod this mod expands upon.
Soul 31 May @ 6:22am 
It let you apply appearances you made to the mocx guys that show up to fight you yeah.
The base mod already let you recruit them by capturing them.
Wrath 30 May @ 9:22pm 
Did I understand what this mod do correctly ? (sorry Im french)

It is a mod to configure the apparence of the HOSTILE MOCX squads we fight in sitereps right?
Not a mod for RECRUITING MOCX (wich would be 100 times less good of a mod than the previous option)
FearTheBunnies  [author] 13 May @ 11:50am 
Glad it worked out for you.
Dio Brando 13 May @ 6:30am 
@FearTheBunnies Nah I am using EXALT AND MOCX Customizer at the same time. They were part of the collection among other mods that Ive downloaded from the workshop. Strangely enough my problem fixed itself when I added exalt outfits was was dependency for Exalt mod but for some reason wasnt the part of the collection. After that everything came back to norm after several battles enemy faction again started using my cp pool and also ability to capture them has returned
FearTheBunnies  [author] 11 May @ 9:04am 
@Dio Brando I assume before this you were using just base MOCX, and now you have the Customizer+ mod. As Dragon32 says you will need to edit the rules for this mod now instead of the rules for base MOCX as this mod tweaks everything related to how MOCX units are spawned.

The config file should document everything you need to know about how to tweak the spawn rules.

As to the capture price, this mod also tweaks the capture mechanics too, so if you had custom rules in base MOCX you will need to explore this mod's configs and make sure they align with your expectations, tweaking them as necessary.

If you get stuck, reply here and I will try to help as best I can.
Dragon32 10 May @ 8:27am 
@Dio Brando
For the first: read and edit, if needed, this mod's XComDarkXCom.ini

https://old.reddit.com/r/xcom2mods/wiki/wotc_modding/mod_folder
Dio Brando 10 May @ 4:50am 
During my playthrough suddenly mocx agents started to appear as random even though before they were using cp pool characters. Ive seen that in FAQ there is answer for this issue, but can anyone elaborate what exactly does it mean - Verify that bForceCharacterPoolClass flag is off to pull all CP units? What do I need to do and where?
Also I've noticed that with this issue second problem had appeared - for some reason now I cant capture mocx agents doesnt matter if use fulton mod or simply carry them to the extraction point. If anyone had similiar issues please tell me is ther any way to fix this?
FearTheBunnies  [author] 3 May @ 6:14am 
@Corrosion Could you elaborate a little please? Explain your idea to me and I can help give the right config for what you are wanting to do, but at the moment it is too vague to give you a firm answer.
Corrosion 2 May @ 8:54pm 
How do I make it so they get selected as specific characters in the character pool?
FearTheBunnies  [author] 15 Apr @ 11:14am 
Not easily. There are some mods out there such as Iridar's Advent Arsenal that may give guidance in how to do it yourself. I know the MOCX As ADVENT Division tweaks what guns they have as well.
♥sushigirl♥ 15 Apr @ 11:11am 
Is there a way so we can give MOCX custom guns?

Like instead of using the vanilla guns, i can give them AKs, M4s, etc..
FearTheBunnies  [author] 25 Mar @ 6:18am 
@Medicman Short answer "No."

Long answer, there is one way you can cheat by creating random units in your character pool which are the source units for MOCX, name them the way you want them named, assign them base game classes, and then turn on the option for "bForceCharacterPoolClass" which would then require MOCX classes to find characters with the "right" class from the CP and use them (but if they run out then they will start generating randoms which will go back to the standard naming convention.
Medicman 24 Mar @ 11:15pm 
is there a way that they show up as their class name rather then a random gen name?
FearTheBunnies  [author] 4 Dec, 2024 @ 10:34am 
@Chaos I just pushed up adding that line of code to Customizer+'s overrides of that logic, so let me know if it fixes it for you.
Chaos 3 Dec, 2024 @ 11:51am 
@FearTheBunnies
I've recompiled it in ModBuddy.

So in original core mod in XComDownloadableContentInfo_DarkXCOM.uc I've uncommented those lines:
//NewSoldierState.AddComponentObject(InfoState);

and then
In this mod file XComGameState_HeadquartersDarkXCOM_Override.uc in line ~177 near this line StartState.AddStateObject(InfoState);
added this
NewSoldierState.AddComponentObject(InfoState);
after that it started to work and soldiers didn't desapear after mission
but there is warning and error in logs after adding this line

Warning: Failed to find owning object with ID 1415 for game state component XComGameState_Unit_DarkXComInfo_Override_260

Error: Redscreen: Failed to find owning object with ID 1415 for game state component XComGameState_Unit_DarkXComInfo_Override_640