XCOM 2
AutoPromotion
67 Comments
☾olin 7 Sep @ 3:29am 
It's fixed! Thank you, this mod is so necessary for me to play with large barracks.
Beat  [author] 6 Sep @ 11:01pm 
Your problem will soon be fixed. Update has been pushed so be on the look out for the updated version
☾olin 4 Sep @ 4:41pm 
I tried without any mods and it still won't work, so if it works for you the only thing left for me is an ini problem with my xcom game itself.
☾olin 4 Sep @ 2:37pm 
My characters do have nicknames, however I made a brand new character, without a nickname, and it still would not recognize the name. I have tried possibly everything and it won't work, I think if you can't reproduce it locally, it's got to be one of my mods messing with it. I plan on trying the mod by itself tonight to see if it still does it. Both when they're rookies and when they're already squaddies they won't be recognized. Thanks for the help.
Beat  [author] 4 Sep @ 9:51am 
Do your characters have nicknames when going through this or even as rookies to squaddies it won't work with a name?
Beat  [author] 4 Sep @ 9:47am 
I'll see if I can reproduce locally
☾olin 3 Sep @ 5:11pm 
Here's a pastebin of the autopromote logs: https://pastebin.com/V9FFwQfX

Here's a pastebin of what I have in the gamedata: https://pastebin.com/aUe4Q1H3
☾olin 3 Sep @ 5:03pm 
I'm using RPGO, so there's like 18 rows of abilities to pick from when you become that class. I used the GetSoldierAbilitiesForRank command to get the rows I'm using.

I get it working when I don't use a name and it upgrades everyone who is that class to those exact abilities, however I would like specific people to upgrade on their own path that I set.

I don't want to fill your comments with logs, but I'll try to send some of what I see to help you understand a bit of what I'm seeing.
Beat  [author] 3 Sep @ 3:54pm 
Also further in the logs includes more details so if its a name or ability issue that would tell you
Beat  [author] 3 Sep @ 3:47pm 
I'd need to see the mod for this mod class you're using but the values you provided don't make sense. For example, sergeant=10 would mean that on the sergeant column there's 9 empty rows above it
☾olin 3 Sep @ 2:19am 
I should mention I have it working using this and only if the name isn't in the template section anywhere:
+AutoPromotePresets=(soldierClass="UniversalSoldier", squaddie=0, corporal=2, sergeant=2, lieutenant=2, captain=2, major=2, colonel=6, brigadier=0)

As soon as I add the name to a preset the soldier refuses to use this mod.
☾olin 3 Sep @ 2:05am 
[0242.26] Beat_AutoPromote: CT 7567 ID [ 1154 ]
[0242.26] Beat_AutoPromote: ONLYVETS and ONLYSQUADDIES is disabled so business as usual, start process
[0242.26] Beat_AutoPromote: what is bIsLogged True
[0242.26] Beat_AutoPromote: what is bUseClassIfNoMatchedName True
[0242.26] Beat_AutoPromote: what is bShowRankedUpPopups True
[0242.26] Beat_AutoPromote: what is bOnlySquaddies False
[0242.26] Beat_AutoPromote: No Named match for unit [ CT 7567 ], AND Use Class auto-match turned off
[0242.26] Beat_AutoPromote: SKIPPED AUTO-PROMOTION
☾olin 3 Sep @ 12:46am 
I cannot for the life of me get this to work with a soldier's name.

This is what I have in the presets:
+AutoPromotePresets=(soldierClass="UniversalSoldier", soldierName="CT 7567", squaddie=0, corporal=10, sergeant=10, lieutenant=2, captain=18, major=18, colonel=18, brigadier=10)

I have CT 'Rex' 7567 in my character pool. I thought maybe it was the nickname causing problems or the spelling/case-sensitive, so I added the nickname and double checked for any case-sensitive mismatches and it still didn't fix it. I also have the option to use soldier names enabled in MCM.

The error I get is:
[0242.26] Beat_AutoPromote: No Named match for unit [ CT 7567 ], AND Use Class auto-match turned off
[0242.26] Beat_AutoPromote: SKIPPED AUTO-PROMOTION

