Console Commands Xcom Enemy Within |verified|
In XCOM: Enemy Within , enabling the developer console requires more than just a single key press, as the expansion removed the original shell access found in the base game. You must either manually bind commands to specific keys or use a third-party mod to restore the full command line. Method 1: Manual Key Bindings (No Mods)
This is the most common way to "use" commands without altering core game files.
Locate the Config File: Navigate to your installation folder:...\Steam\steamapps\common\XCom-Enemy-Unknown\XEW\XComGame\Config\.
Edit DefaultInput.ini: Open the file in a text editor (e.g., Notepad).
Add Bindings: Find the relevant section and paste your desired command. For Base/Strategy Screen: Find [Engine.PlayerInput].
For Tactical/Mission Screen: Find [XComGame.XComTacticalInput].
Example Syntax: .Bindings=(Name="F10", Command="GiveResource Money 5000"). Essential Console Commands
If you have the Developer Console mod (often found via Nexus Mods) installed, you can hit the tilde key (~ or \) to type these directly. Keybind commands - Enemy Unknown - Nexus Mods Forums
Enabling console commands in XCOM: Enemy Within (EW) is different from the base game because the standard developer console is hidden. To use cheats, you must either bind commands to specific keys in the configuration files or use a mod like Activate Dev Console from Nexus Mods. How to Enable via Keybindings
This method allows you to use specific commands without installing external mods. Locate the File : Go to your installation directory, typically:
...\Steam\steamapps\common\XCom-Enemy-Unknown\XEW\XComGame\Config\ DefaultInput.ini : Open this file with a text editor (like Notepad). Add Your Binds
: Scroll to the section corresponding to when you want the command to work: Base/Strategy Commands : Look for [Engine.PlayerInput] Tactical/Combat Commands : Look for [XComGame.XComTacticalInput] : Add lines at the bottom of the section. Use to prevent accidental triggers. .Bindings=(Name="U", Command="restartlevel", Alt=True) Common Console Commands
Once bound to a key, these commands can be triggered in-game. Steam Community Keybind commands - Enemy Unknown - Nexus Mods Forums
Console commands in XCOM: Enemy Within (EW) are primarily used for debugging, resolving stuck missions, or bypassing resource management. Unlike many modern games, the developer console in EW is not enabled by default and requires modifying game files or using community mods to activate. Steam Community How to Enable the Console console commands xcom enemy within
Because standard methods like launch arguments often fail for the Enemy Within expansion, players typically use one of two methods: Keybinding Method (Manual) : You can bind specific commands to keys by editing the DefaultInput.ini file located in your game's installation folder (typically XEW/XcomGame/Config ). Use the syntax: .Bindings=(Name="Key", Command="CommandName", Alt=True) Dev Console Mod (Automated) : Many players use the PatcherGUI
tool from Nexus Mods to apply a "Dev Console" patch, which re-enables the tilde (~) or backslash (\) key functionality. Steam Community Useful Tactical Commands (Battlescape)
These commands are used during a mission to influence combat or the map: Dev Console (Long War) - UFOpaedia
To use console commands in XCOM: Enemy Within , you must first enable the developer console, as it is disabled by default. Unlike later titles, enabling it usually requires either manual configuration file editing or a small mod. How to Enable the Console
There are two primary ways to access commands in Enemy Within: Console Commands on Enemy Within - Steam Community
Mastering XCOM: Enemy Within console commands can transform a grueling campaign into a sandbox of tactical possibilities. Whether you're stuck on a buggy mission, looking to experiment with late-game gear early, or simply want to bypass the resource grind, this guide covers everything from enabling the console to the most powerful commands available. How to Enable the Console in XCOM: Enemy Within
Unlike its sequel, XCOM: Enemy Within does not have a simple "enable console" toggle in the menus. There are two primary ways to gain access: Method 1: The Config Bind (Simplest)
This method allows you to bind specific commands to keys without needing external mods.
Locate your DefaultInput.ini file. It is typically found at:...\Steam\steamapps\common\XCom-Enemy-Unknown\XEW\XcomGame\Config
Open the file and find the headers [XComGame.XComTacticalInput] (for battle commands) or [Engine.PlayerInput] (for base management).
Add your desired bind. For example, to bind a mission restart to Alt+U, paste:.Bindings=(Name="U", Command="restartlevel", Alt=True) Method 2: The Dev Console Mod
To use a real-time typing console (typically opened with the backslash (\) or tilde (~) key), many players download a modified Engine.upk file from sources like Nexus Mods. This is the standard for the Long War mod and provides the most flexibility. Essential Tactical Console Commands
These commands are used during active missions (the "Battlescape"). In XCOM: Enemy Within , enabling the developer
restartlevel: Restarts the current mission from the beginning, useful for fixing broken triggers or undoing a disastrous turn.
GivePerk [ID]: Grants a specific ability to the currently selected soldier. For example, GivePerk 117 might grant "Low Profile." Use a negative sign (e.g., GivePerk -117) to remove it.
GivePsiPerks: Instantly grants all psionic abilities to the selected soldier. TakeNoDamage: Makes all units on your squad invincible.
ToggleFOW: Toggles the "Fog of War," revealing the entire map and all enemy locations. PowerUp: Combines invincibility with unlimited ammunition. Essential Strategy Console Commands
These commands are used while at XCOM HQ (the "Geoscape") to manage your resources and base. Console Commands on Enemy Within - Steam Community
Here’s a short, informative piece tailored for a gaming guide or blog. It covers the essentials for using console commands in XCOM: Enemy Within.
Enhancing Gameplay
Console commands in XCOM: Enemy Within can significantly enhance your gameplay experience in several ways:
-
Customizing Difficulty on the Fly: Want to adjust the game's difficulty mid-mission? With console commands, you can increase or decrease the challenge to keep things interesting or to test strategies under different conditions.
-
Manipulating Soldier Stats: Need a soldier to have a bit more oomph? Console commands allow you to tweak health, armor, and skill levels, effectively creating super-soldiers or experimenting with builds that are normally out of reach.
-
Controlling Enemy Waves: Tired of the same old enemy patterns? You can use commands to adjust the types of enemies that spawn, their numbers, and their aggression levels, providing an almost endless variety of tactical challenges.
Step 3: Add the Console Binding
Scroll all the way to the bottom of the file. On a new line, paste the following:
Bindings=(Name="Tilde", Command="Open console")
It should look exactly like this. Save the file and close it. Enhancing Gameplay Console commands in XCOM: Enemy Within
Categories of useful commands
- Debug / Diagnostic: Show internal state, spawn units, move camera.
- Cheats / Gameplay modifiers: Give resources, XP, or items; alter mission outcomes.
- Configuration / Tuning: Change game variables, override AI, or adjust difficulty parameters.
- Scripting / Level editing: Run UnrealScript commands or call functions for mission scripting.
1. How to Enable the Console
Before you can use any features, you must enable the developer console.
The Default Method (Steam/GOG):
- Navigate to your game installation folder (e.g.,
...\Steam\steamapps\common\XCom-Enemy-Unknown\XEW\Binaries\Win32). - Open the file
DefaultInput.iniwith a text editor like Notepad. - Search for the section
[Engine.PlayerInput]. - Add the following line under that section:
m_pcEnableConsoleKey=Tab(or Tilde~depending on your keyboard layout). - Save the file. Note: You may need to set the file to "Read Only" in properties to prevent the game from overwriting your changes on launch.
Once enabled, press the Tab or Tilde (~) key while in-game (or in the main menu) to bring down the console input field.
Example use cases
- Rapid testing of missions: spawn enemies and items, teleport camera, toggle AI to observe behavior.
- Balance tweaking: change variables in-game to test difficulty scaling.
- Save recovery: spawn replacement soldier or assets if save corruption occurs.
- Mod development: test custom classes and scripts without recompiling.
Soldiers & Rank
| Command | Effect |
|--------|--------|
| GiveSoldierRank <firstname> <class> <rank> | Ranks up a specific soldier (class: Heavy, Assault, Sniper, Support) |
| LevelUpBarracks X | Levels up all soldiers in barracks by X ranks |
| GivePsiXP X | Gives psi XP to selected soldier (only works in tactical view) |
| RemoveUnit <soldier name> | Removes a soldier from barracks |
Conclusion: To Cheat or Not to Cheat?
Using console commands in XCOM: Enemy Within is a personal choice. For a first playthrough, avoid them. The fear of loss and the joy of scrapping by with a squad of wounded rookies is the core experience.
But for your second, third, or tenth playthrough? For testing squad compositions? For roleplaying a hyper-advanced military that actually has ammunition?
Embrace the console.
It turns XCOM from a strategy game into a sandbox. Build a squad of psychic, gene-modded, invisible super-soldiers. Give yourself unlimited Meld to turn everyone into a MEC Trooper. Or just fix that one stupid bug that cost you a 40-hour save file.
Now, Commander, the console is open. Type God, press Enter, and show the aliens what real firepower looks like.
Good luck.
Unlocking the Secrets of XCOM: Enemy Within with Console Commands
XCOM: Enemy Within, the critically acclaimed expansion to the original XCOM: Enemy Unknown, is a game that prides itself on its challenging gameplay and deep strategy. However, for those who crave more control over their gaming experience or wish to experiment with the game's mechanics, console commands offer a fascinating avenue. In this review, we'll explore the utility and excitement of using console commands in XCOM: Enemy Within, highlighting how they can enhance, or in some cases, completely transform your playthrough.