WOTC Armor Upgrades Normalized

If you liked this item, please rate it up on Steam Workshop page.

Author: krj12

Last revision: 4 Aug, 2018 at 21:19 UTC (1)

File size: 296.96 KB

On Steam Workshop

Description:
SUMMARY

For those of you with many cosmetic armor mods, this eliminates the "random hodge-podge look" that you receive when purchasing Predator and Powered armor upgrades. It works for soldiers, skirmishers, reavers, templars, and spark units.

DESCRIPTION

Provides:
1. A configurable upgrade path for cosmetic armor pieces.
2. A static appearance for cosmetic armor pieces that are not listed in the configuration file.

AS CONFIGURED

1. Vanilla Kevlar armor pieces auto-upgrade to corresponding vanilla Predator pieces.
2. Vanilla Predator armor pieces auto-upgrade to corresponding vanilla Warden pieces.
3. Any 3rd party armor cosmetics will remain unchanged.

Unless you want to change the mod’s default behavior, you will not need to read any further. No configuration
changes are needed on your part.

WHAT THE MOD DOES NOT PROVIDE

1. A starting uniform for new recruits, soldier purchases, or rewarded soldiers. This functionality is already provided by various "Uniform" mods.
2. A starting uniform for specialized armors, such as the Spider Suit, or WAR armor.

PREREQUISITES

It is highly recommended that you install a mod which unlocks armor pieces across all armor levels, otherwise
custom armor pieces may fail to transition properly.

I currently use the following:
Unrestricted Customization – Wotc
https://steamcommunity.com/sharedfiles/filedetails/?id=1135440846

CONFIGURATION FILE DESCRIPTION

Go to C:Program Files (x86)SteamSteamAppsworkshopcontent2685001455811827Config and open up file
XComWOTCArmorUpgradesNormalized.INI.

The upgrade paths are defined with a series of entries, such as:

+UpgradeDefinitions=(TemplateName="Any", BodyPart="Torso", From="CnvMed_Std_A_M", To="PltMed_Std_A_M")

Field Definitions:

TemplateName – the name of the template that you are upgrading FROM. This allows the cosmetic transition to occur only at specific times, if you so desire. A value of "Any" specifies that the transition can occur at any time, and accounts for the usage of the armor piece on other classes, such as regular Kevlar on a Skirmisher. It is recommended that you leave this as Any.

BodyPart: The cosmetic piece being transitioned. Valid values are "Torso", "Arms", "Legs", "LeftArm", "RightArm", "LeftArmDeco", "RightArmDeco", "LeftForearm", "RightForearm", "Shins", "Thighs", and "TorsoDeco".

From: The template name of the cosmetic armor piece being transitioned from.
To: The template name of the cosmetic armor piece being transitioned to.

HOW TO CONFIGURE FOR A STATIC LOOK ACROSS ALL ARMOR PIECES

For example, I like the Kevlar look, and I want to stick with that look for the duration of the game.

Do a search and replace all of TemplateName="Any" to TemplateName="None".
This will permanently lock your soldiers into their current appearance.

CONFIGURATION FOR A 3RD PARTY COSMETIC MOD

1. Go to C:Program Files (x86)SteamSteamAppsworkshopcontent268500<that mod id>Config

2. Open up file XcomContent.INI

3. There should be a series of entries, such as the following.

+BodyPartTemplateConfig=(PartType="Torso", DLCName="MGRSet", TemplateName="Kev_MGRA_Torso", ArchetypeName="MGRArmor_Content.Archetype.ARC_MGRA_Torso", Gender=eGender_Male, bVeteran=false, ArmorTemplate="KevlarArmor", CharacterTemplate="Soldier") +BodyPartTemplateConfig=(PartType="Torso", DLCName="MGRSet", TemplateName="MPl_MGRA_Torso", ArchetypeName="MGRArmor_Content.Archetype.ARC_MGRA_Torso", Gender=eGender_Male, bVeteran=false, ArmorTemplate="MediumPlatedArmor", CharacterTemplate="Soldier") +BodyPartTemplateConfig=(PartType="Torso", DLCName="MGRSet", TemplateName="MPo_MGRA_Torso", ArchetypeName="MGRArmor_Content.Archetype.ARC_MGRA_Torso", Gender=eGender_Male, bVeteran=false, ArmorTemplate="MediumPoweredArmor", CharacterTemplate="Soldier")

