AutoPromotion
Auto Promotes troops when they are eligible for promotion. You can set progression you want your troops to follow in the config files.
Go to
go to the Config folder, open the XComGameData.ini in whatever text editor of your choice, and follow the instructions at the top of the file.
if you would like to add a custom class you made or a custom class you use, you can open a PR on github.
Simply Click here[github.com] to go the repository, and go to the XComGameData.ini file and add your changes.
The following has been added:
- BuyBarracksAbilities => To be used after LevelUpBarracks. Buys the abilities so you don’t have to.
- Fixed PromoteAllSoldiers and PromoteSoldier to work as intended
Console Commands:
- GetSoldierAbilitiesForRank(string SoldierName, int rank) logs the ability name and position for the given rank in the log file.
- ListSoldierAbility(string soliderName, int rank, int branch) => prints to the log file what ability is at the rank and branch on the ability tree. Useful for helping you change the presets.
- BuyBarracksAbilities => To be used after LevelUpBarracks. Buys the abilities so you don’t have to.
- PromoteAllSoldiers(optional int rankUps = 1, optional name className = ”) => allows you to promote all your troops. You do not need to run LevelUpBarracks before running this command. Furthermore, you can specify a className so you may promote all troops of a specific class should you need it.
- PromoteSoldier(string soldierName, option int rankUps = 1) => Promotes a single soldier given the name. Do not include the nickname of the troop.
The promoting commands do not allow you to pick a specific class if the troop is a rookie. If you want the rookie to be a specifc class, use MakeSoldierAClass and then use the PromoteSoldier command.
The following has been implemented upon user request/user aid
Due to demand, the Mod Config Menu has been integrated to enable a more customized auto promoting experience.
- Enable OnlySquaddies => Enable to make it so that it will only auto promote to rank squaddie. disabled by default. Having this and OnlyVets enabled renders the two options useless as now it will autopromote all troops regardless of rank.
- Enable OnlyVets => Enable to make it so that it will only auto promote starting at rank squaddie. disabled by default. Having this and OnlySquaddies enabled renders the two options useless as now it will autopromote all troops regardless of rank.
- Check Barracks => Enable to check the barracks after every mission for troops eligible for promotion and auto promote them.
- Enable Logging => This is helpful for debugging but also figuring out what the class internal name is. If you want to add a custom class and don’t know the internal name, enable to find out. Details below. disabled by default
- Show Promotion Popup => When a soldier is eligible for promotion, a pop up occurs. You can disable/enable this. This is disabled by default.
- Ignore Covert Action => Enable to not autopromte soldiers on covert actions. If you have Show Promotion Popup enabled, it will still execute.
- Rank Up But Not Buy Ability => Rank the soldier up to the next available rank (ex: squaddie to corporal) but do not buy the ability. disabled by default.
- Enable Buying Random Ability => Enable to have your troops select a random ability when they rank up. Enabling causes the mod to ignore presets for classes as well as the rank no buy option.
- Use Soldier Full Name => Enable to allow using the soldier’s name as well as the class name. So if John Doe is no found, it will default to the class the trooper is. Enabled by default. Credit to RustyDios.
If you want to say more than thank you, feel free to Buy me an apple[www.buymeacoffee.com]
Make sure that you have logging enabled, otherwise you will not see the logs!
Also make sure you have ranked up a soldier to squaddie with the class in question, otherwise you won’t see it.
Also make sure that you don’t have buying a random ability enabled.
- Go to this file in your computer
..Documentsmy gamesXCOM2 War of the ChosenXComGameLogsLaunch.log
- Then, search for "Beat_AutoPromote" or "==========". This will take you to the start of the logs.
- Scroll down and You should see a line that says "COMPLETED AUTO-PROMOTION", look 1 line above it.
- The text in the brackets next to "soldierType" is what you are looking for.
- If for some reason the full name isn’t working for you, the line above the one from the previous step has the name you need to enter.
