PDA

View Full Version : Creating a Program to Manage Steam Servers Remotely....



VJ
08-07-10, 16:37
Not entirely sure where I should put this... but i thought this was more suitable.

As some of you may know, I run my own home-hosted Steam Dedicated servers from a spare PC...
And as many other of you know, these frequently require updating and changing etc.

I'm downloading Microsoft Visual Basic 2010 Express atm, as that's the only thing I know how to use a bit :D.

Currently, I have to use Remote Desktop to do everything and i've written a lot batch files to make it easier. Now it's just a matter of being able to execute those batch files automatically.

I only need to do an update when

Your server is out of date. Please update and restart.
appears in command prompt...

so yeah, i'll keep you guys updated on how I get on :D

Smifis
08-07-10, 18:06
Use batch files, execute the files from within a batch file, write it to a text file and using windows task manager or whatever the devil is called these days to run a script every 30 mins checking the last line.

Would that work?

VJ
08-07-10, 18:15
Use batch files, execute the files from within a batch file, write it to a text file and using windows task manager or whatever the devil is called these days to run a script every 30 mins checking the last line.

Would that work?

I am right now, but then it gets cluttered :(

Right now i've managed to do things through telnet.
Just now i've got to integrate it into VB.. somehow lol

Aaron
08-07-10, 18:16
From my fairly limited knowledge of VB, that should be a fairly straight forward task, with a bit of reading... have you thought about doing it via a web interface hosted on the server? :)

VJ
08-07-10, 18:17
From my fairly limited knowledge of VB, that should be a fairly straight forward task, with a bit of reading... have you thought about doing it via a web interface hosted on the server? :)

that sounds like a good idea i'll get it done in this program first :)

Aaron
08-07-10, 18:23
It would just take away some of the complication, if you could get the files to run locally on that machine, rather than being downloaded to yours :)

VJ
08-07-10, 18:38
It would just take away some of the complication, if you could get the files to run locally on that machine, rather than being downloaded to yours :)

ok, help me, lol. i'm stuck.

I've got batch files that update etc. like so..:



@ECHO OFF

Echo Changing Directory to C:\Dedicated Servers\Steam
cd "C:\Dedicated Servers\Steam"

Echo Updating Counter-Strike: Source
Start "Counter-Strike: Source Update" /WAIT HldsUpdateTool.exe -command update -game "Counter-Strike Source" -dir "C:\Dedicated Servers\Steam\CounterStrikeSource"
Echo Finished...

Echo Updating Left 4 Dead
Start "Left 4 Dead Update" /WAIT HldsUpdateTool.exe -command update -game left4dead -dir "C:\Dedicated Servers\Steam\Left4Dead"
Echo Finished...


Echo Updating Left 4 Dead 2
Start "Left 4 Dead 2 Update" /WAIT HldsUpdateTool.exe -command update -game left4dead2 -dir "C:\Dedicated Servers\Steam\Left4Dead2"
Echo Finished...

Echo Updating Team Fortress 2
Start "Team Fortress 2 Update" /WAIT Hldsupdatetool.exe -command update -game tf -dir "C:\Dedicated Servers\Steam\TeamFortress2"
Echo Finished...

Echo Updating Synergy
Start "Synergy Update" /WAIT HldsUpdateTool.exe -command update -game synergy -dir "C:\Dedicated Servers\Steam\Synergy"
Echo Finished...

Echo Update Completed...

pause

And what I use to run the Team Fortress 2 Server...

@ECHO OFF

Echo Changing Directory to F:\Dedicated Servers\Steam\TeamFortress2\orangebox
cd "F:\Dedicated Servers\Steam\TeamFortress2\orangebox"

Echo Launching Team Fortress 2 Server
Start "Team Fortress 2 Dedicated Server" srcds.exe -console -game tf -hostport 27015 +maxplayers 24 +map ctf_2fort


You're talking about a web interface that executes those batch files? right? what about displaying the Server console? ;)

Aaron
08-07-10, 18:43
I'm not 100% sure how to do it, but I'm pretty sure it'll be possible. I'll ask my web guy when I see him tomorrow.. :)

VJ
08-07-10, 18:48
I'm not 100% sure how to do it, but I'm pretty sure it'll be possible. I'll ask my web guy when I see him tomorrow.. :)

cheers :)

i've been googling all day, i've found nothing :(

Aaron
09-07-10, 01:36
I'm pretty sure I know how to do it actually... I bookmarked it at my office, but forgot to transfer it to home.. I'll just read through it again, and then PM you it tomorrow :)

Faz
25-07-10, 00:57
It's probably best to build your program as a console application, then you can read in the input from the console and then produce an output.

How far have you got now?

VJ
25-07-10, 01:13
It's probably best to build your program as a console application, then you can read in the input from the console and then produce an output.

How far have you got now?

nowhere, ive been waiting on a PM :(

Faz
25-07-10, 11:08
ah right. well if I get some time I will have a look at it, but yeah, im not 100% on VB either.

Could maybe do this.