XCOM: Enemy Unknown Guide

XCOM EU/EW MOD: Change Nationality Probability for New Recruits for XCOM: Enemy Unknown

XCOM EU/EW MOD: Change Nationality Probability for New Recruits

Overview

This is an old request from the player community to the Devs…Do you want to have more Spanish-speaking country soldiers in your army? Or Commonwealth-only? Arab-United Anti-UFO Forces?Now it’s possible!

PREPARE XCOM FOR MODDING

(Windows only): make sure your XCOM game is installed outside the “C:Program Files” (or “C:Program Files (x86)” on 64-bit Systems) folder.

Reason: Windows (since Vista) considers “Program Files” folder trees to be restricted areas and will revert all the changes any mod makes to a saved “shadow” copy.

It’s explained better in the “Installing Games on Windows Vista+” wiki article:
http://wiki.tesnexus.com/index.php/Installing_Games_on_Windows_Vista%2B

FIRST STEPS

1. Download PatcherGUI[www.nexusmods.com] from XCOM NexusMods

2. From this MODs collection: XCOM Interface and Gameplay Tweaks[www.nexusmods.com]
download only this one: [color=white]Soldier Nationality Probability for EU and EW[/color]
(it’s the 28th of the list or so… You can use more of them, but I only explain this one in this Guide)
The compressed file contains 2 txt files:
[color=white]NationalityProbabilityInstall-EU-EW.txt[/color]
[color=white]NationalityProbabilityTweak-EU-EW.txt[/color]

3. Extract PatcherGUI wherever you want.

4. Extract the txt files from the compressed file. Put them inside the [color=white]“Mods”[/color] folder of PatcherGUI.

5. Open PatcherGUI.exe

6. Only for the first time, you’ll need to configure PatcherGUI:
-First line + first button “Browse”: “Path to XCOM:EU or XCOM:EW”, click on it and search your actual XCOM installed folder:

  • For XCOM EU mods:
    Select the “Path-to-SteamLibrarySteamAppscommonXCom-Enemy-Unknown” folder
  • For XCOM EW mods:
    Select the “Path-to-SteamLibrarySteamAppscommonXCom-Enemy-UnknownXEW” folder

(“Path-to-SteamLibrary” is a placeholder for the actual path to your SteamLibrary folder location, for example, “D:SteamLibrary” under Windows.)

Now you’re ready to install mods.

APPLY MOD

7. PatcherGUI second line “Open mod file” + second “Browse” button:
Select [color=white]NationalityProbabilityInstall-EU-EW.txt[/color]

8. Press the “Apply” button to install it.

9. After that, select [color=white]NationalityProbabilityTweak-EU-EW.txt[/color]
PatcherGUI will load it and display its contents in it’s simple text viewer/editor:

MOD NAME: Nationality Probability Tweaker AUTHOR: wghost81 aka Wasteland Ghost DESCRIPTION: Adjust soldiers nationality probabilities. Change corresponding BYTE value to set country weight. Weights are not probabilities! Probability = weight/sum_of_all_weights. Default weight values are set to vanilla values. You may set non-zero weights for Turkey, Indonesia, Pakistan, Iran, Venezuela, Colombia and Portugal, but since game does not fully support these, you will get default (USA) names and flags on soldiers uniforms.

… and a bunch of code lines with countries at the end. Now we will change their numbers to our liking!

CHOOSE COUNTRIES

We will see these line codes:

REL_OFFSET=0x43 BYTE=6 // USA REL_OFFSET=0x57 BYTE=3 // Russia REL_OFFSET=0x6C BYTE=2 // China …

Those BYTE numbers are the weight for that country. Weights are not probabilities! Probability = weight/sum_of_all_weights. (If you count them right now, the sum is 98).

10. Change corresponding BYTE value to set country weight.

I changed all the numbers to 0 except Spain, to 100.

11. After changing numbers, click on PatcherGUI’s [color=white]“Save”[/color] Button. A message should say: Patched succesfully! Close everything and run XCOM.

So my next batch of Rookies were from my country! Yay! I can role the game now with family and friends!

[link] [link]

LATEST NEWS!: The country weight WORKS for the original rookies at Base AND First Operation within a New Game if you don’t activate the Tutorial (The 4 Rookies from Tutorial still being North American, Russian, Japanese and Argentinian).

EXAMPLES

Spanish-speaking countries
REL_OFFSET=0x153 BYTE=33 // Spain REL_OFFSET=0x1E6 BYTE=33 // Argentina REL_OFFSET=0x1FB BYTE=33 // Mexico

All the other countries with BYTE=0. Not included Venezuela and Colombia, they are shown as USA soldiers, not implemented finally at XCOM.

Commonwealth of Nations
REL_OFFSET=0x81 BYTE=8 // UK REL_OFFSET=0xD5 BYTE=16 // India REL_OFFSET=0xEA BYTE=16 // Australia REL_OFFSET=0x17D BYTE=16 // Canada REL_OFFSET=0x210 BYTE=16 // SouthAfrica REL_OFFSET=0x24F BYTE=16 // Nigeria REL_OFFSET=0x2E2 BYTE=8 // Scotland

All the other countries with BYTE=0. Not included Pakistan, they are shown as USA soldiers, not implemented finally at XCOM.

New Hansa
REL_OFFSET=0x57 BYTE=11 // Russia REL_OFFSET=0x96 BYTE=11 // Germany REL_OFFSET=0xAB BYTE=11 // France REL_OFFSET=0x225 BYTE=11 // Poland REL_OFFSET=0x2B8 BYTE=11 // Sweden REL_OFFSET=0x2E2 BYTE=11 // Scotland REL_OFFSET=0x2F7 BYTE=11 // Norway REL_OFFSET=0x30C BYTE=11 // Netherlands REL_OFFSET=0x321 BYTE=11 // Belgium

All the other countries with BYTE=0.

SteamSolo.com