This project has moved. For the latest updates, please go here.

Built-In Commands

Here is a complete reference for all built-in commands. Note that none of the built-in commands is secret (hidden) by default. Help is also available from within the console by using the help command, or help followed by a command to get detailed information on that command (if available).

bindings

Display all current key bindings
This command is disabled once the nobindings command has been entered.

bind

Bind a key to a command or function
bind <key> <commandtext/functionname>
Examples: bind ALT+G gc and bind CTRL+SHIFT+Q quit
Notes: key bindings only work when the console is hidden/closed.
This command is disabled once the nobindings command has been entered.

close

Close the command console.

consoleheight

Set the height of the console window in pixels
consoleheight <heightvalue>
Example: consoleheight 250

consolescale

Set the scale of the console window (1.0=100%, 0.75=75%, 0.5=50%, etc.)
consolescale<scale>
Example: consolescale 1.0

cvar

Add a new console variable (cvar), or modify an existing one
cvar <name> [Type] <value>
Example: cvar myVar MyValue and cvar myInt Int32 42
Notes: type handling with cvars is a little tricky. See the Working with Console Variables page for more detailed information.

cvars

View the available console variables (cvars)

clear

Clears the console log (screen)

exec

Execute contents of a file as commands in this console
exec <filepath>

exfunc

Load external function from an assembly
exfunc <assemblypath> <classname> <functionname>
Notes: you should specify a full path as the assemblypath, unless you are certain that a relative path can be reached. See the Using External Functions page for more details on ExFuncs.
This command is disabled once the nofunctions command has been entered.

exfuncs

Display all current external functions
This command is disabled once the noexfuncs command has been entered.

exportbindings

Export binding information to a file that can be EXEC-ed
exportbindings <filepath>
This command is disabled once the nobindings command has been entered.

exportexfuncs

Export the definition of all ExFuncs to a file that can be EXEC-ed
exportexfuncs <filepath>
This command is disabled once the noexfuncs command has been entered.

exportfunctions

Export the definition of all functions to a file that can be EXEC-ed
exportfunctions <filepath>
This command is disabled once the nofunctions command has been entered.

exportstate

Export the console's complete state information (height, scale, bindings, functions, ExFuncs, etc.) to a file that can be EXEC-ed, so that the state can be restored later (useful for debugging when you have to stop and restart your game)
exportstate <filepath>
This command will not output bindings, functions, or Exfuncs if the nobindings , nofunctions or noexfuncs command has been entered.

function

Create a new function
function <functionname> <line><line><...>
This command is disabled once the nofunctions command has been entered.

functions

Display all current functions
This command is disabled once the nofunctions command has been entered.

gc

Immediately perform full garbage collection

help

Show game console help, or help for a specific command
help [command]
Examples: help and help function

loglimit

Sets the console log (buffer) limit
loglimit <numlines>

memoryinfo

Display memory info

nobindings

Disable the ability to add/remove/export/view bindings
Note that in the current design of XNACC, once this has been entered, there is no way to undo it!

noexfuncs

Disable the ability to add/remove/export/view exfuncs
Note that in the current design of XNACC, once this has been entered, there is no way to undo it!

nofunctions

Disable the ability to add/remove/export/view functions
Note that in the current design of XNACC, once this has been entered, there is no way to undo it!

noshadowlog

Turns off shadowing of the log to an external file

quit

Immediately quit the game

resetbindings

Clear all key bindings
This command is disabled once the nobindings command has been entered.

resetexfuncs

Clear all external functions
This command is disabled once the noexfuncs command has been entered.

resetfunctions

Clear all functions
This command is disabled once the nofunctions command has been entered.

savelog

Save the console log to a file
savelog <filepath>

shadowlog

Shadows (copies) the interactive console log to an external file, optionally truncating the external file first
shadowlog <filepath> <true/false>

sleep

Pause execution of the command console for the specified number of milliseconds
sleep <durationms>

systeminfo

Display system info

unbind

Remove a previous key binding
unbind <key>
This command is disabled once the nobindings command has been entered.

Last edited Feb 22, 2012 at 1:38 AM by jtwine, version 10

Comments

No comments yet.