Steam Command Line Parameters: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Fixing double redirect. This action was performed by a bot.)
Tag: Redirect target changed
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[Category:Source_SDK_FAQ]][[Category:Steam]]When launching the game engine, there are a number of command-line options that can be used to change the engine environment.
#REDIRECT [[Command line options]]
 
{|
| <code>-dev</code>  || Launches the game in developer mode. Useful debugging and console information is shown.
|-
| <code>-console</code> || Launches the game directly to the developer console, and does not show the 3D background map.
|-
| <code>-sw</code> or <code>-windowed</code>  || Starts the game in windowed mode.
|-
| <code>-fullscreen</code> || Starts the game in fullscreen mode.
|-
| <code>-w <size></code> ||  Sets the screen width to <size> in pixels, i.e. <code>-w 1024</code>
|-
| <code>-h <size></code> || Sets the screen height to <size> in pixels, i.e. <code>-h 768</code>
|-
| <code>-condebug</code> || Logs the contents of the developer console to <code><game directory>\console.log</code>
|-
| <code>-novideo</code> || Bypasses the opening cinematic videos when launching the game.
|-
| <code>+sv_lan 1</code> || Launches the game in LAN mode. Useful to stop players from joining your game from the Internet.
|-
| <code>+map <mapname></code> || Launches the game, then loads the map called <code><mapname>.bsp</code>
|-
| <code>-applaunch <AppID></code> || Launches the game with using the specified <code>SteamAppID</code>
|-
| <code>-game <GameDir></code> || Launches Steam using the files in <code>GameDir</code>
|}
 
Parameters using the "+" symbol are developer console commands that are executed after the engine is launched.
 
For example, some typical settings:
Steam.exe -applaunch 280 -game "C:\Program Files\Valve\Steam\SteamApps\SourceMods\ExampleMod" -dev -console -sw +sv_lan 1 +map MyMap
 
This would start ''ExampleMod'' as a [[Half-Life 2: Deathmatch]] mod in developer mode, activate the developer console, in windowed mode, and in LAN multiplayer mode, then load <code>MyMap.bsp</code>.
==See Also==
* [[Command Line Options]]

Latest revision as of 14:54, 21 January 2024