XCOM 2
[WOTC] XpanD's Console Commands
53 kommenttia
jahsinha 11.5. klo 23.55 
Hmm. Thanks, Rusty. I'll have to check this out if I run into this again.
RustyDios 10.5. klo 18.50 
CI already has it's own command for that, on the Geoscape with the mission open (ready to launch) use "ForceAbortSelectedInfil" and it should auto-complete the mission for you.
jahsinha 10.5. klo 15.03 
endinfiltrationforcewin. is this a possible command you can build? Endbattleforcewin has been a life saver in bugged tactical missions and lets me go one with my life w/o cheating - I won but due to some endless spawn or some other nonsense, I can't progress. Recent bug is is trying to launch a CI infiltration after 250% and the map won't load - ctd in the opening cinematic. yes, I can binary search and all that but I'd rather cancel the infil or win it and move on. Possible?
General Anakin Skywalker 13.4. klo 10.52 
Yeah no problem !
I'll try to find another way to see the state of my captured soldiers, to see if they died or not
XpanD  [tekijä] 13.4. klo 10.22 
Huh, that's definitely not intended. Taking a break for a bit, but I'll see if I can reproduce that whenever I start a new playthrough. Thanks for letting me know.
General Anakin Skywalker 13.4. klo 7.52 
Only the soldiers we have in our ship.
And if we add "true", we see scientist and all the others stuff but not them
XpanD  [tekijä] 13.4. klo 2.21 
I don't fully remember how I set that up, but what does ListSoldiers show?
General Anakin Skywalker 12.4. klo 19.28 
Can we see our soldier captured?
XpanD  [tekijä] 18.3. klo 14.00 
"SetSelectedSoldiersStat eStat_Hacking VALUEHERE" should work there, it's part of the Additional Soldier Console Commands mod. (might be eStat_Hack instead)
Leokosta 18.3. klo 10.35 
Is there a command I can use to increase a soldier Hack Status ? I am trying Vipers Hacker class, but hes Hacking skill is to low for my taste. LWOTC + TedJam .Thank you
XpanD  [tekijä] 20.2. klo 17.16 
You'll need the console enabled to use any commands, vanilla or modded. Not sure if there's a way of doing the launch argument thing with the vanilla launcher (or maybe through Steam?), but AML is nice enough to have that I'd recommend just using that for everything anyways.
Micheal J. Caboose 20.2. klo 14.32 
I see, do I need the AML to use normal commands as well? its kinda nutty they kinda not let you use it
XpanD  [tekijä] 17.2. klo 13.47 
Copy/paste of an earlier post of mine for enabling the console:

- in AML, go to Options > Settings
- click into the Active Arguments box (not Quick Toggle Arguments!)
- add -allowConsole at the end (with a space between it and the other arguments)
- click OK
- restart game if it was open
- hit ` or ~ (or sometimes @, ' or AltGr + ö) to open the big console, \ or | to open the compact one

That should get the console up and running. Note that you'll want to be running the Alternative Mod Launcher for this, though that's generally recommended anyways. (as vanilla has some serious issues)
Micheal J. Caboose 17.2. klo 13.29 
Hey question, I am looking to use this mod, but having issues getting the command menu up anyway? any way to fix that before I use the mod?
Rowntree_Th 12.2. klo 21.00 
your a bloody legend mate worked perfectly,
XpanD  [tekijä] 12.2. klo 19.25 
Do you still have the "-allowConsole" launch argument enabled? Good first thing to check.

If that doesn't work... Copy-paste from a guide I wrote a while back: "hit ` or ~ (or sometimes @, ' or AltGr + ö) to open the big console, \ or | to open the compact one"

Not aware of any mods force-disabling the console or doing anything else to it, but you may be on a different keyboard layout? Worth trying those other keys.
Rowntree_Th 12.2. klo 16.21 
any idea why console commands might be disabled entirely like do any other mods override use of tilde key or anything? it worked fine and then halfway through campaign stopped activating.
Jestimac 11.1. klo 8.10 
XpanD : Thank you very much
XpanD  [tekijä] 11.1. klo 7.14 
GiveRandomRookies can technically do that, but it's just a wrapper over the MEME Give Soldier Command mod. I'd recommend grabbing that mod for this purpose.
Jestimac 11.1. klo 6.52 
Is there a console command to create new recruits or new soldiers ?
XpanD  [tekijä] 3.12.2024 klo 2.20 
Nice, thanks for confirming.
Deacon Ivory 2.12.2024 klo 7.15 
EndBattleForceWin works on a Chosen Stronghold Assault if you have completed the first rooms and are in the main chamber.
Deacon Ivory 31.10.2024 klo 9.41 
FYI, the EndBattleForceWin will complete a Hostile VIP mission (capture them without killing them) successfully.
Simplxp 18.10.2024 klo 7.37 
Thank you xpand!!!!! :D
XpanD  [tekijä] 18.10.2024 klo 3.40 
"InertMeld" should be the correct template name for that one, likely given through GiveResource. A FindResource would be nice, I'll add it to the list of things to look into at some point.
Simplxp 18.10.2024 klo 3.18 
Thanks for the commands xpand works so well. Would you happen to know how to add crystallised meld from console? I'm having trouble adding additem crystallisedmeld and giveresource crystallisedmeld does not do anything. Or is there a findresource command that you could add so I can see the item id?
XpanD  [tekijä] 12.10.2024 klo 7.10 
RebuildSelectedSoldiersClass, maybe? You can give that a class template name and it'll apply it to the selected unit. (not from this mod, you'll need Additional Soldier Console Commands to use that one)
poemedia 12.10.2024 klo 6.00 
Hello to all. What is the command to reset a soldier before the promotion, so that i can change the class? Thank you.
XpanD  [tekijä] 27.9.2024 klo 2.13 
EndBattleForceWin does not currently grant objective items, so stuff like the Blacksite Vial. Known issue, will see if I can get a fix in when I next update the mod. For now, be careful on missions that work that way!

