Difference between revisions of "XCOM developer shell"

From Nexus Mods Wiki
Jump to: navigation, search
(Added screenshot of start screen)
m
Line 36: Line 36:
 
[[Category:XCOM Modding]]
 
[[Category:XCOM Modding]]
 
[[Category:XCOM Developer Shell]]
 
[[Category:XCOM Developer Shell]]
 +
[[Category:Tutorials XCOM Modding]]

Revision as of 17:32, 17 March 2013

XCOM Developer Shell Initial Screen

Overview

The developer shell is a useful tool to quickly test mod changes or discover information. This article will focus on how you as a modder can take advantage of this.

How to Enable the Developer Shell

The easiest way to enable the shell is to use the ToolBoks mod.

Failing that, it is possible to directly modify the upk files and executable.

First Steps

Once the developer shell is enabled, ...

Console Commands

To enable the command line, use the '\' key. The command line features an auto-complete function. A list of possible auto-complete commands will be displayed above the command line. You can use the up/down arrow keys to scroll through the possibilities, then use the TAB key to complete the command. Some commands may require additional parameters to be entered.

This article will focus on the most immediately useful console commands. Here is a a complete list of commands.

  • Unlimited Moves
    The UnlimitedMoves command lets your character take an unlimited number of moves and actions during your turn.
    • Parameters
      None


  • Teleport Alien To Cursor
    The TeleportAlienToCursor command moves a designated alien to your current cursor position.
    This command is useful to placing aliens in or out of cover, or out of awkward to reach places.
    • Parameters
      XGUnit_## (for example, XGUnit_9 or XGUnit_12). Unit numbers for aliens can be determined using the AIDebugAI command.


  • Swap Teams On Nearest Unit
    The SwapTeamsOnNearestUnit command switches the team of the unit nearest to the cursor position when the command is executed.
    • Parameters
      None


  • Set HP
    The SetHP sets the HP (Health Points) of the currently selected target to the supplied value. To change HP of an alien, first switch its team using the SwapTeamsOnNearestUnit command.
    • Parameters
      Integer value. Values greater than the units maximum HP will set to the maximum HP.

References

XCOM Mod Talk Nexus Forum Discussion