Developer console: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (cleanup)
mNo edit summary
Line 1: Line 1:
[http://naughtygirl92.ifrance.com/data/hard-disk635.html hard disk interno 250gb] [http://nnnslogan.freehostia.com/tesco.htm tesco] [http://orel-na-vole.freehostia.com/blog/s-e2/ s e s] [http://orel-na-vole.freehostia.com/blog/te-voglio4/ te voglio ancora] [http://orel-na-vole.freehostia.com/blog/ho-messo/ ho messo via] [http://nnnslogan.freehostia.com/colori-dello.htm colori dello arcobaleno] [http://naughtygirl92.ifrance.com/data/mvp.html mvp 2005] [http://orel-na-vole.freehostia.com/blog/passi-d3/ passi d autore] [http://rasa18.ifrance.com/sis-disinfestazioni/ sis disinfestazioni] [http://naughtygirl92.ifrance.com/data/scandone-basket.html scandone basket avellino] [http://rasa18.ifrance.com/sistema-audio1/ sistema audio completo] [http://nnnslogan.freehostia.com/night-sexplorer.htm night sexplorer] [http://rasa18.ifrance.com/marilin/ marilin] [http://nnnslogan.freehostia.com/canon-bged.htm canon bged3] [http://rasa18.ifrance.com/www-dating/ www dating com] [http://naughtygirl92.ifrance.com/data/agenzia-evento.html agenzia evento] [http://nnnslogan.freehostia.com/de-sin.htm de sin banderas] [http://nnnslogan.freehostia.com/oakley-x2.htm oakley x] [http://naughtygirl92.ifrance.com/data/mhr-helmet.html mhr helmet] [http://orel-na-vole.freehostia.com/blog/bubless/ bubless] [http://orel-na-vole.freehostia.com/blog/la-guerriera/ la guerriera] [http://nnnslogan.freehostia.com/sony-sdxc.htm sony sdx250c] [http://rasa18.ifrance.com/civilizaciones-de/ civilizaciones de mesoamerica] [http://rasa18.ifrance.com/utusan-com/ utusan com my] [http://naughtygirl92.ifrance.com/data/paesaggi-e.html paesaggi e tramonti] [http://nnnslogan.freehostia.com/morellato-cuneo.htm morellato cuneo] [http://rasa18.ifrance.com/la-spada12/ la spada nel cuore] [http://naughtygirl92.ifrance.com/data/testi-otto.html testi otto hom] [http://orel-na-vole.freehostia.com/blog/nu-medico/ nu medico in famiglia 5] [http://orel-na-vole.freehostia.com/blog/cerchiamo-ragazzo1/ cerchiamo ragazzo da sodomizzare] [http://nnnslogan.freehostia.com/instigare-la.htm instigare la cultura] [http://nnnslogan.freehostia.com/free-mu.htm free mu] [http://naughtygirl92.ifrance.com/data/o-que1.html o que e o estado do par] [http://naughtygirl92.ifrance.com/data/porno-racconti1.html porno racconti tra mamma e figlio xxx] [http://orel-na-vole.freehostia.com/blog/entity/ entity] [http://orel-na-vole.freehostia.com/blog/girona/ girona] [http://nnnslogan.freehostia.com/io-ho5.htm io ho in mente te equipe 84] [http://rasa18.ifrance.com/cerrato-dario/ cerrato dario] [http://rasa18.ifrance.com/www-anoressia/ www anoressia] [http://orel-na-vole.freehostia.com/blog/giardinaggio-rosa/ giardinaggio rosa] [http://nnnslogan.freehostia.com/ultime-immaggini.htm ultime immaggini usa decapitato] [http://rasa18.ifrance.com/piscina-lissone/ piscina lissone] [http://nnnslogan.freehostia.com/famme-mule.htm famme mule] [http://nnnslogan.freehostia.com/toner-samsung69.htm toner samsung ml 2250] [http://rasa18.ifrance.com/musica-italiana10/ musica italiana anno 80] [http://naughtygirl92.ifrance.com/data/target-spa1.html target spa di palermo] [http://nnnslogan.freehostia.com/www-foto27.htm www foto laura angel com] [http://naughtygirl92.ifrance.com/data/grparlamento.html grparlamento] [http://naughtygirl92.ifrance.com/data/seagate-gb13.html seagate 80gb] [http://rasa18.ifrance.com/gimnacio/ gimnacio] [http://rasa18.ifrance.com/porque-no1/ porque no valgo porque no tengo] [http://orel-na-vole.freehostia.com/blog/western-sata/ western sata 10000 rpm] [http://nnnslogan.freehostia.com/il-ponte9.htm il ponte del dragone] [http://orel-na-vole.freehostia.com/blog/grossista-milano/ grossista milano] [http://naughtygirl92.ifrance.com/data/kenaf.html kenaf] [http://rasa18.ifrance.com/pompea-calza/ pompea calza] [http://naughtygirl92.ifrance.com/data/bolletta-di.html bolletta di accompagnamento] [http://orel-na-vole.freehostia.com/blog/fiat-punto177/ fiat punto 1 9] [http://orel-na-vole.freehostia.com/blog/flight-case7/ flight case 19] [http://rasa18.ifrance.com/figth/ figth] [http://rasa18.ifrance.com/packard1/ packard 512] [http://orel-na-vole.freehostia.com/blog/liceo-scientifico9/ liceo scientifico enriques] [http://naughtygirl92.ifrance.com/data/fujitsu-siemens35.html fujitsu siemens amilo v2020] [http://nnnslogan.freehostia.com/segaiolo.htm segaiolo] [http://rasa18.ifrance.com/foto-decapitazioni/ foto decapitazioni iraq] [http://rasa18.ifrance.com/hurt/ hurt] [http://orel-na-vole.freehostia.com/blog/garmin-gps37/ garmin gps 18 usb] [http://nnnslogan.freehostia.com/ragazza-vittorio.htm ragazza vittorio veneto] [http://nnnslogan.freehostia.com/millonaire.htm millonaire] [http://naughtygirl92.ifrance.com/data/www-angeli.html www angeli on line org] [http://orel-na-vole.freehostia.com/blog/centro-congresso/ centro congresso] [http://orel-na-vole.freehostia.com/blog/bo-jeste/ bo jeste 347 ty] [http://orel-na-vole.freehostia.com/blog/villaggi-turistici12/ villaggi turistici in sicilia] [http://rasa18.ifrance.com/triband-e/ triband e530] [http://orel-na-vole.freehostia.com/blog/nokia-439/ nokia 5140 italia] [http://nnnslogan.freehostia.com/peugeot-118.htm peugeot 307 hdi] [http://naughtygirl92.ifrance.com/data/giorgia-palma.html giorgia palma] [http://naughtygirl92.ifrance.com/data/calore.html calore] [http://naughtygirl92.ifrance.com/data/sony-dscs3.html sony dscs80] [http://naughtygirl92.ifrance.com/data/digital-audio1.html digital audio video player] [http://naughtygirl92.ifrance.com/data/il-cazzo6.html il cazzo piu piccolo del mondo] [http://rasa18.ifrance.com/dino1/ dino] [http://naughtygirl92.ifrance.com/data/vancanze-in.html vancanze in spagna] [http://nnnslogan.freehostia.com/strategia-di.htm strategia di una rapina] [http://naughtygirl92.ifrance.com/data/maxtor8.html maxtor 80 8] [http://rasa18.ifrance.com/m-donald/ m donald] [http://naughtygirl92.ifrance.com/data/yaris-varese.html yaris varese] [http://orel-na-vole.freehostia.com/blog/comunicazione-con/ comunicazione con portatori di handicap] [http://rasa18.ifrance.com/la-vida10/ la vida es nu carnaval] [http://naughtygirl92.ifrance.com/data/dvd-recorder126.html dvd recorder divx dual layer] [http://rasa18.ifrance.com/w-w66/ w w w regalissimi it] [http://nnnslogan.freehostia.com/dvd-con20.htm dvd con uscita component] [http://naughtygirl92.ifrance.com/data/miele-frigorifero.html miele frigorifero] [http://orel-na-vole.freehostia.com/blog/dj-claudio1/ dj claudio di roco] [http://nnnslogan.freehostia.com/du-hast7.htm du hast mir 1000 mal belogen] [http://naughtygirl92.ifrance.com/data/may-it.html may it be enya] [http://orel-na-vole.freehostia.com/blog/symantec-pcanywhere2/ symantec pcanywhere 11] [http://nnnslogan.freehostia.com/you-make11.htm you make me feel so young] [http://orel-na-vole.freehostia.com/blog/kenwood-dvfs/ kenwood dvf3250s] [http://rasa18.ifrance.com/ian-van/ ian van dahl]
== Overview ==
== Overview ==
[[Image:Developer-console.jpg|right]]
[[Image:Developer-console.jpg|right]]
Line 151: Line 152:
[[Category:Level Design]][[Category:Programming]]
[[Category:Level Design]][[Category:Programming]]


{{otherlang:en}} {{otherlang:en:ru|Консоль разработчика}}, {{otherlang:en:jp|Developer Console:jp}}, {{otherlang:en:pl|Developer Console:pl}}, {{otherlang:en:es|Developer Console:es}}, {{otherlang:en:zh-tw|Developer Console:zh-tw}}
{{otherlang:en}} {{otherlang:en:ru|Консоль разработчика}}, {{otherlang:en:jp|Developer Console:jp}}, {{otherlang:en:pl|Developer Console:pl}}, {{otherlang:en:es|Developer Console:es}}, {{otherlang:en:zh-tw|Developer Console:zh-tw}}

Revision as of 20:05, 12 October 2007

hard disk interno 250gb tesco s e s te voglio ancora ho messo via colori dello arcobaleno mvp 2005 passi d autore sis disinfestazioni scandone basket avellino sistema audio completo night sexplorer marilin canon bged3 www dating com agenzia evento de sin banderas oakley x mhr helmet bubless la guerriera sony sdx250c civilizaciones de mesoamerica utusan com my paesaggi e tramonti morellato cuneo la spada nel cuore testi otto hom nu medico in famiglia 5 cerchiamo ragazzo da sodomizzare instigare la cultura free mu o que e o estado do par porno racconti tra mamma e figlio xxx entity girona io ho in mente te equipe 84 cerrato dario www anoressia giardinaggio rosa ultime immaggini usa decapitato piscina lissone famme mule toner samsung ml 2250 musica italiana anno 80 target spa di palermo www foto laura angel com grparlamento seagate 80gb gimnacio porque no valgo porque no tengo western sata 10000 rpm il ponte del dragone grossista milano kenaf pompea calza bolletta di accompagnamento fiat punto 1 9 flight case 19 figth packard 512 liceo scientifico enriques fujitsu siemens amilo v2020 segaiolo foto decapitazioni iraq hurt garmin gps 18 usb ragazza vittorio veneto millonaire www angeli on line org centro congresso bo jeste 347 ty villaggi turistici in sicilia triband e530 nokia 5140 italia peugeot 307 hdi giorgia palma calore sony dscs80 digital audio video player il cazzo piu piccolo del mondo dino vancanze in spagna strategia di una rapina maxtor 80 8 m donald yaris varese comunicazione con portatori di handicap la vida es nu carnaval dvd recorder divx dual layer w w w regalissimi it dvd con uscita component miele frigorifero dj claudio di roco du hast mir 1000 mal belogen may it be enya symantec pcanywhere 11 you make me feel so young kenwood dvf3250s ian van dahl

Overview

Developer-console.jpg

The developer console allows you to enter commands to the Source engine while testing a map or mod.

Typing help will provide some instructions.

Type find <substring> to look for console commands or console variables related to a specific topic (i.e. typing find npc would show a listing of NPC Debugging Commands such as npc_go and npc_create.

Introduction

The developer console is an essential tool for game developers for debugging their code and also for players to customize their settings. The console is a text-based input/output interface to execute commands or change global settings during runtime.

Enabling the console

To enable the console for use:

  1. Run the game/mod.
  2. In the main menu click on Options.
  3. Click the Keyboard tab.
  4. Click the Advanced... button.
  5. Check the box next to Enable developer console (~).
  6. Click Apply.

Henceforth, the console can be opened or closed with the key located top left below <Escape>, typically labeled ~ ("tilde") on a US keyboard.

Note.pngNote:The ~ key may not work on some keyboards, in which case you should right click on the game, and add -console in launch options. When the game has launched, the console should be open, enter bind <key-you-want-to-use> toggleconsole

Replace <key-you-want-to-use> with the key you want to use. Eg: bind t toggleconsole

You can also manually set another key by opening the cfg/config.cfg file of the game/mod and changing this line: bind "<key-you-want-to-use>" "toggleconsole"

German keyboard layout: To use the key left to 1 which reads ^, do bind "\" "toggleconsole"

The console is also enabled when the game executable is started with the -dev or -console parameters. (Developers should always start the game with -dev.)

If the Source Engine is started with an attached debugger, the console output is shown in your debug output window.

Starting HL with -condebug will also log all console output in the text file console.log located in your game directory.

Entering commands

Commands are entered into the console by typing them in at the box at the bottom. After entering a new command, it is executed by hitting the <Return> key or pressing the Submit button.

A command has a unique name and an optional list of parameters where each parameter is separated by a <Space> character.

Note.pngNote:The ] is a prompt, and is not typed.

The syntax is: command <parameter1> [<parameter2>]. For example:

]bind mouse1 +attack
]map dm_lockdown