(if you don't have a soldier that can pick it up, DropSoldier may work)
XpanD  [tekijä] 15.9.2024 klo 12.26 
Big update! Don't have much time right now, but check the Change Notes page... it's worth it. (I think)
whenriksen1 2.9.2024 klo 1.44 
Thank you for that. I was able to use that command to tab to them. The camera didn't recenter, though it did make them visible. I'll remember that tip for next time.
XpanD  [tekijä] 2.9.2024 klo 0.28 
There may already be a workable solution for this: "X2AllowSelectAll true" should allow you to tab through non-XCOM units as well, and you can then "ttc" them into the fray. Be sure to "X2AllowSelectAll false" before ending your turn!

(will write down the idea, but not sure how accessible that part of the game code is)
whenriksen1 2.9.2024 klo 0.21 
Can you add a command to force an enemy noise indicator? I'm not sure if the AI bugged in my mission but I couldn't find them and finally just used the kill closest enemy command (Thank You!). I'd have preferred to track them down, but it was taking way too long.
XpanD  [tekijä] 29.6.2024 klo 8.52 
I'll have a look when I start working on the next update, but it might be a while -- currently taking a break!
Honk 29.6.2024 klo 7.27 
can you add something like "FindReseach"? I would like to research/buy some GTS tactics that are locked behind some requirement
XpanD  [tekijä] 13.6.2024 klo 8.03 
Update is out! Made SetUnitCombatStat much more useful, upgraded several other commands and fixed a bunch of bugs, the "UnbondSoldier not working" one included.

(check the Change Notes for the full list)
Aucella 7.6.2024 klo 1.14 
:nekoheart::nekoheart::nekoheart::nekoheart:
XpanD  [tekijä] 7.6.2024 klo 0.57 
...oops, looks like I accidentally inverted the "is bonded" check when I split the mod off into different files for the different campaign layers. Will have the fix out somewhere in the next week, thanks for reporting!

(no need for a name argument -- it searches through all bonds the soldier has, and severs them all)
Aucella 6.6.2024 klo 22.22 
UnbondSoldier fails to trigger no matter who I use it on, it gives this message every time:
Error: Could not find any bonds to break for the selected unit. Please make sure they're actually bonded.
I'm clearly using it on bonded soldiers so I dunno what's going on. Maybe adding a name argument to the commands so it looks for the name of the soldier they're bonded with?
ThatCozyBear 30.5.2024 klo 23.55 
thanks
The Unslain Dragon 30.5.2024 klo 23.45 
Amazing update, thank you.
XpanD  [tekijä] 30.5.2024 klo 15.19 
And another big update. Even more new commands (ToggleShowCorpses, ForceSoldierWeapon, SetUnitCombatStat, FindWeapon/Equipment/Unit, DumpDataNameOnlyUnits), and some minor fixes.
XpanD  [tekijä] 30.4.2024 klo 10.00 
Big update today! Changelog coming later, but this update adds a bunch of new commands (DropSoldier, ListSoldiers, SetSoldierFirstName/LastName), as well as making HealSoldier and FixSoldier work in battle. Note that FixSoldier's negative effect healing is a bit experimental, as is DropSoldier. (lot of moving parts to this stuff)
XpanD  [tekijä] 7.2.2024 klo 5.18 
Which launcher are you using? The stock one, or Alternative Mod Launcher? Stock is known to cause issues, though I'm not sure if this particular one is related. If AML, what are the full contents of both argument boxes? ("Active arguments" and "Quick toggle arguments")

Also, which keys have you tried in-game? The backtick ( ` ) can be weird with some keyboard layouts, may be worth trying backslash ( \ ) instead to see if the single-line console DOES work. (check the bottom of the screen -- this one is a lot less useful, but it's a good way to see if the console is at least enabled)

Feel free to add me on Steam if you need more help, might be a bit quicker.
Dior_Didis83 7.2.2024 klo 4.40 
how can you enable the console commands ? i just did -allowconsole on the launch options but that doesnt seem to get me anywhere, i figured this mod might help.
XpanD  [tekijä] 23.1.2024 klo 0.29 
(added)
RustyDios 22.1.2024 klo 15.22 
I feel gutted the bStarsScope mod didn't make the list of 'other console mods' .. lol
Nice work here catching some of the more commonly requested commands!
XpanD  [tekijä] 17.12.2023 klo 8.25 
Pushed out a big update! Adds four new commands, and fixes a few messages.

(no XP command, but that was a request for another mod and the issue was fixed on that mod's end)
XpanD  [tekijä] 15.12.2023 klo 0.36 
No promises, but I'll have a look. Working on some cool new stuff.
GazingRhino 14.12.2023 klo 20.19 
Can you remove XP for the selected soldier?