Do you possibly know what I'm missing or doing wrong? My brain is fried as I've been trying to figure this out for hours and trying all sorts of things.
DDR Khat 23 Jul @ 4:08am 
That seemed to have fixed it for only one mission, then went back to not auto-promoting again? [Edit] It seems like the auto-promote failed for the vial mission. It went back to working for 2 missions at least afterwards.
DDR Khat 23 Jul @ 3:12am 
That seems to have fixed it! Thanks @Beat ! :)
Beat  [author] 13 Jul @ 3:30pm 
So this is technically a bug but its simply fixed be enabling the option again. Technically the code should not depend on that option being checked to promote anyway but it currently does.
Beat  [author] 13 Jul @ 3:25pm 
No, if you put a named soldier in your ini file, it will use that. If the soldier eligible for promotion does not exist in the ini file, it will default to the class promotion definition in the ini
DDR Khat 13 Jul @ 8:43am 
It should be the same setting I don't recall changing it. I'm not too interested in applying promotions to the soldiers names but instead their role itself. Is that not what this value is doing?
Beat  [author] 13 Jul @ 8:40am 
In the screenshot you sent previously, you had "enable soldier name in addition to soldier class" off. Was that still the case for this? That's responsible for this. scenario.
DDR Khat 12 Jul @ 9:55am 
Of course, no point not being patient. It's not like you've intentionally made it not work for me :D we'll get there eventually, I'm certain!

[1431.90] Beat_AutoPromote: what is bIsLogged True
[1431.90] Beat_AutoPromote: what is bUseClassIfNoMatchedName False
[1431.90] Beat_AutoPromote: what is bShowRankedUpPopups False
[1431.90] Beat_AutoPromote: what is bOnlySquaddies False
[1431.90] Beat_AutoPromote: No Named match for unit [ Aleel Adlisk ], AND Use Class auto-match turned off
[1431.90] Beat_AutoPromote: SKIPPED AUTO-PROMOTION

Seems this makes it quite apparent what's going on. But I don't see an option for setting the UseClassIfNotMatched
Beat  [author] 11 Jul @ 6:24pm 
When you start a new run go ahead and enable logging so we can see what's going on. It'll help me figure out what's going on. Thank you for your patience.
DDR Khat 11 Jul @ 4:42pm 
① Didn't turn on logging; settings was as they were in the screenshot. In hindsight, should've done that. Sorry. ② No custom classes at all, no. All standard XCOM2 WoTC ③ Hadn't tried that one yet. Finished another run today so I'm happy to start a new run and play for a bit to check that for you and report back when I've had some sleep
Beat  [author] 11 Jul @ 1:12pm 
So a few questions. Did you enable logging? In your screenshot it wasn't enabled so just want to double check. Are you using any non standard classes? Does it still promote rookies or is that not working either?
DDR Khat 11 Jul @ 12:38am 
Both. I just now checked the logs and cannot see ANY reference to AutoPromote at all.
Here are both my latest logs where I had to manually promote; https://gist.github.com/DDR-Khat/6c12590a7569b4d59e1d75b23355a17a
Beat  [author] 10 Jul @ 3:35pm 
When you say that its not promoting, is it in both the barracks and the after action report or one? Did you check the logs?
DDR Khat 10 Jul @ 4:12am 
https://ibb.co/TB40V234 -- a screenshot, just in case I've missed something obvious? :)
DDR Khat 10 Jul @ 4:09am 
Just in case, I am using the Community Promotion Screen mod also. But in your ini's comments it suggests it is supported, and my values are set up based on the top-down order as documented
DDR Khat 9 Jul @ 10:47am 
I have them turned on in-game via the mod config menu as well, yes :)
Beat  [author] 7 Jul @ 3:09pm 
Are you enabling settings in game through the mod config menu?
DDR Khat 6 Jul @ 12:41pm 
If your on about the settings I showed below, I did that in the _DEFAULTS.ini , but also copied those same values in-game just to be certain using the "[WotC] Mod Config Menu"
DDR Khat 6 Jul @ 12:34pm 
It's not promoting non-rookies sadly (But good thing making sure I knew that :) )
I use the Alternative Mod Launcher 1.6.0 and with it there is the "Config" tab which showed me Config/XComGameData.ini which has the comments about defaults for each class.
Is this not the correct place to modify the values?
Beat  [author] 5 Jul @ 10:47am 
Are you going into the ini file or using the mod config menu? Per your config it should be only promoting soldiers that are not rookies
DDR Khat 5 Jul @ 8:56am 
I think I'm confused about how this is intended to work.
[code];A configuration File
[AutoPromotion.AutoPromote_MCM_Defaults]

