XCOM 2
[WOTC] Additional Soldier Console Commands
276 kommenttia
shiremct  [tekijä] 10.11. klo 18.33 
Appreciate the report, issue was identified and resolved in latest update. Thanks!
LukeSolas 9.11. klo 10.22 
Hey man, it seems the RebuildSelectedSoldier Command is setting the new max Health and/or fatigue stats, when they are not full, to the current value at time of using the command.

tested it a few times, first noticed it with amalgamation classes using XpanD's Amalgamation Console commands, who figured out that the error seems to be in the RebuildSelectedSoldier Command since he is calling it in ApplyClass.

I'm using a mostly unchanged Odd season 9 modlist, only changed some amalgamation classes, the scroll speed mod and removed MEC's for modular sparks.

Let me know if you need any further information.
SlowPokeDerp 31.10. klo 13.01 
Can this be used during an Ironman playthrough?
Kasladia 20.10. klo 13.26 
Does this mod have compatibility available or planned with the multiclass mod?
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1557948662&searchtext=Multiclass
Valkerion™ 4.10. klo 14.08 
ResetSelectedSoldiersClass doesn't fix these stat increases either, still sets them higher than before.
(I am using LWOTC btw)
Valkerion™ 4.10. klo 13.57 
I don't see RebuildSelectedSoldiersClass giving my whole barracks XP, but I do have their HP, will, and aim constantly going higher and higher on each use, which is a problem.
Unit probably shouldn't have 84 hp, 112 will and 348 aim.
shiremct  [tekijä] 28.9. klo 17.10 
Important update - RebuildSelectedSoldiersClass now attempts to retain any stat changes a unit has from randomized stat sources, covert ops bonuses, etc. This was a long-requested feature, so now if you need to rebuild a soldier mid-campaign, they will no longer lose their existing identity and earned bonuses!

A new command was added, ResetSelectedSoldiersClass, that resets everything as before when this is needed/desired.
Canthyse 3.9. klo 10.43 
As others were pointing out, RebuildSelectedSoldiersClass its giving XP and free Stats to the selected soldier (not all barracks). Every time you use it, the soldier keeps accumulating stats. It doesnt matter if injured/tired. It doesnt go back to the original stats.
Really gamebreaking if you modify your soldiers a lot or the class mod author updates.
A temporal fix would be using the SetSelectedSoldierStat command and manually change to the original values after the Rebuild. But still the XP gain, i dont know how to fix that.
KrzepkiSzpinak 30.8. klo 0.40 
RebuildSelectedSoldiersClass is now granting xp to whole barracks for some reason..
Daddy Kaneki 16.5. klo 3.35 
I just discovered a bug: Using RebuildSelectedSoldiersClass on a soldier who has temporarily modified stats (injured/tired, for example) the stat will BECOME PERMANENT. So it is best to wait until the soldier is fully healed and refreshed before using this command.
EzT 8.4. klo 14.19 
Also, you remove progress by destroying the red facilities. Some missions also reduce avatar project as a reward. Covert actions is also a good way if you have WOTC
EzT 8.4. klo 14.18 
This mod does not, but there is one by default. Do "RemoveFortressDoom <int>"
Rea 8.4. klo 14.14 
Hey, does this mod have a command to reset the Avatar Project? I'm just starting out and I have no clue how the sabotage missions work. I don’t get any, and I keep scanning spots over and over but nothing triggers. Would be nice to have a safety option, just in case.
Agane 9.3. klo 15.46 
Godbless this mod. Saved me many soldiers from my modding mistakes 🙈
Jestimac 11.1. klo 6.51 
I would like to generate 4 new recruits. Is there a console command allowing to do this ?
Jestimac 10.1. klo 21.09 
@ChrisZero
Hello. After getting stuck myself, I finally found what was wrong.
The command lines that works are
SetSelectedSoldiersComInt eComInt_gifted
SetSelectedSoldiersComInt eComInt_genius
SetSelectedSoldiersComInt eComint_savant
I don't know the names to set "very poor" and "poor", but I assume noboby would want to modify the soldiers in order to make them dumb ;)
These commands seem to work. I would suggest setting all soldiers as "savant" would be cheating.
I have not seen what happens when combat intelligence is increased through the game after resetting it, but I don't see why it should cause problems.
ChrisZero 2.1. klo 23.59 
@Dragon I agree with you. But i dont know what i do wrong... Thats why i ask here for help.
I start the game out of steam. When i rightklick in steam on X-Com 2, I select properties.
Then i go to workshop. There are all mods listed. Actually this mod is the only mod i have installed. It have a green arrow ( marked as active ). But it is absolutely clear, that i do something wrong or miss something ... But i dont know what...
Dragon32 2.1. klo 13.20 
@ChrisZero
There's a difference between a mod being in a list of mods that could be enabled and it being enabled. If the mod is enabled then I don't know what your problem is, the command looks right syntactically.

