Results 1 to 13 of 13

Thread: Creating a Program to Manage Steam Servers Remotely....

  1. #1
    Cake <3. VJ's Avatar
    Join Date
    May 2010
    Location
    Reading
    Posts
    1,195
    Thanks
    343
    Thanked 77 Times in 59 Posts
    Rep Power
    1

    Default Creating a Program to Manage Steam Servers Remotely....

    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 .

    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
    Code:
    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
    -| Intel Core i5 750 @ 4Ghz | 2x4Gb Corsair Vengeance @ 1.6Ghz |-
    -| MSI nVidia GTX460 "Cyclone" OC 1024Mb | Logitech X-540 5.1 | Asus Xonar D2X |-
    -| Antec 1200 | 2x LG W2286L @ 3360x1050 | 2x 500Gb Samsung F3 RAID0 |-

  2. #2
    Not to be trusted with your Jaffa Smifis's Avatar
    Join Date
    May 2010
    Location
    Great Yarmouth, Norfolk
    Posts
    5,327
    Thanks
    918
    Thanked 438 Times in 384 Posts
    Rep Power
    2

    Default

    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?

  3. #3
    Cake <3. VJ's Avatar
    Join Date
    May 2010
    Location
    Reading
    Posts
    1,195
    Thanks
    343
    Thanked 77 Times in 59 Posts
    Rep Power
    1

    Default

    Quote Originally Posted by Smifis View Post
    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
    -| Intel Core i5 750 @ 4Ghz | 2x4Gb Corsair Vengeance @ 1.6Ghz |-
    -| MSI nVidia GTX460 "Cyclone" OC 1024Mb | Logitech X-540 5.1 | Asus Xonar D2X |-
    -| Antec 1200 | 2x LG W2286L @ 3360x1050 | 2x 500Gb Samsung F3 RAID0 |-

  4. #4
    ɹoʇɐɹǝpoɯ Aaron's Avatar
    Join Date
    May 2006
    Posts
    19,853
    Thanks
    334
    Thanked 1,474 Times in 1,023 Posts
    Rep Power
    10

    Default

    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?

  5. #5
    Cake <3. VJ's Avatar
    Join Date
    May 2010
    Location
    Reading
    Posts
    1,195
    Thanks
    343
    Thanked 77 Times in 59 Posts
    Rep Power
    1

    Default

    Quote Originally Posted by Aaron View Post
    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
    -| Intel Core i5 750 @ 4Ghz | 2x4Gb Corsair Vengeance @ 1.6Ghz |-
    -| MSI nVidia GTX460 "Cyclone" OC 1024Mb | Logitech X-540 5.1 | Asus Xonar D2X |-
    -| Antec 1200 | 2x LG W2286L @ 3360x1050 | 2x 500Gb Samsung F3 RAID0 |-

  6. #6
    ɹoʇɐɹǝpoɯ Aaron's Avatar
    Join Date
    May 2006
    Posts
    19,853
    Thanks
    334
    Thanked 1,474 Times in 1,023 Posts
    Rep Power
    10

    Default

    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

  7. #7
    Cake <3. VJ's Avatar
    Join Date
    May 2010
    Location
    Reading
    Posts
    1,195
    Thanks
    343
    Thanked 77 Times in 59 Posts
    Rep Power
    1

    Default

    Quote Originally Posted by Aaron View Post
    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..:

    Code:
    @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...
    Code:
    @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?
    -| Intel Core i5 750 @ 4Ghz | 2x4Gb Corsair Vengeance @ 1.6Ghz |-
    -| MSI nVidia GTX460 "Cyclone" OC 1024Mb | Logitech X-540 5.1 | Asus Xonar D2X |-
    -| Antec 1200 | 2x LG W2286L @ 3360x1050 | 2x 500Gb Samsung F3 RAID0 |-

  8. #8
    ɹoʇɐɹǝpoɯ Aaron's Avatar
    Join Date
    May 2006
    Posts
    19,853
    Thanks
    334
    Thanked 1,474 Times in 1,023 Posts
    Rep Power
    10

    Default

    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..

  9. #9
    Cake <3. VJ's Avatar
    Join Date
    May 2010
    Location
    Reading
    Posts
    1,195
    Thanks
    343
    Thanked 77 Times in 59 Posts
    Rep Power
    1

    Default

    Quote Originally Posted by Aaron View Post
    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
    -| Intel Core i5 750 @ 4Ghz | 2x4Gb Corsair Vengeance @ 1.6Ghz |-
    -| MSI nVidia GTX460 "Cyclone" OC 1024Mb | Logitech X-540 5.1 | Asus Xonar D2X |-
    -| Antec 1200 | 2x LG W2286L @ 3360x1050 | 2x 500Gb Samsung F3 RAID0 |-

  10. #10
    ɹoʇɐɹǝpoɯ Aaron's Avatar
    Join Date
    May 2006
    Posts
    19,853
    Thanks
    334
    Thanked 1,474 Times in 1,023 Posts
    Rep Power
    10

    Default

    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

  11. #11
    go big or go home Faz's Avatar
    Join Date
    Mar 2010
    Location
    Mid Sussex
    Posts
    2,456
    Thanks
    346
    Thanked 179 Times in 137 Posts
    Rep Power
    1

    Default

    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?

    Main: Crucial C300 64GB | Phenom II 965 @ 4.0 | 8GB | MSI HD6870 | M4A89GTD USB3 | Xonar DS | VE278Q
    Secondary: Fractal Core 1000 | x2 250 | GTX460 | 2GB | 760GM |
    Server:
    Server 2008 R2 | E6750 | 2GB | 1.5tb
    Bikes: Zesty 314 2012 | Rockhopper Expert 2010

  12. #12
    Cake <3. VJ's Avatar
    Join Date
    May 2010
    Location
    Reading
    Posts
    1,195
    Thanks
    343
    Thanked 77 Times in 59 Posts
    Rep Power
    1

    Default

    Quote Originally Posted by Faz View Post
    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
    -| Intel Core i5 750 @ 4Ghz | 2x4Gb Corsair Vengeance @ 1.6Ghz |-
    -| MSI nVidia GTX460 "Cyclone" OC 1024Mb | Logitech X-540 5.1 | Asus Xonar D2X |-
    -| Antec 1200 | 2x LG W2286L @ 3360x1050 | 2x 500Gb Samsung F3 RAID0 |-

  13. #13
    go big or go home Faz's Avatar
    Join Date
    Mar 2010
    Location
    Mid Sussex
    Posts
    2,456
    Thanks
    346
    Thanked 179 Times in 137 Posts
    Rep Power
    1

    Default

    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.

    Main: Crucial C300 64GB | Phenom II 965 @ 4.0 | 8GB | MSI HD6870 | M4A89GTD USB3 | Xonar DS | VE278Q
    Secondary: Fractal Core 1000 | x2 250 | GTX460 | 2GB | 760GM |
    Server:
    Server 2008 R2 | E6750 | 2GB | 1.5tb
    Bikes: Zesty 314 2012 | Rockhopper Expert 2010

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •