Console: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
No edit summary
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
This reference contains information on useful console commands and variables that work with the Eternity console, as well as pointers on console command syntax.
This reference contains information on useful console commands and variables that work with the Eternity console, as well as pointers on console command syntax.
{{backto|Eternity Engine}}
{{editref}}
=Notes on Special Command Syntax=
=Notes on Special Command Syntax=
Commands which take parameters may accept numbers, strings, or members of a predefined set of values.  
Commands which take parameters may accept numbers, strings, or members of a predefined set of values.  
Line 33: Line 35:


An ellipsis (...) signifies that the command will accept any number of arguments and will amalgamate them into one continuous string.
An ellipsis (...) signifies that the command will accept any number of arguments and will amalgamate them into one continuous string.
=List of console commands=
=List of console commands=
:''See [[List of console commands]]''
:''See [[List of console commands]]''

Revision as of 07:32, 8 July 2019

This reference contains information on useful console commands and variables that work with the Eternity console, as well as pointers on console command syntax.

Back to Eternity Engine
  • This section incorporates text from the HTML Eternity documentation.

Notes on Special Command Syntax

Commands which take parameters may accept numbers, strings, or members of a predefined set of values.

 ex:
 $ delay 50
 $ spawn 249 1
 $ name Quasar
 $ hu_overlay distributed

If string arguments contain whitespace, they must be in quotations. Quotations around strings are otherwise optional.

 ex:
 $ echo "This has to be in quotes"
 $ i_error "R_FindVisplane: no more visplanes!"

Multiple commands can be run from one prompt by separating them with a semicolon.

 ex:
 $ delay; kill

Variables of type integer, named-value, on / off, and yes / no can be affected by the following operators:

  • +
Affixed to the end of the variable, it will increment it to the next valid value, but no higher than the maximum allowed.
   ex:
   $ screensize +
   
  • -
Affixed to the end of the variable, it will decrement it to the next lower valid value, but no lower than the minimum allowed.
   ex:
   $ screensize -
   
  • /
Toggles through the variable values from minimum to maximum, wrapping around to the minimum value again when it is maxed out. This is most useful with two-state yes/no and on/off variables.
   ex:
   $ hu_overlay /

Notes on Notation

In the list below, command arguments enclosed in brackets are optional. Commands typically have some default behavior when the arguments they expect are not provided, although this is often to simply print usage information.

An ellipsis (...) signifies that the command will accept any number of arguments and will amalgamate them into one continuous string.

List of console commands

See List of console commands

List of console variables

See List of console variables