Jump to content

Totally Confused


Tanooki1432

Recommended Posts

To begin, all I want is someway to adjust the nationality probabilities of the soldiers.

 

I started with Toolbox, but after seeing that it's no longer supported (and that 99% of the options, including nationality probability, are non-functional), I decided to look elsewhere and came across this:

http://www.nexusmods.com/xcom/mods/474/?tab=1&navtag=http%3A%2F%2Fwww.nexusmods.com%2Fxcom%2Fajax%2Fmoddescription%2F%3Fid%3D474%26preview%3D&pUp=1

Which led me to this:

http://www.nexusmods.com/xcom/mods/448/?tab=1&navtag=http%3A%2F%2Fwww.nexusmods.com%2Fxcom%2Fajax%2Fmoddescription%2F%3Fid%3D448%26preview%3D&pUp=1

 

And I have no idea what I need to do to make this stuff work.

 

Any help please? The readmes in these two mods don't tell me anything.

Edited by Tanooki1432
Link to comment
Share on other sites

You need to use "PatcherGUI" to install the "XCOM Interface and Gameplay Tweaks" mods.

 

UPKUtils is a set of modding tools which are run from the command line. Included with that package (as a separate download) is "PatcherGUI", which is a "windows style" interface to the command line tools. That is what you want to use. (You only need to download "PatcherGUI". That has all the needed files if you only want to install mods.) When you run "PatcherGUI" it lets you navigate to the folder with and select the mod file you want to install. This, and other critical information, is covered in the "Readme" button on the download page.

 

Both "PatcherGUI" and the "Tweaks" mods include "Readme" files which explain how you use them. How to set the "nationality probabilities" is documented there. If you are having trouble understanding them, please be specific about what is causing you confusion.

 

BUT, note from the author: "By using tweaker file and increasing appropriate weights you can increase certain nationality (or class) probability. But it will still be random." "Weights" refer to the probability (expressed from 0 to 1, which "times 100" is equivalent to a percentage chance) of that nationality being selected. The sum of all weights cannot exceed 1. Some nationalities (such as the US) are "pre-weighted" in the game and not alterable, so there is no way to get a 100% chance of any other nationality. (XCOM is after all supposed to be an international organization.)

 

-Dubious-

Edited by dubiousintent
Link to comment
Share on other sites

OK, I got the PatcherGUI to work. In the nationalities download, there are two text files:

Install

and

Tweak

 

I didn't find any readme. Which one of those do I want to pull up with the PatcherGUI, and once I have it loaded, what do I need to do in game to actually make them work? Again, I'm not seeing any readmes from that.

Link to comment
Share on other sites

OK, I got the PatcherGUI to work. In the nationalities download, there are two text files:

Install

and

Tweak

 

I didn't find any readme. Which one of those do I want to pull up with the PatcherGUI, and once I have it loaded, what do I need to do in game to actually make them work? Again, I'm not seeing any readmes from that.

 

try and see if this helps you

Old guide i made to PatcherGUI

Link to comment
Share on other sites

 

OK, I got the PatcherGUI to work. In the nationalities download, there are two text files:

Install

and

Tweak

 

I didn't find any readme. Which one of those do I want to pull up with the PatcherGUI, and once I have it loaded, what do I need to do in game to actually make them work? Again, I'm not seeing any readmes from that.

 

try and see if this helps you

Old guide i made to PatcherGUI

 

 

So I got all of that working. I'm still unsure on what I need to do to actually adjust the soldier nationalities to what I want them to be.

 

Unless, I manually adjust the values within the NationalityProbablityTweak-EU-EW.txt file and then install that?

Edited by Tanooki1432
Link to comment
Share on other sites

Mod files often are documented internally. Just open them in any plaintext editor such as Notepad or Notepad++ (link in the "Modding Tools" wiki article) to examine or "tweak". UPKUtils/PatcherGUI compatible mod files have a "description" section near the beginning for this purpose.

 

In this instance, you have to apply two mod files: first the "Install" mod, which prepares the way for your customized version of the "Tweaks" file. I strongly suggest you work from a copy of "Tweaks", so in case something goes wrong and you need to start over you still have the original with vanilla values.

 

You modify the "Tweaks" file copy with your preferences for nationality probabilities. The places to make these changes are clearly marked in the file contents. (I see from the internal notes that the "Install" mod now lets you can set the US probability to zero in "Tweaks", so you should be able to "weigh" one country to "1" and get 100% of that nationality.)

 

Remember that if you apply "Tweaks" and don't like the result, best practice is to apply the "uninstall" file it creates at that time before you try to apply a different "tweak". (The "Install" mod should only need to be installed once.) This is because the mod file is expecting to find certain code strings as they are after the "Install" mod is applied, and if you try to make changes upon changes it won't find them.

 

You need to keep track of which mods you install in what order with PatcherGUI, so you know the order to back them out if a later updated version comes along. This can usually be done by just examining the date/time stamp of the uninstall files it creates. You have to uninstall from "last" to "first" installed to put things back in order.

 

