- How to Enable & Use the Console in XCOM 2
- How to Enable the XCOM 2 Console
- Steam
- Non-Steam Versions
- How to Use the XCOM 2 Console
- XCOM 2 Cheats
- GiveResource Command
- AddItem Command
- GiveHackReward Command
- GiveActionPoints Command
- GiveScientist Command
- GiveEngineer Command
- GiveTech Command
- GiveFacility Command
- SetSoldierStat Command
- MakeSoldierAClass Command
- RemoveFortressDoom Command
- ForceCompleteObjective Command
- endbattle Command
- BondSoldiers Command
- SkipAI Command
- PowerUp Command
- TakeNoDamage Command
- ToggleUnlimitedActions Command
- ForceCritHits Command
- GiveContinentBonus Command
- ToggleUnlimitedAmmo Command
- ToggleFOW Command
- ToggleSquadConcealment Command
- TTC Command
- TATC Command
- LevelUpBarracks Command
- HealAllSoldiers Command
- GiveFactionSoldiers Command
- GiveAbilityCharges Command
- RestartLevel Command
- RestartLevelWithSameSeed Command
- pause Command
- sloMo Command
- screenshot Command
- listtextures Command
- listsounds Command
- ToggleRain Command
- ChangeList Command
How to Enable & Use the Console in XCOM 2
Command the console!
XCOM 2 is an awesome game, but sometimes things can bug out, or gameplay can get boring. The console is a great way to fix these problems, regardless of whether you need to literally fix something, or if you want to spice up gameplay, or skip past a certain mission or point in the game.
This guide will take you through the basics of the console in XCOM 2. Use the links below to jump to a particular point in the guide:
How to Enable the XCOM 2 Console
The console is enabled via the -allowconsole launch option. The way launch options are added depends on whether you’re playing the game through Steam or not.
Steam
If you’re playing XCOM 2 on Steam, the process to enable the console is relatively simple. First, open up Steam and go to your «Library» (top left, next to «Store»). Then, right click XCOM 2 and select «Properties», as illustrated below:
After opening up the Properties Window, click «Set Launch Options. «, and enter the following into the box:
After typing that into the launch options box, hit OK. Below is an image of what the launch options box should look like:
After adding the launch option, the console is enabled. See How to Use the XCOM 2 Console below for help opening and using it after loading up the game.
You can optionally add -log (for a log window to open with the game) or -autodebug (to enable debug options for the game as well).
Non-Steam Versions
Enabling the XCOM 2 console on non-Steam versions of the game is just as easy as doing it through Steam. First, you’ll want to navigate to the location you installed the game to, which is probably at C:\Program Files\XCOM 2 or C:\Program Files (x86)\XCOM 2 , then head to the following folder:
When in that folder, right click ModLauncherWPF.exe (it may display as just «ModLauncherWPF») and create a shortcut, see the below picture for help:
After creating the shortcut, right click the shortcut (not the original file) and click «Properties». In the properties menu add -allowconsole to the end of the target text box (with a space before), as is displayed in the below image:
After doing that, hit «Apply», and close out of the properties window. Then launching XCOM 2 from the newly created shortcut will launch the game with the console enabled.
If you have a shortcut on your desktop, or another location, you can instead add the launch option in the target field to that shortcut, and then the game will have the console enabled when you open it from that shortcut.
How to Use the XCOM 2 Console
The console in XCOM 2 can be opened by pressing one of the following keys on your keyboard (depends on keyboard layout):
(tilde)
You can close the console by pressing ESC , or the same key you opened it with.
Using the console is pretty simple, simply type a console command into the console and hit ENTER to send it.
Sometimes commands require arguments, these are extra words or numbers you add to a command to tell it what to do. All arguments are separated by spaces. An example of a command with an argument is the giveactionpoints [amount] command. In this command [amount] is an argument — it tells the command how many action points to add. If you were to replace [amount] with 5, the command would be giveactionpoints 5 — this would add 5 action points.
If you’re looking for commands to use with the console, check out our comprehensive list of all commands in the game by clicking the button below:
That’s all there is to enabling and using the console in XCOM 2. If you have any questions, feel free to reach out to us on Twitter @ConsoleCMDs.
Источник
XCOM 2 Cheats
Below is a list of all XCOM 2 console commands from the latest version of the game. These XCOM 2 cheat codes work with the console for all PC / Mac versions of the game including the Steam and non-Steam versions. Commands from all official DLCs (such as War of the Chosen) are also included.
The console in XCOM 2 can be enabled by adding -allowconsole to your game’s launch options. You can then open it from the game by pressing the
, ‘ , or \ key on your keyboard (the key that will work depends on your keyboard layout). If you don’t know how to enable the console, or need help using it, click the below button:
In the below list of XCOM 2 cheats, some commands are marked with Avenger and Mission tags. These commands will likely only work when you are in a mission or in the Avenger (respective to the tag they are given). If you use a Mission command when in the Avenger, the game may not recognize the command (and vice versa).
Addtionally, some commands are from DLCs, and will only work if you have the required DLC installed. For example, the BondSoliders command is tagged with War of the Chosen — it will only work if you have WOTC installed.
Clicking the «Table View» and «Card View» buttons will change the way commands are displayed on your screen, some users find specific formats easier to use. More help and information including IDs and working command examples can be found on each command’s page. You can visit a command’s page by clicking on its name in the Table or Card View.
Type the name of an XCOM 2 command into the search box below to instantly search all 38 commands stored and documented in our database.
Name | Syntax | Description |
---|---|---|
GiveResource | giveresource [resource id] [amount] | This console command will give you the resource with the specified ID. You can also specify an amount of the resource you wish to add — e.g. 100. You must have at least one of the resource you wish to add in order for this to work. Use the additem command to add a resource if you don’t already have one. Avenger |
AddItem | additem [item id] [amount] | This console command will give you the item with the specified ID. You can optionally specify an amount of the item that you wish to add. See IDs at commands.gg/xcom2/additem. Avenger |
GiveHackReward | givehackreward [hack reward id] | This console command will give you the hack reward with the specified ID. See IDs at commands.gg/xcom2/givehackreward. Mission |
GiveActionPoints | giveactionpoints [amount] | This console command will give the unit that you currently have selected the specified amount of action points. Mission |
GiveScientist | givescientist [level] | This console command will give you a scientist of the specified level. Note that you can only have one scientist at once, so this will replace your existing scientist. Avenger |
GiveEngineer | giveengineer [level] | This console command will give you an engineer of the specified level. Note that you can only have one engineer at once, so this will replace any existing engineer that you have. Avenger |
GiveTech | givetech [tech id] | This console command will research the technology with the specified ID. See all technology IDs at commands.gg/xcom2/givetech. Avenger |
GiveFacility | givefacility [facility id] [avenger/map index] | This console command will give you the facility with the specified ID at the specified position. See commands.gg/xcom2/givefacility for facility IDs and position IDs (3-14). If there is an existing facility, debris, or ongoing construction at the position you specify, This console command will not do anything. The game may not update instantly after using This console command — switching screens (e.g. going into the Geoscape and back) will apply changes. Avenger |
SetSoldierStat | setsoldierstat [stat id] [value] [soldier name] [0 / 1] | This console command will set the stat of the specified solider to the specified value. See commands.gg/xcom2/setsoldierstat for stat IDs. If you are using the WOTC DLC, you will also need to specify the 0/1 argument at the end of the command. Avenger |
MakeSoldierAClass | makesoldieraclass [«soldier name»] [class id] | This console command sets the class of the soldier with the specified name. Note that this will demote your soldier to squaddie rank, and that you should make a save before using This console command, as some classes can break your game. See class IDs at commands.gg/xcom2/makesoldieraclass. Avenger |
RemoveFortressDoom | removefortressdoom [amount] | This console command removes the specified amount of doom from the Avatar Project. Avenger |
ForceCompleteObjective | forcecompleteobjective [objective id] | This command will complete the specified objective for your current mission. See commands.gg/xcom2/forcecompleteobjective for objective IDs. Complete all of your mission objectives with this command before using the endbattle command to win your current mission. Mission |
endbattle | endbattle [0 / 1] | This command will end your current mission. If all objectives are completed, you will win the mission, otherwise you will fail. Complete all mission objectives with the ForceCompleteObjective command before using this to win your mission. |
BondSoldiers | bondsoldiers [«soldier name»] [«soldier name»] [true / false] | This console command bonds (true), or unbonds (false), the two specified soldiers. Avenger War of the Chosen |
SkipAI | skipai | This console command makes the AI skip a turn (i.e. this will end the AIs turn and make it your turn). Mission |
PowerUp | powerup | This console command enables and disables (toggles) god mode for all of your squad (not AI). When in god mode, your squad will not have to reload, and will not take any damage (unlimited health). Mission |
TakeNoDamage | takenodamage | This console command enables and disables (toggles) invincibility for all of your soliders. Mission |
ToggleUnlimitedActions | toggleunlimitedactions | This console command enables and disables (toggles) unlimited action points for both you and the AI (well, APs will not be used up). Note that if you use this on the AIs turn, the AI will not run out of action points. Mission |
ForceCritHits | forcecrithits | This console command enables and disables (toggles) 100% chance for both your squad and the AI to hit critical hits — i.e. with this enabled, every hit will be a critical hit. Mission |
GiveContinentBonus | givecontinentbonus [continent bonus id] | This console command will give you the specified continent bonus. See continent bonus IDs at commands.gg/xcom2/givecontinentbonus. Avenger |
ToggleUnlimitedAmmo | toggleunlimitedammo | This console command enables and disables (toggles) unlimited ammunition for both your squad and the AI. Turn on at the start of your turn, and off at the end, to avoid giving the AI unlimited ammo. Mission |
ToggleFOW | togglefow | This console command enables and disables (toggles) Fog of War (FoW). Fog of War is the fog that covers the map in out-of-reach places. Mission |
ToggleSquadConcealment | togglesquadconcealment | This console command enables and disables (toggles) the concealment of your squad. Aliens that are already aware of any solider(s) location, will remain aware regardless of whether this is on or off. Mission |
TTC | ttc | This console command will teleport the unit that you currently have selected to the location in the game that your mouse cursor is over. Mission |
TATC | tatc | This console command will teleport all units to the location in the map that your mouse cursor is over. Mission |
LevelUpBarracks | levelupbarracks [amount] | This console command will level up all soldiers in your barracks by the specified amount of levels. Avenger |
HealAllSoldiers | healallsoldiers | This command heals all soldiers currently in your barracks to full HP. Avenger |
GiveFactionSoldiers | givefactionsoldiers | This console command will give you a soldier from each Faction in the War of the Chosen. The three Factions are Reaper, Skirmisher, and Templar. Avenger War of the Chosen |
GiveAbilityCharges | giveabilitycharges | NOTE: This command has been reported as «buggy» — make sure you save your game before using it. This command should add 100 charges to all of your abilities, excluding class abilities. |
RestartLevel | restartlevel | This command will restart your current mission. Mission |
RestartLevelWithSameSeed | restartlevelwithsameseed | This console command will restart your current mission with the same seed that it was generated with. This means all of the random aspects of the game (e.g. spawn locations) will be the exact same as they were when you first started. Mission |
pause | pause | This command will toggle the pause state for the game (i.e. if paused, it will unpause, if not paused, it will pause). |
sloMo | slomo [multiplier] | This command will fast forward or slow down the game — i.e. it will change the speed the game runs at. A multiplier of 2 would make everything in the game be twice as fast, a multiplier of 0.5 would make the game run in slowmotion, half as fast as it usually would. |
screenshot | screenshot | This command will take a screenshot of your game and save it to Documents\my games\XCOM2\XComGame\Screenshots\PCConsole. |
listtextures | listtextures | This command lists all texture files that are currently loaded by the game. |
listsounds | listsounds | This command lists all sound files that are currently loaded by the game. |
ToggleRain | togglerain | This command will enable or disable (toggle) rain. Mission |
ChangeList | changelist | This command will print to the console log a list of the most recent changes in the game. |
GiveResource Command
giveresource [resource id] [amount] Avenger
This console command will give you the resource with the specified ID. You can also specify an amount of the resource you wish to add — e.g. 100. You must have at least one of the resource you wish to add in order for this to work. Use the additem command to add a resource if you don’t already have one.
Resource ID | The ID of the resource you wish to add. |
Amount | The amount of the resource you wish to add. |
More Help
AddItem Command
additem [item id] [amount] Avenger
This console command will give you the item with the specified ID. You can optionally specify an amount of the item that you wish to add. See IDs at commands.gg/xcom2/additem.
Item ID | The item ID of the item you wish to add. |
Amount | The amount of the item that you wish to give yourself. |
More Help
GiveHackReward Command
givehackreward [hack reward id] Mission
This console command will give you the hack reward with the specified ID. See IDs at commands.gg/xcom2/givehackreward.
Hack Reward ID | The ID of the hack reward you wish to give yourself. |
More Help
GiveActionPoints Command
giveactionpoints [amount] Mission
This console command will give the unit that you currently have selected the specified amount of action points.
Amount | The amount of action points you wish to add to your currently selected unit. |
More Help
GiveScientist Command
givescientist [level] Avenger
This console command will give you a scientist of the specified level. Note that you can only have one scientist at once, so this will replace your existing scientist.
Level | The level of the scientist you wish to spawn. A number between 1 and 100. |
More Help
GiveEngineer Command
giveengineer [level] Avenger
This console command will give you an engineer of the specified level. Note that you can only have one engineer at once, so this will replace any existing engineer that you have.
Level | The level of the engineer you wish to spawn. A number between 1 and 100. |
More Help
GiveTech Command
givetech [tech id] Avenger
This console command will research the technology with the specified ID. See all technology IDs at commands.gg/xcom2/givetech.
Tech ID | The ID of the technology you wish to research. |
More Help
GiveFacility Command
givefacility [facility id] [avenger/map index] Avenger
This console command will give you the facility with the specified ID at the specified position. See commands.gg/xcom2/givefacility for facility IDs and position IDs (3-14). If there is an existing facility, debris, or ongoing construction at the position you specify, This console command will not do anything. The game may not update instantly after using This console command — switching screens (e.g. going into the Geoscape and back) will apply changes.
Facility ID | The ID of the facility you wish to create. | ||||||||||||
Avenger/Map Index | The index to place the facility at. Avenger indexes:
|
More Help
SetSoldierStat Command
setsoldierstat [stat id] [value] [soldier name] [0 / 1] Avenger
This console command will set the stat of the specified solider to the specified value. See commands.gg/xcom2/setsoldierstat for stat IDs. If you are using the WOTC DLC, you will also need to specify the 0/1 argument at the end of the command.
Stat ID | The ID of the soldier’s stat you wish to change the value of. |
Value | The value you wish to set the stat to. |
Soldier Name | The name of the soldier that you wish to set the stat of. If this command isn’t working, try putting the name in quotation marks — e.g. «Caleb Murray», not just Caleb Murray. |
0 / 1 | Only required if you are playing with the WOTC DLC. Specify ‘1’ (without quotes) here to change the soldier’s base stat. Specify ‘0’ (without quotes here) to not change the soldier’s base stat. |
More Help
MakeSoldierAClass Command
makesoldieraclass [«soldier name»] [class id] Avenger
This console command sets the class of the soldier with the specified name. Note that this will demote your soldier to squaddie rank, and that you should make a save before using This console command, as some classes can break your game. See class IDs at commands.gg/xcom2/makesoldieraclass.
«Soldier Name» | The name of the solider you wish to change the specialist class of, in quotation marks. |
Class ID | The class ID of the class you wish to make the soldier. |
More Help
RemoveFortressDoom Command
removefortressdoom [amount] Avenger
This console command removes the specified amount of doom from the Avatar Project.
Amount | The amount of doom you wish to remove from the Avatar Project. |
More Help
ForceCompleteObjective Command
forcecompleteobjective [objective id] Mission
This command will complete the specified objective for your current mission. See commands.gg/xcom2/forcecompleteobjective for objective IDs. Complete all of your mission objectives with this command before using the endbattle command to win your current mission.
Objective ID | The ID of the objective you wish to complete. |
More Help
endbattle Command
This command will end your current mission. If all objectives are completed, you will win the mission, otherwise you will fail. Complete all mission objectives with the ForceCompleteObjective command before using this to win your mission.
0 / 1 | Specify ‘1’ here (without quotes) to end the battle with a win, if all objectives are completed. Specify ‘0’ (without quotes) to end, and not win the battle. |
More Help
BondSoldiers Command
bondsoldiers [«soldier name»] [«soldier name»] [true / false] Avenger War of the Chosen
This console command bonds (true), or unbonds (false), the two specified soldiers.
«Soldier Name» | The name of the first soldier you wish to bond, in quotation marks. |
«Soldier Name» | The name of the second soldier you wish to bind, in quotation marks. |
True / False | Specify ‘true’ (without quotes) here, to bond the soldiers. Specify ‘false’ (without quotes) here to unbond the soldiers. |
More Help
SkipAI Command
This console command makes the AI skip a turn (i.e. this will end the AIs turn and make it your turn).
PowerUp Command
This console command enables and disables (toggles) god mode for all of your squad (not AI). When in god mode, your squad will not have to reload, and will not take any damage (unlimited health).
TakeNoDamage Command
This console command enables and disables (toggles) invincibility for all of your soliders.
ToggleUnlimitedActions Command
This console command enables and disables (toggles) unlimited action points for both you and the AI (well, APs will not be used up). Note that if you use this on the AIs turn, the AI will not run out of action points.
ForceCritHits Command
This console command enables and disables (toggles) 100% chance for both your squad and the AI to hit critical hits — i.e. with this enabled, every hit will be a critical hit.
GiveContinentBonus Command
givecontinentbonus [continent bonus id] Avenger
This console command will give you the specified continent bonus. See continent bonus IDs at commands.gg/xcom2/givecontinentbonus.
Continent Bonus ID | The ID of the continent bonus that you wish to give yourself. |
More Help
ToggleUnlimitedAmmo Command
This console command enables and disables (toggles) unlimited ammunition for both your squad and the AI. Turn on at the start of your turn, and off at the end, to avoid giving the AI unlimited ammo.
ToggleFOW Command
This console command enables and disables (toggles) Fog of War (FoW). Fog of War is the fog that covers the map in out-of-reach places.
ToggleSquadConcealment Command
This console command enables and disables (toggles) the concealment of your squad. Aliens that are already aware of any solider(s) location, will remain aware regardless of whether this is on or off.
TTC Command
This console command will teleport the unit that you currently have selected to the location in the game that your mouse cursor is over.
TATC Command
This console command will teleport all units to the location in the map that your mouse cursor is over.
LevelUpBarracks Command
levelupbarracks [amount] Avenger
This console command will level up all soldiers in your barracks by the specified amount of levels.
Amount | The amount of levels you wish to level all soldiers in your barracks up by. |
More Help
HealAllSoldiers Command
This command heals all soldiers currently in your barracks to full HP.
GiveFactionSoldiers Command
givefactionsoldiers Avenger War of the Chosen
This console command will give you a soldier from each Faction in the War of the Chosen. The three Factions are Reaper, Skirmisher, and Templar.
GiveAbilityCharges Command
NOTE: This command has been reported as «buggy» — make sure you save your game before using it. This command should add 100 charges to all of your abilities, excluding class abilities.
RestartLevel Command
This command will restart your current mission.
RestartLevelWithSameSeed Command
This console command will restart your current mission with the same seed that it was generated with. This means all of the random aspects of the game (e.g. spawn locations) will be the exact same as they were when you first started.
pause Command
This command will toggle the pause state for the game (i.e. if paused, it will unpause, if not paused, it will pause).
sloMo Command
This command will fast forward or slow down the game — i.e. it will change the speed the game runs at. A multiplier of 2 would make everything in the game be twice as fast, a multiplier of 0.5 would make the game run in slowmotion, half as fast as it usually would.
Multiplier | Your desired multiplier to multiply the game speed by. 2 would make the game run 2x as fast, 0.25 would make the game run 25% (1/4) as fast (slow motion, 4 times as slow). |
More Help
screenshot Command
This command will take a screenshot of your game and save it to Documents\my games\XCOM2\XComGame\Screenshots\PCConsole.
listtextures Command
This command lists all texture files that are currently loaded by the game.
listsounds Command
This command lists all sound files that are currently loaded by the game.
ToggleRain Command
This command will enable or disable (toggle) rain.
ChangeList Command
This command will print to the console log a list of the most recent changes in the game.
Источник