Console: Difference between revisions
From Eternity Wiki
Jump to navigationJump to search
m (Console commands moved to List of console commands: Article is a list.) |
(Streamlining and documentation for several commands.) |
||
Line 1: | Line 1: | ||
=Constants= | =Constants= | ||
==Console basics== | ==Console basics== | ||
These values are read-only; cannot be modified. | These values are read-only; cannot be modified. | ||
Line 10: | Line 11: | ||
*'''ver_name''' | *'''ver_name''' | ||
:Special name of the version. | :Special name of the version. | ||
*'''creator''' | |||
:Name of the current map's author if one was provided. | |||
==Game functions== | ==Game functions== | ||
*'''rngseed''' | *'''rngseed''' | ||
:Current value of the random seed. | |||
=Commands= | =Commands= | ||
==Console basics== | ==Console basics== | ||
*'''alias''' | *'''alias''' name "command" | ||
:Creates "name" as an alias of the command string. The command string must not contain the alias as a command. | |||
*'''cmdlist''' | *'''cmdlist''' | ||
*'''echo''' | :Lists all available console commands. | ||
: | *'''echo''' "string" ... | ||
*'''delay''' | :Repeats the concatenation of all string arguments as a console message. | ||
*'''delay''' tics | |||
:Causes console command interpretation to delay for the specified number of gametics (1/35 second). | |||
*'''flood''' | *'''flood''' | ||
:Floods the console with garbage. Debug command. | |||
*'''quote''' | *'''quote''' | ||
: | :Displays a random IRC quote. Known internally as "the most useful command." | ||
*'''dumplog''' | *'''dumplog''' filename | ||
*'''openlog''' | :Dumps the current contents of the console back buffer to the given file as plain text. | ||
*'''openlog''' filename | |||
:Begins interactive logging of all console messages to the given file as plain text. | |||
*'''closelog''' | *'''closelog''' | ||
*'''cvarhelp''' | :Closes any currently open log file created by the openlog command. | ||
*'''cvarhelp''' varname | |||
:Given a console variable name, this will display all possible values for that variable. | |||
*'''dir''' | |||
:Lists the contents of Eternity's directory. | |||
==Small Scripting (deprecated)== | ==Small Scripting (deprecated)== | ||
*'''sm_running''' | *'''sm_running''' | ||
*'''sm_execv''' | *'''sm_execv''' | ||
*'''sm_execi''' | *'''sm_execi''' | ||
==Netgame== | ==Netgame== | ||
*'''playerinfo''' | *'''playerinfo''' | ||
==EDF and ExtraData== | ==EDF and ExtraData== | ||
*'''e_dumpthings''' | *'''e_dumpthings''' | ||
*'''e_thingtype''' | :Displays all EDF thingtype mnemonics and numeric key information. | ||
*'''e_dumpmeta''' | *'''e_thingtype''' thingtypename | ||
:Displays extended information on a given EDF thingtype. | |||
*'''e_dumpmeta''' thingtypename | |||
:Displays all metatable fields and their values for the given EDF thingtype. | |||
*'''e_dumpitems''' | *'''e_dumpitems''' | ||
*'''e_playsound''' | :Displays all EDF thingtype mnemonics which belong to collectable items. | ||
*'''e_playsound''' soundname | |||
:Plays the given EDF sound definition from the console on a global sound channel. | |||
*'''e_listmapthings''' | *'''e_listmapthings''' | ||
*'''e_mapthing''' | :Dumps a list of all ExtraData mapthing definitions to the console. | ||
*'''e_mapthing''' number | |||
:Dumps extended information on the given ExtraData mapthing record to the console. | |||
*'''e_listlinedefs''' | *'''e_listlinedefs''' | ||
*'''e_linedef''' | :Dumps a list of all ExtraData linedef definitions to the console. | ||
==Key | *'''e_linedef''' number | ||
*'''bind''' | :Dumps extended information on the given ExtraData linedef record to the console. | ||
==Key bindings== | |||
*'''bind''' key "commandoraction" | |||
:Binds the command or action string in the third parameter to the named key. If given only a key name, this command will display the actions currently bound to that key. | |||
*'''listactions''' | *'''listactions''' | ||
:Lists all available built-in key actions. | |||
*'''listkeys''' | *'''listkeys''' | ||
*'''unbind''' | :Lists all available keys to which commands and actions may be bound. Includes mouse and gamepad buttons. | ||
*'''unbind''' key (class) | |||
:Given a key name, this command will unbind all actions from the given key. Given a key and a class number, only the action of that particular class will be unbound. Key action classes may be seen using the bind or bindings commands. | |||
*'''unbindall''' | *'''unbindall''' | ||
:Unbinds all dynamic key bindings. Use with extreme caution! | |||
*'''bindings''' | *'''bindings''' | ||
== | :Displays all dynamic key bindings. | ||
*'''i_error''' | |||
==Internal debug functions== | |||
*'''i_error''' "message" | |||
:Causes an internal error, for testing purposes only. The game will exit with the given message. | |||
*'''z_print''' | *'''z_print''' | ||
:Prints the contents of the zone heap to a heap.txt file in Eternity's working directory. | |||
*'''z_dumpcore''' | *'''z_dumpcore''' | ||
:Dumps the entire contents of the zone heap to a binary file. Disabled in the official build. | |||
==Game functions== | |||
*'''starttitle''' | *'''starttitle''' | ||
:Begins the demo screen loop from the titlescreen. | |||
*'''endgame''' | *'''endgame''' | ||
:Ends any current game and enters fullscreen console mode. | |||
*'''pause''' | *'''pause''' | ||
:Pauses the game. | |||
*'''quit''' | *'''quit''' | ||
:Causes Eternity to exit. A sound may be played first in Doom or Doom II. | |||
*'''animshot''' | *'''animshot''' | ||
*'''screenshot''' | *'''screenshot''' | ||
*'''playdemo''' | :Takes a screenshot in the currently selected format which will be placed in the base/shots folder. | ||
*'''playdemo''' lumpname | |||
:Plays the given demo. | |||
*'''stopdemo''' | *'''stopdemo''' | ||
*'''timedemo''' | :Stops any demo currently playing. | ||
*'''addfile''' | *'''timedemo''' lumpname | ||
:Plays the given demo for profiling purposes. | |||
*'''addfile''' wadfilename | |||
:Adds the given wad file at runtime. | |||
*'''listwads''' | *'''listwads''' | ||
:Lists all currently loaded wad files. | |||
*'''puke''' | *'''puke''' | ||
*'''enable_lightning''' | *'''enable_lightning''' | ||
:Turns on the global lightning/thunder engine otherwise only available via [[MapInfo]]. | |||
*'''thunder''' | *'''thunder''' | ||
== | :Causes a lightning strike to occur if the lightning/thunder engine is enabled on the current level. | ||
*defdmflags | |||
==Deathmatch flags== | |||
*'''defdmflags''' | |||
==Sound== | ==Sound== | ||
*s_playmusic | *'''s_playmusic''' musicname | ||
:Plays the given music. | |||
==Frag counter== | ==Frag counter== | ||
*frags | *frags | ||
==System== | ==System== | ||
*i_joystick | *i_joystick | ||
==Video== | ==Video== | ||
*i_default_videomode | *i_default_videomode | ||
==Cheating== | ==Cheating== | ||
*infammo | *'''infammo''' | ||
*noclip | :Enables infinite ammo. | ||
*god | *'''noclip''' | ||
*nuke | :Enables no-clipping mode. | ||
*'''god''' | |||
* | :Enables god mode. | ||
*'''nuke''' | |||
:Kills all monsters. | |||
*'''summon''' thingtypename (flags) (mode) | |||
:Summons an mobj in front of the player of the given EDF thingtype. [[BEX]] flags may be optionally specified as a second parameter and by default these flags will be added to the normal flags of the thingtype. If the words "set" or "remove" are provided as the optional third parameter, the listed flags will instead be set or removed to/from the thingtype respectively. | |||
*'''viles''' | |||
:Only available in DOOM II. Activates Arch-Vile mode. | |||
*'''give''' thingtype num | |||
:Gives the player "num" amount of a collectable item of the given EDF thingtype. The thingtype must be a collectable item or nothing will happen. If the player cannot collect the items, they will be removed immediately. | |||
*'''whistle''' thingtypename | |||
:Teleports a semi-random friend of the given EDF thingtype in front of the player, if there is a living friendly thing of that type anywhere on the map, and it can fit at the current location. | |||
*'''mdk''' | |||
:Fires an instant-kill tracer from the player. | |||
*'''mdkbomb''' | |||
:Fires 40 instant-kill tracers in a circle from the player. | |||
*'''banish''' | |||
:Fires a tracer which can remove objects from the game. | |||
*'''resurrect''' | |||
:Respawns the player at the point of death with all inventory intact, even in a single-player game. Any solid objects on top of the player will be telefragged. | |||
*'''spacejump''' | |||
:Causes player 1 to jump, and can be done repeatedly even in midair. This command is not available during netgames or while recording demos. | |||
==Menus== | ==Menus== | ||
*mn_clearmenus | *'''mn_dynamenu''' menuname | ||
*mn_prevmenu | :Starts the given dynamic menu. | ||
*'''mn_clearmenus''' | |||
*mn_newgame | :Clears any active menu and returns to the game. | ||
*mn_quit | *'''mn_prevmenu''' | ||
:Backs up one menu. If there is no previous menu, the menu system is exited. | |||
*'''mn_newgame''' | |||
:Stars the default New Game menu. | |||
*'''mn_quit''' | |||
:Asks the player if he/she wishes to quit the current game, if one is in progress. | |||
*mn_episode | *mn_episode | ||
*newgame | *newgame | ||
Line 134: | Line 218: | ||
*mn_old_options | *mn_old_options | ||
*mn_old_sound | *mn_old_sound | ||
*mn_selectwad | *mn_selectwad | ||
*mn_selectmusic | *mn_selectmusic | ||
*mn_selectflat | *mn_selectflat | ||
*mn_hnewgame | *mn_hnewgame | ||
*mn_hepis | *mn_hepis | ||
*help | *help | ||
*credits | *credits | ||
==Skins== | ==Skins== | ||
*listskins | *listskins | ||
=Variables= | =Variables= | ||
==Console basics== | ==Console basics== | ||
*'''c_height''' | *'''c_height''' | ||
Line 168: | Line 236: | ||
*'''c_speed''' | *'''c_speed''' | ||
:Console speed. | :Console speed. | ||
==Automap== | ==Automap== | ||
*am_drawnodelines | *am_drawnodelines | ||
Line 193: | Line 262: | ||
*mapcolor_prtl | *mapcolor_prtl | ||
*mapcolor_overlay | *mapcolor_overlay | ||
==Game functions== | ==Game functions== | ||
*'''draw_particles''' | *'''draw_particles''' | ||
Line 235: | Line 305: | ||
*wipewait | *wipewait | ||
*wipetype | *wipetype | ||
*show_scores | *show_scores | ||
*use_startmap | |||
==Heads-up display== | ==Heads-up display== | ||
*hu_overlay | *hu_overlay | ||
Line 256: | Line 327: | ||
*hu_levelnamecolor | *hu_levelnamecolor | ||
*hu_coordscolor | *hu_coordscolor | ||
==Sound== | ==Sound== | ||
*snd_card | *snd_card | ||
Line 268: | Line 340: | ||
*music_volume | *music_volume | ||
*s_flippan | *s_flippan | ||
==System== | ==System== | ||
*i_gamespeed | *i_gamespeed | ||
Line 274: | Line 347: | ||
*i_showendoom | *i_showendoom | ||
*i_endoomdelay | *i_endoomdelay | ||
*i_grabmouse | |||
* | *i_videomode | ||
* | |||
*i_usemouse | *i_usemouse | ||
*i_usejoystick | *i_usejoystick | ||
*joysens_x | *joysens_x | ||
*joysens_y | *joysens_y | ||
* | |||
* | ==Video== | ||
*v_diskicon | |||
*v_retrace | |||
*v_ticker | *v_ticker | ||
==Menus== | ==Menus== | ||
*mn_toggleisback | *mn_toggleisback | ||
*mn_background | *mn_background | ||
*mn_start_mapname | *mn_start_mapname | ||
*mn_demoname | *mn_demoname | ||
*mn_wadname | *mn_wadname | ||
Line 295: | Line 369: | ||
*use_traditional_menu | *use_traditional_menu | ||
*mn_classic_menus | *mn_classic_menus | ||
*wad_directory | *wad_directory | ||
== | |||
==Cameras== | |||
*chasecam | *chasecam | ||
*chasecam_height | *chasecam_height | ||
Line 303: | Line 377: | ||
*chasecam_speed | *chasecam_speed | ||
*walkcam | *walkcam | ||
==Rendering== | ==Rendering== | ||
*r_fov | *r_fov | ||
Line 325: | Line 400: | ||
*r_vissprite | *r_vissprite | ||
*r_tlstyle | *r_tlstyle | ||
==Status bar== | ==Status bar== | ||
*ammo_red | *ammo_red | ||
Line 337: | Line 413: | ||
*st_rednum | *st_rednum | ||
*st_singlekey | *st_singlekey | ||
=Network commands= | =Network commands= | ||
*'''exitlevel''' | *'''exitlevel''' | ||
*'''kill''' | *'''kill''' | ||
*'''map''' | *'''map''' | ||
*'''say''' | |||
*say | |||
=Network variables= | =Network variables= | ||
==Game functions== | ==Game functions== | ||
*'''bobbing''' | *'''bobbing''' | ||
Line 373: | Line 451: | ||
*mon_helpfriends | *mon_helpfriends | ||
*mon_distfriend | *mon_distfriend | ||
==Skins== | ==Skins== | ||
*skin | *skin | ||
== | |||
==Deathmatch flags== | |||
*dmflags | *dmflags |
Revision as of 16:41, 18 February 2010
Constants
Console basics
These values are read-only; cannot be modified.
- version
- Version of the running Eternity build.
- ver_date
- Release date of Eternity.
- ver_time
- Release time of day of Eternity.
- ver_name
- Special name of the version.
- creator
- Name of the current map's author if one was provided.
Game functions
- rngseed
- Current value of the random seed.
Commands
Console basics
- alias name "command"
- Creates "name" as an alias of the command string. The command string must not contain the alias as a command.
- cmdlist
- Lists all available console commands.
- echo "string" ...
- Repeats the concatenation of all string arguments as a console message.
- delay tics
- Causes console command interpretation to delay for the specified number of gametics (1/35 second).
- flood
- Floods the console with garbage. Debug command.
- quote
- Displays a random IRC quote. Known internally as "the most useful command."
- dumplog filename
- Dumps the current contents of the console back buffer to the given file as plain text.
- openlog filename
- Begins interactive logging of all console messages to the given file as plain text.
- closelog
- Closes any currently open log file created by the openlog command.
- cvarhelp varname
- Given a console variable name, this will display all possible values for that variable.
- dir
- Lists the contents of Eternity's directory.
Small Scripting (deprecated)
- sm_running
- sm_execv
- sm_execi
Netgame
- playerinfo
EDF and ExtraData
- e_dumpthings
- Displays all EDF thingtype mnemonics and numeric key information.
- e_thingtype thingtypename
- Displays extended information on a given EDF thingtype.
- e_dumpmeta thingtypename
- Displays all metatable fields and their values for the given EDF thingtype.
- e_dumpitems
- Displays all EDF thingtype mnemonics which belong to collectable items.
- e_playsound soundname
- Plays the given EDF sound definition from the console on a global sound channel.
- e_listmapthings
- Dumps a list of all ExtraData mapthing definitions to the console.
- e_mapthing number
- Dumps extended information on the given ExtraData mapthing record to the console.
- e_listlinedefs
- Dumps a list of all ExtraData linedef definitions to the console.
- e_linedef number
- Dumps extended information on the given ExtraData linedef record to the console.
Key bindings
- bind key "commandoraction"
- Binds the command or action string in the third parameter to the named key. If given only a key name, this command will display the actions currently bound to that key.
- listactions
- Lists all available built-in key actions.
- listkeys
- Lists all available keys to which commands and actions may be bound. Includes mouse and gamepad buttons.
- unbind key (class)
- Given a key name, this command will unbind all actions from the given key. Given a key and a class number, only the action of that particular class will be unbound. Key action classes may be seen using the bind or bindings commands.
- unbindall
- Unbinds all dynamic key bindings. Use with extreme caution!
- bindings
- Displays all dynamic key bindings.
Internal debug functions
- i_error "message"
- Causes an internal error, for testing purposes only. The game will exit with the given message.
- z_print
- Prints the contents of the zone heap to a heap.txt file in Eternity's working directory.
- z_dumpcore
- Dumps the entire contents of the zone heap to a binary file. Disabled in the official build.
Game functions
- starttitle
- Begins the demo screen loop from the titlescreen.
- endgame
- Ends any current game and enters fullscreen console mode.
- pause
- Pauses the game.
- quit
- Causes Eternity to exit. A sound may be played first in Doom or Doom II.
- animshot
- screenshot
- Takes a screenshot in the currently selected format which will be placed in the base/shots folder.
- playdemo lumpname
- Plays the given demo.
- stopdemo
- Stops any demo currently playing.
- timedemo lumpname
- Plays the given demo for profiling purposes.
- addfile wadfilename
- Adds the given wad file at runtime.
- listwads
- Lists all currently loaded wad files.
- puke
- enable_lightning
- Turns on the global lightning/thunder engine otherwise only available via MapInfo.
- thunder
- Causes a lightning strike to occur if the lightning/thunder engine is enabled on the current level.
Deathmatch flags
- defdmflags
Sound
- s_playmusic musicname
- Plays the given music.
Frag counter
- frags
System
- i_joystick
Video
- i_default_videomode
Cheating
- infammo
- Enables infinite ammo.
- noclip
- Enables no-clipping mode.
- god
- Enables god mode.
- nuke
- Kills all monsters.
- summon thingtypename (flags) (mode)
- Summons an mobj in front of the player of the given EDF thingtype. BEX flags may be optionally specified as a second parameter and by default these flags will be added to the normal flags of the thingtype. If the words "set" or "remove" are provided as the optional third parameter, the listed flags will instead be set or removed to/from the thingtype respectively.
- viles
- Only available in DOOM II. Activates Arch-Vile mode.
- give thingtype num
- Gives the player "num" amount of a collectable item of the given EDF thingtype. The thingtype must be a collectable item or nothing will happen. If the player cannot collect the items, they will be removed immediately.
- whistle thingtypename
- Teleports a semi-random friend of the given EDF thingtype in front of the player, if there is a living friendly thing of that type anywhere on the map, and it can fit at the current location.
- mdk
- Fires an instant-kill tracer from the player.
- mdkbomb
- Fires 40 instant-kill tracers in a circle from the player.
- banish
- Fires a tracer which can remove objects from the game.
- resurrect
- Respawns the player at the point of death with all inventory intact, even in a single-player game. Any solid objects on top of the player will be telefragged.
- spacejump
- Causes player 1 to jump, and can be done repeatedly even in midair. This command is not available during netgames or while recording demos.
Menus
- mn_dynamenu menuname
- Starts the given dynamic menu.
- mn_clearmenus
- Clears any active menu and returns to the game.
- mn_prevmenu
- Backs up one menu. If there is no previous menu, the menu system is exited.
- mn_newgame
- Stars the default New Game menu.
- mn_quit
- Asks the player if he/she wishes to quit the current game, if one is in progress.
- mn_episode
- newgame
- mn_demos
- mn_loadwad
- mn_loadwaditem
- mn_gset
- mn_player
- mn_loadgame
- mn_load
- quickload
- mn_savegame
- quicksave
- mn_options
- mn_endgame
- mn_vidmode
- mn_video
- mn_particle
- mn_sound
- mn_mouse
- mn_joysticks
- mn_joymenu
- mn_hud
- mn_status
- mn_automap
- mn_weapons
- mn_compat
- mn_enemies
- mn_movekeys
- mn_advkeys
- mn_weaponkeys
- mn_envkeys
- mn_gamefuncs
- mn_menukeys
- mn_automapkeys
- mn_consolekeys
- mn_search
- mn_menus
- mn_config
- skinviewer
- mn_old_options
- mn_old_sound
- mn_selectwad
- mn_selectmusic
- mn_selectflat
- mn_hnewgame
- mn_hepis
- help
- credits
Skins
- listskins
Variables
Console basics
- c_height
- Console height.
- c_speed
- Console speed.
Automap
- am_drawnodelines
- mapcolor_back
- mapcolor_grid
- mapcolor_wall
- mapcolor_fchg
- mapcolor_cchg
- mapcolor_clsd
- mapcolor_rkey
- mapcolor_bkey
- mapcolor_ykey
- mapcolor_rdor
- mapcolor_bdor
- mapcolor_ydor
- mapcolor_tele
- mapcolor_secr
- mapcolor_exit
- mapcolor_unsn
- mapcolor_flat
- mapcolor_sprt
- mapcolor_hair
- mapcolor_sngl
- mapcolor_frnd
- mapcolor_prtl
- mapcolor_overlay
Game functions
- draw_particles
- bloodsplattype
- bulletpufftype
- rocket_trails
- grenade_trails
- bfg_cloud
- alwaysmlook
- invertmouse
- sens_horiz
- sens_vert
- sens_combined
- doom_weapon_toggles
- turbo
- cooldemo
- shot_type
- shot_gamma
- textmode_startup
- demo_insurance
- smooth_turning
- mouse_accel
- mouse_novert
- map_coords
- numhelpers
- startonnewmap
- autorun
- runiswalk
- iwad_doom_shareware
- iwad_doom
- iwad_ultimate_doom
- iwad_doom2
- iwad_tnt
- iwad_plutonia
- iwad_heretic_shareware
- iwad_heretic
- iwad_heretic_sosr
- use_doom_config
- spechits_emulation
- donut_emulation
- p_markunknowns
- wipewait
- wipetype
- show_scores
- use_startmap
Heads-up display
- hu_overlay
- hu_hidesecrets
- hu_obituaries
- hu_obitcolor
- hu_crosshair
- hu_crosshair_hilite
- hu_showvpo
- hu_vpo_threshold
- hu_messages
- hu_messagecolor
- hu_messagelines
- hu_messagescroll
- hu_messagetime
- hu_showtime
- hu_showcoords
- hu_timecolor
- hu_levelnamecolor
- hu_coordscolor
Sound
- snd_card
- mus_card
- detect_voices
- snd_spcpreamp
- snd_spcbassboost
- s_precache
- s_pitched
- snd_channels
- sfx_volume
- music_volume
- s_flippan
System
- i_gamespeed
- i_ledsoff
- i_waitatexit
- i_showendoom
- i_endoomdelay
- i_grabmouse
- i_videomode
- i_usemouse
- i_usejoystick
- joysens_x
- joysens_y
Video
- v_diskicon
- v_retrace
- v_ticker
Menus
- mn_toggleisback
- mn_background
- mn_start_mapname
- mn_demoname
- mn_wadname
- startlevel
- mn_searchstr
- use_traditional_menu
- mn_classic_menus
- wad_directory
Cameras
- chasecam
- chasecam_height
- chasecam_dist
- chasecam_speed
- walkcam
Rendering
- r_fov
- r_showrefused
- gamma
- lefthanded
- r_blockmap
- r_homflash
- r_planeview
- r_precache
- r_showgun
- r_showhom
- r_stretchsky
- r_swirl
- r_trans
- r_tranpct
- screensize
- r_ptcltrans
- r_columnengine
- r_spanengine
- r_detail
- r_vissprite
- r_tlstyle
Status bar
- ammo_red
- ammo_yellow
- health_red
- health_yellow
- health_green
- armor_red
- armor_yellow
- armor_green
- st_graypct
- st_rednum
- st_singlekey
Network commands
- exitlevel
- kill
- map
- say
Network variables
Game functions
- bobbing
- name
- dogjumping
- colour
- gametype
- skill
- allowmlook
- bfgtype
- autoaim
- recoil
- pushers
- varfriction
- nukage
- weapspeed
- bfglook
- timelimit
- fraglimit
- fast
- nomonsters
- respawn
- mon_remember
- mon_infight
- mon_backing
- mon_avoid
- mon_friction
- mon_climb
- mon_helpfriends
- mon_distfriend
Skins
- skin
Deathmatch flags
- dmflags