-Dubious-

Edited by dubiousintent
Link to comment
Share on other sites

OK, I've figured out how to change stuff and how to load it in, but I don't see any changes actually happening within the game.

 

Here's what my Nationality Probability Tweaker file looks like:

 

 

MOD_NAME=Nationality Probability Tweaker

AUTHOR=wghost81 aka Wasteland Ghost

DESCRIPTION=Adjust soldiers nationality probabilities.

 

You must install NationalityProbabilityInstall-EU-EW.txt mod first!

 

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, Columbia

and Portugal, but since game does not fully support these, you will get default (USA)

names and flags on soldiers uniforms. However, most flags in barracks will display

correctly and you can "replace" USA by any of unused nationality by setting USA weight

to 0 and changing USA names to corresponding country names in DefaultNameList.ini.

 

Version: 1.0

 

Compatible with XCOM Enemy Unknown versions:

- Nationality Probability Expand installed

Compatible with XCOM Enemy Within versions:

- Nationality Probability Expand installed

 

UPK_FILE=XComGame.upk

 

OBJECT=XGCharacterGenerator.PickOriginCountry

REL_OFFSET=0x43

BYTE=1 // USA

REL_OFFSET=0x57

BYTE=0 // Russia

REL_OFFSET=0x6C

BYTE=0 // China

REL_OFFSET=0x81

BYTE=1 // UK

REL_OFFSET=0x96

BYTE=0 // Germany

REL_OFFSET=0xAB

BYTE=1 // France

REL_OFFSET=0xC0

BYTE=0 // Japan

REL_OFFSET=0xD5

BYTE=0 // India

REL_OFFSET=0xEA

BYTE=1 // Australia

REL_OFFSET=0xFF

BYTE=0 // Italy

REL_OFFSET=0x114

BYTE=0 // SouthKorea

REL_OFFSET=0x129

BYTE=0 // Turkey

REL_OFFSET=0x13E

BYTE=0 // Indonesia

REL_OFFSET=0x153

BYTE=0 // Spain

REL_OFFSET=0x168

BYTE=0 // Pakistan

REL_OFFSET=0x17D

BYTE=1 // Canada

REL_OFFSET=0x192

BYTE=0 // Iran

REL_OFFSET=0x1A7

BYTE=0 // Israel

REL_OFFSET=0x1BC

BYTE=0 // Egypt

REL_OFFSET=0x1D1

BYTE=0 // Brazil

REL_OFFSET=0x1E6

BYTE=0 // Argentina

REL_OFFSET=0x1FB

BYTE=0 // Mexico

REL_OFFSET=0x210

BYTE=0 // SouthAfrica

REL_OFFSET=0x225

BYTE=0 // Poland

REL_OFFSET=0x23A

BYTE=0 // Ukraine

REL_OFFSET=0x24F

BYTE=0 // Nigeria

REL_OFFSET=0x264

BYTE=0 // Venezuela

REL_OFFSET=0x279

BYTE=0 // Greece

REL_OFFSET=0x28E

BYTE=0 // Columbia

REL_OFFSET=0x2A3

BYTE=0 // Portugal

REL_OFFSET=0x2B8

BYTE=0 // Sweden

REL_OFFSET=0x2CD

BYTE=0 // Ireland

REL_OFFSET=0x2E2

BYTE=0 // Scotland

REL_OFFSET=0x2F7

BYTE=0 // Norway

REL_OFFSET=0x30C

BYTE=0 // Netherlands

REL_OFFSET=0x321

BYTE=0 // Belgium

 

 

If I've understood everything correctly, I should only be getting only US, UK, Canada, Australia and French soldiers, but I'm not. I'm getting as wide a variety as I always did.

 

Am I doing something wrong in the tweaking?

Link to comment
Share on other sites

OK, I've figured out how to change stuff and how to load it in, but I don't see any changes actually happening within the game.

 

Here's what my Nationality Probability Tweaker file looks like:

...

If I've understood everything correctly, I should only be getting only US, UK, Canada, Australia and French soldiers, but I'm not. I'm getting as wide a variety as I always did.

 

Am I doing something wrong in the tweaking?

Not that I can see. You have 5 countries with an equal weight to each, so they should each have a 20% probability.

 

Have you disabled "hash checks"? "Tools->Disable hash check" option in PatcherGUI. (This should only need to be done once.) Then apply your modified "tweaks" mod file. Note that you will only see the new probabilities kick in as you recruit new members. It will not affect existing soldiers in the barracks.

 

Also, be aware that if you are playing LW, it already incorporates this mod and you change the nationality and gender probabilities in the INI files. LW Nationality is controlled around line 1023 of DefaultGameCore.ini.

 

-Dubious-

Edited by dubiousintent
Link to comment
Share on other sites

  • Recently Browsing   0 members

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