If that command didn't work I'd expect it to have been mentioned before in the 6 years since it was added.
ChrisZero 2.1. klo 12.21 
@Dragon
As i initially wrote: The mod is shown in the mod list.
It is marked as active.
Dragon32 2.1. klo 12.09 
@ChrisZero
Did you activate the mod in whatever launcher you use? That error implies it's not enabled.
ChrisZero 2.1. klo 12.03 
@Dragon32 I tried all between 0 and 4.
The Logwindows says :
[0072.03] Log: Command not recognized: SetSelectedSoldiersComInt 3
Dragon32 2.1. klo 11.12 
@ChrisZero
What value are you passing it?
ChrisZero 2.1. klo 10.41 
SetSelectedSoldiersComInt command is not working.. Mod is shown in the mod list. ( my only mod i have ) Any idea why?
Dragon32 14.10.2024 klo 7.35 
@SuffeR
What does the INT in ranks for the LevelUpSelectedSoldier mean?
Probably integer
SuffeR 13.10.2024 klo 19.40 
And also I'm not sure why, but the command I previously mentioned isn't working.
SuffeR 13.10.2024 klo 19.38 
What does the INT in ranks for the LevelUpSelectedSoldier mean?
Helios 1-1 22.9.2024 klo 10.52 
For some reason it doesn't show up in my mod list but works in game somehow.
Overclocked Testicle 6.8.2024 klo 11.08 
It worked just fine for me on LWOTC mod jam+
Ishkabeebee 28.3.2024 klo 17.39 
@Lokolaki Thank you so much! Really appreciate it
Lokolaki 5.3.2024 klo 21.58 
Here how to make Psi Op to get all abilities despite limitations with LWOTC mod:

1) Reset class - MakeSoldierAClass "Name Surname" PsiOperative
2) Lvl up - RankUpPsiOp Name Surname
3) Profit
Ishkabeebee 22.12.2023 klo 10.15 
Having difficulty with this mod and LWotC, specifically with Psi Ops. I can increase their rank, but it neither gives them any new abilities, nor allows them to train in the Psi Lab. Any help anyone can offer?
Dragon32 24.9.2023 klo 10.58 
@Gargamel The Despoiler
Are you using Alternate Mod Launcher? Try exiting and re-starting Steam, it seems to be a bit rubbish at actually downloading stuff these days.
Gargamel The Despoiler 24.9.2023 klo 10.25 
this doesnt even show up in my mod list what the ♥♥♥♥
Riuru 14.7.2023 klo 13.50 
Doest work with LWOTC
kajerlou1 15.4.2023 klo 23.21 
I subscribed and it broke a bunch of my mods immediately causing me to crash at bootup. Even after unsubscribing it is all jacked up. Now I'm coming through logs trying to figure out the damage.
zin 12.4.2023 klo 18.27 
Could you please add a command that lets you remove negative effects such as any form of panic from a soldier in tactical? That would be wonderful!
Snake 966 30.3.2023 klo 8.11 
The Boost Mod is Soldier Development. Be careful using it with Soldier Conditioning, or you can just edit the fixes using this tool, but it is a hassle still keeping track in battles.
Snake 966 30.3.2023 klo 7.49 
Wow what a great tool. There is a mod conflict between soldierconditioning and another mod that gives boosts based on actions. The boot resets the ability to the original (pre-conditioning) value. Your tool makes it sooooo easy to fix.

When you have used it sucessfully once, all you have to do in cheat is use your arrow to scrow up and its there already typed in. (Capitalize exactly where it says though)
Leenday 5.12.2022 klo 5.34 
Unfortunately botches LWOTC soldiers that had multiple non-xcom row skills (accessed by Second Wave option) by making rebuying prices inflated as stated below. Otherwise works perfectly fine. Also basically avoidable if you respec them through training center and THEN reroll.
IscaRIOT 13.11.2022 klo 14.54 
I tried using this after I discovered that I really didn't like a skill I'd chosen in LWOTC, where I allowed normal skills to be bought through the training centre with AP. It worked fine, but when I rebought the additional skills I had used before, the costs were all wrong. It hadn't reset the counter on bought skills, so their price was inflated as though I had bought them all twice.
Layth36 28.10.2022 klo 7.49 
Forgot to mention that I only tried it on soldiers that were already assigned a class, I didn't try it on rookies so not sure how it would work with a rookie.
Layth36 28.10.2022 klo 7.48 
I can confirm that this mod works flawlessly in LWOTC, tried it in half of my soldiers and they ranked up normally as if they would after battle. First ability costs 0 point and the rest must be bought with point as usual. So the mod works perfectly.:steamthumbsup:
Arkay 12.10.2022 klo 9.08 
@Ain Soph At least in LWOTC this isn't working. Technically, they do level up, but don't gain new abilities as far as I can tell.
WeeWooJ316 3.10.2022 klo 10.54 
@templar0396 After launching AML, go to Options, then Settings, & under Active arguments type -allowConsole

That should be all you need to do. The buttons to use it are either backslash(button below backspace) or tilde(button to the left of 1 & above tab).
templar0396 1.9.2022 klo 15.16 
Hi, anyone can help me? I can't seem to enable to console.. I tried everything I can find online like adding -allowconsole -log -autodebug but it still doesn't help..
Dragon32 1.9.2022 klo 7.03 
@Blak-Dragon
That sounds like a mod rather than a console command to me, you'd need the SDK
https://www.reddit.com/r/xcom2mods/wiki/index/
Blak-Dragon 22.8.2022 klo 8.05 
What command or config would I need to edit to allow Spark class types to earn Combat AP after missions ? Rather than having to spend XCOM AP.
Ain Soph 21.8.2022 klo 21.55 
PSI Rank up

1. Armory

LevelUpSelectedSoldier 6

2.

RankUpPsiOp "soldier name"
Example : RankUpPsiOp Alessia Costa
The NiF 19.6.2022 klo 10.06 
Yes I have that issue too.
philmakerguy 25.5.2022 klo 8.25 
Is anyone else having an issue where you can't train psi ops in the psi lab and can't rank any up with console commands?