Long War 2 Console Commands

Start with the fundamentals.

Moderator: deaconivory

Forum rules
Players can post in Long War 201 threads but not start new ones.
pacotaco
Posts: 6
Joined: Wed Mar 22, 2017 4:49 pm

Re: Long War 2 Console Commands

Post by pacotaco » Wed Mar 22, 2017 9:36 pm

I found a command endmission xcomwins[ubool]

or something like that. I didn't read I just typed i in as is and I guess the default state is false because it called the mission a loss. Doesn't matter, I had already killed the VK earlier I guess it will just make the spokesman a little peeved. Before that I tried placing a VK to see if killing it again would work but it kept dropping inert sprites. So then I played around a bit and spawned a couple mutons and yadda yadda yadda I'm back baby.

LordYanaek
Posts: 940
Joined: Mon Jan 23, 2017 1:34 pm

Re: Long War 2 Console Commands

Post by LordYanaek » Wed Mar 22, 2017 9:40 pm

glad you found a way to solve it. Yes [ubool] was certainly a placeholder for an actual boolean (true/false) argument.

User avatar
jaw761
Posts: 14
Joined: Fri Jan 20, 2017 9:21 am
Location: Oklahoma City, OK

Re: Long War 2 Console Commands

Post by jaw761 » Sat Mar 25, 2017 10:35 pm

I checked the list of commands, but I didn't see it. Is there a command to change the Advent strength in a region, positive or negative?

Clibanarius
Posts: 205
Joined: Sun Feb 05, 2017 1:33 am

Re: Long War 2 Console Commands

Post by Clibanarius » Sun Mar 26, 2017 2:40 am

SetAlertLevel.

LordYanaek
Posts: 940
Joined: Mon Jan 23, 2017 1:34 pm

Re: Long War 2 Console Commands

Post by LordYanaek » Sun Mar 26, 2017 7:35 pm

DLC Missions
"ADVENT Avenger" posted those on Steam in the description of a mod that forces those same missions to spawn. Since it's fairly common in LW1.2 that those missions never spawn, having those listed here seems like a good idea.
  • Hunter's Weapon PoI (Not recommended, this PoI will duplicate and is fairly common)

    Code: Select all

    SpawnPOI true 1 POI_HunterWeapons
  • The Nest (mission unlocking Alien Rulers)

    Code: Select all

    SpawnPOI true 1 POI_AlienNest
  • Lost Towers (mission to unlock the Spark)

    Code: Select all

    SpawnPOI true 1 POI_LostTowers

mazz0
Posts: 2
Joined: Thu Mar 30, 2017 9:15 pm

Re: Long War 2 Console Commands

Post by mazz0 » Thu Mar 30, 2017 9:17 pm

Is there a command to add a Resistance Mec to a region? I captured two on the codex coordinates mission but they didn't show up. I'm sure we would have carried them out along with the alien portal thingy, so I'd like to add them :)

mazz0
Posts: 2
Joined: Thu Mar 30, 2017 9:15 pm

Re: Long War 2 Console Commands

Post by mazz0 » Sun Apr 02, 2017 2:48 am

mazz0 wrote:Is there a command to add a Resistance Mec to a region? I captured two on the codex coordinates mission but they didn't show up. I'm sure we would have carried them out along with the alien portal thingy, so I'd like to add them :)
Found it!

Code: Select all

LWAddResistanceMec [region]

boy_cad
Posts: 18
Joined: Mon Oct 17, 2016 7:04 am

Re: Long War 2 Console Commands

Post by boy_cad » Wed Apr 12, 2017 9:14 am

Hello.
Im looking for a command which will clear a soldier stuck in officer training, freeing the OTS slot and returning her to 'Available' status. As far as I can see, she's not going anywhere, and I cant cancel her training normally.
Im not sure if its a bug or a mod-meddling glitch, but I posted here http://www.pavonisinteractive.com/phpBB ... 17&t=24195

boy_cad
Posts: 18
Joined: Mon Oct 17, 2016 7:04 am

Re: Long War 2 Console Commands

Post by boy_cad » Sat Apr 15, 2017 8:47 am

Re: above stuck soldier:
I just demolished the facility> then consoled GiveFacility > GiveResource Supplies> Upgrade the GTS> add soldier for training> Cancel training; and thus successfully removed the soldier and returned her to "Available" status. Adding the ability she was training for would be nice, though.

HappyNinja
Posts: 1
Joined: Mon Apr 17, 2017 3:29 am

Re: Long War 2 Console Commands

Post by HappyNinja » Mon Apr 17, 2017 3:30 am

gassrex wrote:GiveResource codex brain?
any command for codex brain?
additem corpsecyberus [INT]

TwistedOne73
Posts: 1
Joined: Sat Aug 25, 2018 6:53 pm

Re: Long War 2 Console Commands

Post by TwistedOne73 » Sat Aug 25, 2018 7:06 pm

gassrex wrote:GiveResource codex brain?
any command for codex brain?
The console command name for the codex brain is: "Cyberus" so in the console command window (once I have one in my inventory):

GiveResource CorpseCyberus 100

sinthemau
Posts: 1
Joined: Tue Nov 12, 2019 10:57 pm

Re: Long War 2 Console Commands

Post by sinthemau » Tue Nov 12, 2019 11:01 pm

Hi,
I cannot find the Console Commands for the LW2 specific PCS, I need PSI Offense that I had only one but already used.
Can anyone share it if you know?
Thanks a lot

boy_cad
Posts: 18
Joined: Mon Oct 17, 2016 7:04 am

Re: Long War 2 Console Commands

Post by boy_cad » Wed Jan 01, 2020 12:18 pm

sinthemau wrote:
Tue Nov 12, 2019 11:01 pm
Hi,
I cannot find the Console Commands for the LW2 specific PCS, I need PSI Offense that I had only one but already used. Can anyone share it if you know? Thanks a lot
Ive seen them around somewhere. Im looking for the 'Combat Rush" PCS code myself, and I'll tpost back if I find it.

I also have a question about which console commands are best to use to end an unwanted mission. I'd like to to do it without gaining any experience. 'endbattle xcomwins true' crashes the game.

(Theres been a plauge of red UFO's buzzing around me, and the second defense in a month just popped.)

edit:for PCS identification, maybe take a look at this reddit> https://redd.it/6ab55v

Post Reply