Console (video game CLI)

From Wikipedia, the free encyclopedia

The console in a Source engine game, NightFall (a mod for Half-Life 2).
The console in a Source engine game, NightFall (a mod for Half-Life 2).

A console is a command line interface where the personal computer game's settings and variables can be edited while the game is running. Consoles also usually display a log of warnings, errors, and other messages produced during the program's execution. Typically it can be toggled on or off and appears over the normal game view.

The console is normally accessed by pressing the backtick key ` (frequently also called the ~ key; normally located below the ESC key) on QWERTY keyboards or the ² on AZERTY keyboards, and is usually hidden by default. In most cases it cannot be accessed unless enabled by either specifying a command line argument when launching the game or by changing one of the game's configuration files.

[edit] History

A classic console is a box that scrolls down from the top of the screen, and is found in most computer games. This style was made popular with Quake (1996). There are other forms of console:

  • Quake III Arena has one or two consoles, depending on the platform the game was released for. The first is the internal console, which exists on all platforms. The second is an external console, created via the Windows API. The console printing function directs to both, likewise, both consoles can also have text input to them. The external console is used for dedicated servers and to log startup of the engine. Finally, the external console is also used to show errors and display debugging output should the game crash.
  • Dark Engine's console shows output up to 4 lines in length and is accessed by pressing 3 particular keys at the same time.
  • Lithtech's console has no output and is used mainly for entering cheat codes.
  • The Source engine's console is a window all by itself.

[edit] Common commands

  • sv_cheats 1: Used to activate cheats in Quake engine or Source engine based games.
  • god: Used to toggle God mode.
  • noclip or ghost: Used to toggle Noclip mode.
  • fly: Similar to Noclip mode, the player is only constrained to the walls and boundaries of the map.
  • impulse 101: Used to spawn all items in a game at the player's exact position for a moment to give the player every item.
  • addbots (number): When AI bots are available, this will add a number of bots equal to the number inputted by the player.
  • allammo: Gives the player maximum ammo.
  • kill or suicide: Causes the player to die, used when a player gets stuck during a game.
  • give: When used with the name of an entity, spawns that entity at the players location.
Languages