Tanooki1432 Posted July 24, 2015 Share Posted July 24, 2015 (edited) 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=1Which 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 July 24, 2015 by Tanooki1432 Link to comment Share on other sites More sharing options...
dubiousintent Posted July 24, 2015 Share Posted July 24, 2015 (edited) 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 July 24, 2015 by dubiousintent Link to comment Share on other sites More sharing options...
Tanooki1432 Posted July 25, 2015 Author Share Posted July 25, 2015 OK, I got the PatcherGUI to work. In the nationalities download, there are two text files:InstallandTweak 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 More sharing options...
Obelixdk Posted July 25, 2015 Share Posted July 25, 2015 OK, I got the PatcherGUI to work. In the nationalities download, there are two text files:InstallandTweak 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 youOld guide i made to PatcherGUI Link to comment Share on other sites More sharing options...
Tanooki1432 Posted July 25, 2015 Author Share Posted July 25, 2015 (edited) OK, I got the PatcherGUI to work. In the nationalities download, there are two text files:InstallandTweak 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 youOld 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 July 25, 2015 by Tanooki1432 Link to comment Share on other sites More sharing options...
dubiousintent Posted July 25, 2015 Share Posted July 25, 2015 (edited) 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 July 25, 2015 by dubiousintent Link to comment Share on other sites More sharing options...
Tanooki1432 Posted July 25, 2015 Author Share Posted July 25, 2015 OK. I think I'm good to go. Thank you both so much for your help!! (Can't wait for XCOM2 when all this becomes easier) Link to comment Share on other sites More sharing options...
Tanooki1432 Posted July 25, 2015 Author Share Posted July 25, 2015 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 TweakerAUTHOR=wghost81 aka Wasteland GhostDESCRIPTION=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, Columbiaand 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 displaycorrectly and you can "replace" USA by any of unused nationality by setting USA weightto 0 and changing USA names to corresponding country names in DefaultNameList.ini. Version: 1.0 Compatible with XCOM Enemy Unknown versions:- Nationality Probability Expand installedCompatible with XCOM Enemy Within versions:- Nationality Probability Expand installed UPK_FILE=XComGame.upk OBJECT=XGCharacterGenerator.PickOriginCountryREL_OFFSET=0x43BYTE=1 // USAREL_OFFSET=0x57BYTE=0 // RussiaREL_OFFSET=0x6CBYTE=0 // ChinaREL_OFFSET=0x81BYTE=1 // UKREL_OFFSET=0x96BYTE=0 // GermanyREL_OFFSET=0xABBYTE=1 // FranceREL_OFFSET=0xC0BYTE=0 // JapanREL_OFFSET=0xD5BYTE=0 // IndiaREL_OFFSET=0xEABYTE=1 // AustraliaREL_OFFSET=0xFFBYTE=0 // ItalyREL_OFFSET=0x114BYTE=0 // SouthKoreaREL_OFFSET=0x129BYTE=0 // TurkeyREL_OFFSET=0x13EBYTE=0 // IndonesiaREL_OFFSET=0x153BYTE=0 // SpainREL_OFFSET=0x168BYTE=0 // PakistanREL_OFFSET=0x17DBYTE=1 // CanadaREL_OFFSET=0x192BYTE=0 // IranREL_OFFSET=0x1A7BYTE=0 // IsraelREL_OFFSET=0x1BCBYTE=0 // EgyptREL_OFFSET=0x1D1BYTE=0 // BrazilREL_OFFSET=0x1E6BYTE=0 // ArgentinaREL_OFFSET=0x1FBBYTE=0 // MexicoREL_OFFSET=0x210BYTE=0 // SouthAfricaREL_OFFSET=0x225BYTE=0 // PolandREL_OFFSET=0x23ABYTE=0 // UkraineREL_OFFSET=0x24FBYTE=0 // NigeriaREL_OFFSET=0x264BYTE=0 // VenezuelaREL_OFFSET=0x279BYTE=0 // GreeceREL_OFFSET=0x28EBYTE=0 // ColumbiaREL_OFFSET=0x2A3BYTE=0 // PortugalREL_OFFSET=0x2B8BYTE=0 // SwedenREL_OFFSET=0x2CDBYTE=0 // IrelandREL_OFFSET=0x2E2BYTE=0 // ScotlandREL_OFFSET=0x2F7BYTE=0 // NorwayREL_OFFSET=0x30CBYTE=0 // NetherlandsREL_OFFSET=0x321BYTE=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 More sharing options...
dubiousintent Posted July 26, 2015 Share Posted July 26, 2015 (edited) 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 July 26, 2015 by dubiousintent Link to comment Share on other sites More sharing options...
Tanooki1432 Posted July 26, 2015 Author Share Posted July 26, 2015 Well, it's still not working for whatever reason... So I'll make this easy on myself and just run Long War, since all I would need to do is adjust a .ini file. Nevertheless, thanks for your help and for putting up with me. Link to comment Share on other sites More sharing options...
Recommended Posts