ONLYSQUADDIES=false
ONLYVETS=true
CHECKBARRACKS=true
ENABLELOGGING=false
SHOWPROMOTIONPOPUP=false
IGNORECA=false
RANKNOBUY=false
BUYRANDOM=false
USENAME=true
VERSION_CFG=3[/code]
I have my config set up like this, but it never appears to automatically promote my troops.
Am I misunderstanding the "Auto" and that I need to use the console commands?
me go ur mom's place 17 Nov, 2024 @ 11:40am 
understood Thanks!!
Beat  [author] 2 Nov, 2024 @ 5:01pm 
So reaper recruit is a mod available that allows you to train reapers. reaper is the one that shipped with WOTC. Make changes to whichever one you want. You can use solider names to dictate what abilities the promotion will follow.
me go ur mom's place 1 Nov, 2024 @ 8:48am 
I just downloaded this mod, and in the ini, there are 2 classes, Reaper & ReaperRecruit already in the ini. What is the difference between them? do i make my changes in both?. Also, do i have to use both soldierClass & soldierName together? Is there a way I can make it so that, (using a name or something else) I can have some of my grenadiers on left side of the tree, and some on right side of the tree?
Epic Dovahkiin 13 Oct, 2024 @ 3:29pm 
to have a rookie forced into a certain class either use Commander's Choice or Use My Class
Beat  [author] 30 Mar, 2024 @ 12:18pm 
The mod does not let you pick what class the rookie will become.
Rayna 30 Mar, 2024 @ 7:47am 
Turning on OnlyVets would still autopromote rookies, and randomised the classes. OnlySquaddies is off. Was that the intended result?
Playing with PCP and the additional PCP classes.
LeyShade 6 Feb, 2024 @ 12:42pm 
Found as a recommendation to force a Training Roulette style of play.

Validate it works for exactly that purpose. Hilarious.

10/10 for trolling the X2verse.
Rasa 3 Apr, 2023 @ 3:49pm 
omg! its a training roulette for wotc! I've missed it for so long! awesome!
Sweet 26 Feb, 2023 @ 12:10pm 
Thank you, I will try it.
Beat  [author] 26 Feb, 2023 @ 9:43am 
Added
Beat  [author] 12 Feb, 2023 @ 9:53am 
Hmm. I can take a look. Not sure if its possible given how the game setup the promotion tree.
Sweet 12 Feb, 2023 @ 12:45am 
Can you add the option for promote with random ability, without AutoPromotePresets?
Beat  [author] 28 Jan, 2023 @ 11:39am 
Fixes and Feature requests released today
Beat  [author] 26 Jan, 2023 @ 9:51am 
I believe I have fixed it. I'll release the fix this weekend with a slew of other features and bug fixes
Beat  [author] 26 Jan, 2023 @ 8:50am 
I think I found the cause of your bug. I'll let you know if what I do fixes it.
Beat  [author] 26 Jan, 2023 @ 8:34am 
Can you tell me what class the rookie promoted to? I want to try and replicate the bug before I can attempt to fix it. Its weird that you're experiencing this bug, however, because the developers left a comment in the function used to change the squaddie's gear stating: "Called only when ranking up from rookie to squaddie. Applies items per configured loadout, safely removing items and placing them back into HQ's inventory."
MrMister 26 Jan, 2023 @ 8:16am 
Items of which you have endless suply of, like most weapons and armors in vanilla. In contrast, single-build items are those you have finite copies of, and which if you can build you can only do so one by one, like ruler armors, chosen-dropped weapons, and vests.