Steam browser protocol: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎Commands: added component)
Line 31: Line 31:
* '''<code>steam://validate/<id></code>''' This Validates the files within gcf's of the Applaunch ID you choose.
* '''<code>steam://validate/<id></code>''' This Validates the files within gcf's of the Applaunch ID you choose.
===Suggested===
===Suggested===
* '''steam://connect/<IP or DNS name>[:port]/<password>'''
* '''<code>steam://connect/<IP or DNS name>[:port]/<password></code>'''
**Connects to the specified server with the right password --[[User:Semi|Semi]]
**Connects to the specified server with the right password --[[User:Semi|Semi]]
* '''steam://connect/<IP or DNS name>[:port]/'command1 "arg1" "arg2";command2 "arg1";password "blah";etc..''''
* '''<code>steam://connect/<IP or DNS name>[:port]/'command1 "arg1" "arg2";command2 "arg1";password "blah";etc..'</code>'''
**Connects to the specified server after executing the specified commands --[[User:ts2do|ts2do]]
**Connects to the specified server after executing the specified commands --[[User:ts2do|ts2do]]
* '''steam://vdc/<page title>'''
* '''<code>steam://vdc/<page title></code>'''
**Open title page on the VDC. -- [[User:AiusEpsi|AiusEpsi]] and [[User:ts2do|ts2do]]
**Open title page on the VDC. -- [[User:AiusEpsi|AiusEpsi]] and [[User:ts2do|ts2do]]
* '''steam://friends/add/<user>'''
* '''<code>steam://friends/add/<user></code>'''
**Prompt to add user to Friends list. --[[User:VealCalf|VealCalf]]
**Prompt to add user to Friends list. --[[User:VealCalf|VealCalf]]
* '''steam://friends/chat/<user>'''
* '''<code>steam://friends/chat/<user></code>'''
**Open chat window with user (if online). --[[User:Alph Tech STUART|STUART]] <sup>([[User talk:Alph Tech STUART|TALK]][mailto:stuart@testtrack4.com &nbsp;][http://www.testtrack4.com &nbsp;])</sup>
**Open chat window with user (if online). --[[User:Alph Tech STUART|STUART]] <sup>([[User talk:Alph Tech STUART|TALK]][mailto:stuart@testtrack4.com &nbsp;][http://www.testtrack4.com &nbsp;])</sup>
* '''steam://gameinfo/<IP or DNS name>[:port]'''
* '''<code>steam://gameinfo/<IP or DNS name>[:port]</code>'''
**Opens the "game info" window for the specified server. Maybe also integrated into the server browser, so you don't have to add a server to the favorites to have access to that window. --[[User:Koraktor|Koraktor]]
**Opens the "game info" window for the specified server. Maybe also integrated into the server browser, so you don't have to add a server to the favorites to have access to that window. --[[User:Koraktor|Koraktor]]
* '''steam://runsingle/<AppID>'''
* '''<code>steam://runsingle/<AppID></code>'''
**Runs the specified App, then shuts down Steam once the game closes. -- [[User:AiusEpsi|AiusEpsi]]
**Runs the specified App, then shuts down Steam once the game closes. -- [[User:AiusEpsi|AiusEpsi]]



Revision as of 15:44, 3 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.

Suggested

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 ConCommands 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 server browser website and click on one of the servers.

Note.pngNote:If you forget the closing quote on a steam:"<command>", you will get an assertion failed error from Steam.exe/BootStrapperApp.cpp.