XCOM: Enemy Unknown

File information

Last updated

Original upload

Created by

eclipse666 aka SpazmoJones

Uploaded by

SpazmoJones

Virus scan

Safe to use

About this mod

Allows you to specify the gender and race of each name in your custom soldier name list. The gender and name will be assigned automatically for each new soldier added to your barracks.

Permissions and credits
IMPORTANT: The functionality in this mod is now included in the optional "Enhanced Soldier Randomization" mod that is bundled with the main "Enhanced Soldier Customization" mod. I recommend that you use that version instead of the one on this page to avoid compatibility errors that can crash the game to the desktop.

This mod allows you to specify the gender and race of each name in your custom soldier name list. The gender, race and name will be assigned automatically for each new soldier added to your barracks.

(If you make a cool custom name list that you think others would enjoy, please post it here by leaving a comment!)

VERSION 1.0b
- Added range checking to gender and race values to prevent possible errors with invalid data
- Fixed bug with soldier's country being set incorrectly if mod triggers (you would have seen too many Russians for example)
- It will now try up to 10 times to fix a duplicate soldier before giving up. 

WARNING: I haven't played through the entire game with this mod yet so use at your own risk.

This mod is designed for Long War beta 15b/c. It may not work on other versions. It is also NOT compatible with the "Cleanse of the Clones"/"Enhanced Soldier Randomization" mods. You will have to uninstall "Cleanse of the Clones" before installing this otherwise XCom WILL CRASH! 

INSTALLATION
============
I recommend that you install this mod using Long War Mod Manager (http://www.nexusmods.com/xcom/mods/620/?). Alternatively you can use PatcherGUI 7.1 or better if you wish. This mod has been tested with LW beta 15e but it should work with any beta 15 version.

HOW TO USE IT
=============
Simply create a list of names in a plain text file, one name per line. Use a text editor like notepad.

To indicate gender, set the first character of the name to be "1" for male, "2" for female, e.g.:
1John Smith
2Sally Jones

If you don't specify a gender code it will be assigned randomly. This means you can still use your existing custom name files with this mod installed.
To indicate a race you MUST first set the gender as above, then also set the 2nd character of the name as follows:
"1" - Caucasian
"2" - African
"3" - Asian
"4" - Hispanic

e.g.
11John Travolta
12Mike Tyson
22Oprah
13Bruce Lee
24Jennifer Lopez

If race is not specified in the name it will be assigned randomly.

All the available code combinations are:
11 - Caucasian Male
12 - African Male
13 - Asian Male
14 - Hispanic Male
21 - Caucasian Female
22 - African Female
23 - Asian Female
24 - Hispanic Female

Once you have created and saved your name list, copy and paste it into the "XCom Namelist Generator" web site:
http://daiz.io/xcom-namegen/

Click on the "Download for Long War Beta 15" button to download a file named "DefaultNameList.ini". 

In your [XCOM Install Path]\XEW\XComGame\Config\ folder, make a backup copy of your existing DefaultNameList.ini file before replacing it with the file you downloaded.

Now the next time soldiers are added to your baracks, they will be selected from your custom name list and assigned the appropriate gender and race.
Included in the zip file package is "famouspeople.txt" which is a text file already set up with names, genders and races. There's also a DefaultNameList.ini file containing these names already formatted for Long War beta 15.

If a name is already in use by another soldier it will keep on picking random names until it finds a unique one. If it can't find a unique name after 10 attempts, it gives up and creates a soldier with a duplicate name. Make your name list as large as possible to reduce the chance of duplicate names appearing.

SWITCHING SOLDIER NAME GENERATION BACK TO NORMAL
=================================================
You don't have to uninstall this mod to switch back to regular soldier name/gender/race generation. Just restore your original DefaultNameList.ini file using your backup copy and new soldiers will be generated as they were previously.

THANK YOU
==========
A big thank you to the Long war devs for making such a great mod. The time I've spent struggling with this "relatively simple" mod has really made me appreciate the awesome work you guys have done to get the game to where it is now. Modding XCom is certainly not easy, but it's great fun, just like playing Long War! :)