About this mod
Python tool that merges soldier nicknames from localisation files and .txt files, and puts them back in a localisation file.
- Requirements
- Permissions and credits
This python script merges nickname lists for Xcom. The usual extension is .int, for international english, but should work for most languages.
Installation:
Install python 3.
Extract to a dedicated directory. Put all the localisation files containing nicknames in the same directory (e.g.: XComGame1.int, XComGameThatCampaignIn2013IDid.int). Warning: they should be proper .int files. If you want to add nicknames by hand, can add .txt files. Just put nicknames one-per-line in there.
Warning: if a .txt file starts with f or m, the nicknames inside will be considered to be feminine or masculine, respectively. The included fGreekGoddesses.txt should give you an example of using this feature.
Usage:
1) Read the Installation section.
2) Identify where your XCom installation is. For instance, D:/SteamLibrary/SteamApps/common/XCom-Enemy-Unknown. Navigate to the desired localisation directory, e.g.: XEW/XComGame/Localization/INT (for international English). Remember this location / keep it open.
3) In order of ease, either:
I) Drag-and-drop the XComGame.int file from your installation over the .py file. It should execute.
or
II) Copy the XComGame.int file in the dedicated directory of the tool. Double-click or otherwise execute the .py file without arguments or options or complications or worries (besides ensuring the python 3 installation works).
or
III) From the console, launch the .py file with the full path to the target XComGame.int file as the only argument.
Expected behaviour:
The tool will generate a new file, with the same name as the original file, and also appending an '.out' extension. e.g.: XComGame.int.out
You should check the file is good before replacing the original file.
!ALWAYS BACK-UP!
Restrictions:
The .int files should have each nickname category stored in a contiguous fashion; empty lines, comments (; # /) aren't a problem, but interleaving nickname categories is.