Steam browser protocol: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 45: Line 45:
* '''<code>steam://runsingle/<AppID></code>'''
* '''<code>steam://runsingle/<AppID></code>'''
**Runs an app, then shuts down Steam once the game closes. -- [[User:AiusEpsi|AiusEpsi]]
**Runs an app, then shuts down Steam once the game closes. -- [[User:AiusEpsi|AiusEpsi]]
==Ability==
What can be done with these commands from a websites point of view?
Its a pretty open and powerful system. A website link can start up steam and not only change any [[ConVar]] of a user, but it can also execute [[ConCommand]]s like making a player join a specific server running a specific mod. It can even get the player to start up a dedicated server with a single click.
Here some examples:
'''steam:"-applaunch 70 -game "<mod>" +map "<map>""''' - This starts up [[Half-Life]] running the specified mod then loads a specified map.
'''steam://connect/<IP or DNS name>[:port]"''' - If a mod was running at the specified server, Steam would attempt to start up that mod and connect there. This applies to any kind of [[Goldsource]]/[[Source]] server.
To view this browser based command system in action look at this [http://www.bgmod.com/index.php?module=servers server browser website] and click on one of the servers.
{{note|If you forget the closing quote on a steam:"<command>", you will get an assertion failed error from Steam.exe/BootStrapperApp.cpp.}}


[[Category:Steam]] [[Category:technical]] [[Category:Feedback]]
[[Category:Steam]] [[Category:technical]] [[Category:Feedback]]

Revision as of 07:34, 4 June 2006

Broom icon.png
This article or section needs to be cleaned up to conform to a higher standard of quality.
For help, see the VDC Editing Help and Wikipedia cleanup process. Also, remember to check for any notes left by the tagger at this article's talk page.

Commands

There are several commands available that interact with Steam. All of them open up Steam if it is not open. They can either be typed into a command box (Start-> Run) or through your browser's address bar. Use a Steam Applaunch ID in place of <id> (i.e. 211 for the Source SDK).

Suggested