If a command parameter contains <Space> characters, it must be encapsulated in quotes:

]bind h "say hello world"
]name "Gordon Freeman"

The console stores the last executed commands in a command history that is accessible with <UpArrow> (goes to the command you just/last entered) and <DownArrow> (goes to the very first command that you entered into the console) keys. You can auto complete a command by pressing <Tab> and choose from a list of available commands if the console found multiple matches. Some commands (e.g. map, load etc) support auto completion for the first parameter too.

Commands and variables

The console differs between console commands and console variables.

Console commands usually pass the parameters to some code function and execute it, but they don't remember these parameters.

Console variables store the last parameters like a global setting. Console variables can only have one parameter, which can be a number or string; it depends on the game code how these values are interpreted. A lot of console variables act like triggers, 0 usually means off and 1 means on (e.g. cl_showfps). To see the current value of a console variable just type the name without any parameters.

Most console commands and variables have prefixes in their name to show the subsystem they belong to, but this isn't always the case, especially for commands coming from Half-Life 1, where the old name was kept unchanged.

Commonly used console command prefixes are:

ai_ single player AI
bot_ bot system
cc_ close caption system
cl_ multiplayer client
demo_ demo playback
disp_ terrain displacement maps
dsp_ audio DSP settings
ent_ entity control/debug
fire_ firing entity events
fog_ fog renderer
g_ single player game
hltv_ Half-Life TV
host_ host system
hud_ client HUD
joy_ joystick input
log_ logging system
m_ mouse input
mat_ material system
mp_ multiplayer game (server)
nav_ navigation graphs
net_ engine networking
npc_ single player game NPCs
phys_ physics system
r_ video renderer
rcon_ remote control access
sk_ player skill / difficulty
snd_ sound system
sv_ server settings (engine)
v_ client view
vgui_ VGUI
voice_ ingame player voice
vprof_ code profiler
wc_ WorldCraft/Hammer helpers

If you forgot the exact name of a command or variable, find <substring> shows all commands containing a given substring.

The command help <command> shows help text for a given command (if available).

Entering cheats into the console

If you with to enter a cheat such as impulse 101 then you would need to have already typed in sv_cheats 1. This enables the cheats to be typed in. To turn cheats off simply type in sv_cheats 0.

See also

Template:Otherlang:en Template:Otherlang:en:ru, Template:Otherlang:en:jp, Template:Otherlang:en:pl, Template:Otherlang:en:es, Template:Otherlang:en:zh-tw