PDA

View Full Version : [HOWTO] Launch ANY STEAM Game from a web broswer link


BigBaller
01-03-2005, 03:49
Thats right, no other software needed to install, all you need is STEAM running.

A while ago, I found a simple HTML code that would cause STEAM to launch Counter-Strike 1.6. This was months ago.

I recently purchased a CS Source server, it took me a hour to figure out the code to make a link launch CS Source, while trying to find out, I figured out every other STEAM Game (expect HL2 Demo, Codename Gordon and SRCDS, im pretty sure SRCDS can be found easily tho)

Why am I posting this?

Because you cant find this type of info on the net anywhere (or at least I couldnt, google didnt work in my favor tonight). If you want a simple link to connect to your server you have to sign up for things such as serverspy and use their service.

This is all you got to do.

Use this as your HTML code
<a href='steam: "-applaunch 10 +connect 69.41.244.30:27015"'>69.41.244.30:27015</a>

Thus, that simple code above will connect you to That Ip on Counter-Strike 1.6. Make sure you take notice to the ' before the word "steam" and after "27015". Also make sure you have ' before "-applaunch" and just after "27015" but before '. Yea its hard to understand but if you copy and paste you shouldnt have a problem.

Now what if you want to connect to another game? All you have to do is change -applaunch 10 to something like -applaunch 20 and it will connect your client to a different game. 20 btw is Team Fortess Classic.

I DO NOT KNOW IF THIS WILL WORK FOR 3RD PARTY MODS SUCH AS NATURAL SELECTION. I DONT BELIEVE IT WILL BECAUSE THEY ARE 3RD PARTY MODS

MOD -> applaunch #

Half Life Dedicated Server -> -applaunch 5
Counter-Strike 1.6 -> -applaunch 10
Team Fortess Classic -> -applaunch 20
Day Of Defeat -> -applaunch 30
DeathMatch Classic -> -applaunch 40
Opposing Force -> -applaunch 50
Ricochet -> -applaunch 60
Half Life -> -applaunch 70
Counter-Strike: Condition Zero -> -applaunch 80
Half Life 2 -> -applaunch 220
Counter-Strike Source -> -applaunch 240
Half Life Source -> -applaunch 280
Day of Defeat Source -> -applaunch 300
Half Life 2 Deathmatch -> -applaunch 320



I hope this becomes useful and helpful to quite a few people.

Thanx
BigBaller

imported_SirTiger
01-03-2005, 11:07
Thank god Firefox asks you to confirm the use of a protocol but IE users could get in trouble if you combine this with a meta refresh or a javascript location.href :(

manorastroman
01-03-2005, 20:38
you can use third party mods, you just have to say -game cs1.5 or something, i dont remember the name

Tim
01-04-2005, 00:00
Thanks mate,
Already knew I could launch games using steam://,
but hadn't yet come around to launching a specific
server yet...
Works like a charm, I'll be sure to build this into my
website server status thingy I posted earlier...

Anyone know if you can specify a particular steamaccount
in the same hyperlink?? Would make switching easier... =\
And in addition: Any possibilties of adding a server to fav's
or defining a password within the startup link?

http://t4f.ehv.campus.philips.com/Forum/tbb_123/images/smilies/bye.gif Tim

BigBaller
01-05-2005, 05:32
I wouldnt know really

id have to do some research, there might be a command like +addip or something but i dunno.

Tim
01-05-2005, 10:50
Well thanks for replying anyway, it's virtually impossible to find any
info about this on the web, let alone on the Steam User Forums...
It wouldn't be vital for my website /scripts, but it would just be a
nice option to have... =\
(Am I wrong to think it could specify any advanced startup command?)
Let me know if anyone figures this out...

Best regards,
Tim

BigBaller
01-06-2005, 04:15
Yea I can understand why you cant find information, thats one of the reasons why I posted this information in three diff locations, gotta get people to know about this.

Tim
01-07-2005, 14:59
Steam, Source Engine, HLDS Update Released
January 6, 2005, 5:48 pm · cliffe
Steam
Fixed use of quoted parameters in "-applaunch" command linesMmm, update seems to have ruined this now...

Varsity
01-07-2005, 16:31
The correct syntax is now:steam: "-applaunch 320 +connect 213.208.119.230:27055"

Tim
01-07-2005, 18:49
Thanks, that works. Got just a bit annoyed as I just got it working a couple of days ago,
then they change the whole thing with little to no information on what's changed or how to fix it.
No I can start editing some 4 scriptpacks + supplied zips, after which I can *try* to contact the
various people that use it, which I know will not be easy...
Just a bit frustrating when you're trying to help out others with some scripts, which turns
useless because of an update for somehting that has been working fine for a long time now.

Best regards,
Tim

Promagnum
01-08-2005, 04:27
The correct syntax is now:
steam: "-applaunch 320 +connect 213.208.119.230:27055"

Didn't work for me.

steam: "-applaunch 240 +connect 38.118.144.115:27015"

server (steam:), etc.

Tim
01-08-2005, 12:02
Try:join ('steam: "-applaunch 240 +connect 38.118.144.115:27015"')
So double quotes around the applaunch & connect,
single quotes around the href= argument...

YankeeDeuce
01-08-2005, 15:12
That works. Thanks Tim.

manorastroman
01-08-2005, 20:34
to confirm, to get 3rd party mods to launch you need this C:\valve\steam\steam.exe -applaunch 70 -game svencoop , just change it to a link or whatever im too lazy

BigBaller
02-01-2005, 04:27
Try:join ('steam: "-applaunch 240 +connect 38.118.144.115:27015"')
So double quotes around the applaunch & connect,
single quotes around the href= argument...

Ahhh good stuff

ill update my first post, I didnt relize a steam update broke it >_<