Based on the value of "ArmorTemplate", these are three different levels of the Torso. Note: They are the in-game values for Kevlar, Predator, and Warden armor respectively,
and what you should be focusing on.

You can search on these tokens in C:Program Files (x86)SteamSteamAppsworkshopcontent268500<that mod id>LocalizationXcomGame.int to find the descriptions
of the items, if you want to verify.

4. Add the following entries in my Mod’s INI file to do the transition:

+UpgradeDefinitions=(TemplateName="Any", BodyPart="Torso", From="Kev_MGRA_Torso", To="MPl_MGRA_Torso") +UpgradeDefinitions=(TemplateName="Any", BodyPart="Torso", From="MPl_MGRA_Torso", To="MPo_MGRA_Torso")

Without the definition in place, your soldier would stay at the Kev_MGRA_Torso look for the duration of the game.

If you do take the time to do these entries for a popular cosmetic mod, please feel free to post your definitions in the above Discussion thread, so that others dont have to reinvent the wheel. Either that, or convince that mod author to add your definitions.

FOR COSMETIC MOD AUTHORS, CONFIGURING YOUR ARMOR ITEMS

Copy XComWOTCArmorUpgradesNormalized.ini to your Config folder and remove all but the first line:
[WOTCArmorUpgradesNormalized.X2DownloadableContentInfo_WOTCArmorUpgradesNormalized]

Add the appropriate UpgradeDefinitions rows utilizing the template names from your mod.

Note: It goes without saying that my mod will also need to be active for those items to actually be utilized.

IF THIS MOD ISN’T WORKING FOR YOU

1. Verify that you have the mod correctly installed and turned ON in your launcher.

2. Clear out your config folder, uninstall and reinstall the mod.
Config folder is Documentsmy gamesXCOM2 War of the ChosenXComGameConfig, which can vary based on your Steam settings.

3. If none of this works, edit my INI file and change DEBUGMESSAGES=N to DEBUGMESSAGES=Y. Reload the game prior to your armor upgrade and repurchase the armor upgrade.

Go to Documentsmy gamesXCOM2 War of the ChosenXComGameLogs and open up Launch.log.
Search for something similar to:

Upgrading <My Solder Name> Armor : Armor Template Name Torso : Value1 -> Value2 Torso Deco : Value1 -> Value2 ….

Copy and paste these entries, as well as any error messages in the Issues thread.

If you DONT see anything like this, the mod is not active, you may have a Mod conflict.

IF IT’S NOT WORKING FOR EVERYTHING

1. Was the soldier on a covert op? This is a known issue.
2. Did you purchase the soldier or receive him as a reward? This mod only affects armor upgrades, not the initial armor set.
3. Did you uninstall a cosmetic mod, and forget to reassign the soldier’s armor pieces?
4. Go to Documentsmy gamesXCOM2 War of the ChosenXComGameLogs and open up Launch.log.

Search for something similar to this for the specific soldier that has the issue:

Upgrading <My Solder Name> Armor : Armor Template Name Torso : Value1 -> Value2 Torso Deco : Value1 -> Value2 ….

Copy and paste this entry, as well as any error messages in the Issues thread.

COMPATIBILITY

This mod overrides the OnBuiltFn for several armor templates, as well as the GiveRewardFn for two "soldier captured" mission types. This mod will not function correctly with any other mod that does the same.

Download
Required items:

Click the title to search on this site.


Unrestricted Customization - WotcSteam Workshop
Revisions:

Old revisions of this mod are available below. Click the link to download.