Jump to content

Initial soldier appearance


prune1

Recommended Posts

Wasn't sure where to post this, but is it possible, perhaps with some ini file even, to change the default appearance/armor color of soldiers?

 

I like to have my soldiers all look the same, I have no wish to change their gender either way, or race etc, but I like them all to wear the same helmet and color scheme for example, and it's very annoying to do this each time manually.

 

So is there any way to make this easier?

Link to comment
Share on other sites

Read the thread 'Unlock all Decorative Armors for all Armors'. It goes into the entries to be changed in DefaultContent.ini to enable the decos, which should in turn tell you what you want to alter in Loadouts. Loadouts are what determine the default gear. If you want customization of that, then you have to make the change to what armor Loadout has the soldiers wearing.

 

As is often the case with XCOM, more than one file has to be edited to get what you want. In this case, you are entering territory no one else has documented, so that would be a useful wiki article when you get done. (I'll be happy to help with that at the time.)

 

BTW: In case you aren't aware, XComContent.ini is the 'My files' copy of DefaultContent.ini used by DLC content. Update 'Default' and it will automatically update the 'XCom' file when the DLC is played.

 

-Dubious-

Edited by dubiousintent
Link to comment
Share on other sites

Soldier's initial appearance can be set in XComGame.upk, XGCharacterGenerator.CreateTSoldier.

 

We already touched this topic in Cybernetic Warfare Mod - ideas and planning thread, point 2. Helmets for everybody! Especially for starting and hired soldiers. With new shiny armor tint! Hex changed, but process is the same.

 

Helmets have to be filled into an array by GetContentIds calls and a loop clearing helmets from the array has to be disabled. Then it takes 2 new lines before calling return kSoldier:

kSoldier.kAppearance.iHaircut = Hairs[X];
kSoldier.kAppearance.iArmorTint = X;

Where X is your desired number. I am calling the array Hair, because Hairs is just plain wrong.

 

Below is mod file for PatcherGUI 2.3 (and higher) and XCOM Enemy Within. Just save it to text file and feed it to PatcherGUI. You can change numbers to your liking.

 

  Reveal hidden contents

 

Edited by Drakous79
Link to comment
Share on other sites

  On 3/8/2014 at 6:13 PM, Drakous79 said:

Soldier's initial appearance can be set in XComGame.upk, XGCharacterGenerator.CreateTSoldier.

 

We already touched this topic in Cybernetic Warfare Mod - ideas and planning thread, point 2. Helmets for everybody! Especially for starting and hired soldiers. With new shiny armor tint! Hex changed, but process is the same.

 

Helmets have to be filled into an array by GetContentIds calls and a loop clearing helmets from the array has to be disabled. Then it takes 2 new lines before calling return kSoldier:

kSoldier.kAppearance.iHaircut = Hairs[X];
kSoldier.kAppearance.iArmorTint = X;

Where X is your desired number. I am calling the array Hair, because Hairs is just plain wrong.

 

Bellow is mod file for PatcherGUI 2.3 (and higher) and XCOM Enemy Within. Just save it to text file and feed it to PatcherGUI. You can change numbers to your liking.

 

  Reveal hidden contents

 

 

Thank you! That's brilliant. Will try it later, but it sounds right - also it is clearly not something I would have managed being little more than a layman when it comes to modding.

 

I didn't know how to break it to Dubious earlier that he might be holding on a looong time for me to form my own solution based on his info, and to thus provide the necessary text for an eventual wiki entry....so you helped out there too!

 

I suppose you could code something up that allows such fixed settings for all the customization options? Personally I need nothing more, but it might be something others want (literally firing up the cloning vats...at least I can pretend my soldiers look different under the helmets!).

 

Many thanks once again.

Link to comment
Share on other sites

Thank you Dubious :smile:

 

  On 3/10/2014 at 3:43 PM, prune1 said:

I suppose you could code something up that allows such fixed settings for all the customization options? Personally I need nothing more, but it might be something others want (literally firing up the cloning vats...at least I can pretend my soldiers look different under the helmets!).

 

Many thanks once again.

 

Glad I could help. tested it with the latest patch and it works.

 

It could be coded for more settings, but I think people like to customize by themselves. When I play, I usually customize only soldiers, that survive for some time :smile: and only their nickname, armor tint and helmet.

 

What I'd really like is separated tint for weapons and armor.

Edited by Drakous79
Link to comment
Share on other sites

  • 4 weeks later...

I have updated the mod file for use with PatcherGUI 3.1 (many thanks Wasteland Ghost) and higher. It uses new and shiny pseudo code (patch resistence) and it works with Enemy Unknown after uncommenting certain part of the code. Just EU needs updated hash/disabled hash check of XComGame.upk. The math is done by the mod so you can use the same number as is seen on customization screen.

 

  Reveal hidden contents

 

Edited by Drakous79
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...