SRCDS Steam group


Windows auto start ?
#1
Wink 
Was wondering if there is a "Auto Start" script for windows ?
I have seen scripts linux but not windows or Maybe windows can not be restarted..
Reply
#2
to restart srcds or windows?
~ Mooga ...w00t? - SRCDS.com on Twitter
[Image: 76561197965445574.png]
Please do not PM me for server related help
fqdn Wrote:if you've seen the any of the matrix movies, a game server is not all that different. it runs a version of the game that handles the entire world for each client connected. that's the 2 sentence explanation.
Reply
#3
I'm sorry srcds I mean. using windows
Reply
#4
There are some batch scripts written by people (including me)

I made one for CSS and alike
Mooga has edited mine to work with TF2

Just search on these forums for "SRCDS Guardian" and you should find it
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
Reply
#5
You can turn it into a service.
OR, you can customize this bat script and add a shortcut to your start-up folder.
And as mentioned, most of the credit goes to Drocona.
I just re-wrote comments and made it a little easier for newbies Smile

Code:
::=======================::
::    SRCDS Guardian     ::
::      Black-Sky        ::
::       Drocona         ::
::                       ::
::   EDITED FOR DEFRAG   ::
::       BY MOOGA        ::
::                       ::
::      TF2 Version      ::
::=======================::


::This will make the window clear, remove all paths etc, just to keep the important stuff
@echo off


::Give a name to the window, nothing really important.
title SRCDS Guardian               TF2 Server


::Clear the window
cls


::Report to console what we are doing
echo ****To close this script, close this windows and then the SRCDS window****

echo.
echo.
echo Watching the TF2 SRCDS for crashes

>> TF2_Guardian.log echo.
>> TF2_Guardian.log echo (%date%)(%time%) Started up SRCDS Guardian for TF2.

::Insert a return point if it crashes
:srcds


echo (%date%)(%time%)        TF2 Server is now online.

>> TF2_Guardian.log echo (%date%)(%time%)        TF2 Server is now online.


::Start the actual server
start /wait C:\hl2server\orangebox\srcds.exe -console -game tf -maxplayers 24 +fps_max 200 -port 27015 +map ctf_2fort -tickrate 66


echo (%date%)(%time%) TF2 Server crashed or closed. Now restarting...

>> TF2_Guardian.log echo (%date%)(%time%) TF2 Server crashed or closed. Now restarting...


::Server crashed or closed, so we point it to the return point to start the server again
goto srcds
~ Mooga ...w00t? - SRCDS.com on Twitter
[Image: 76561197965445574.png]
Please do not PM me for server related help
fqdn Wrote:if you've seen the any of the matrix movies, a game server is not all that different. it runs a version of the game that handles the entire world for each client connected. that's the 2 sentence explanation.
Reply
#6
Wow , thank you both just what I'm looking for ; )
Reply
#7
Mooga Wrote:You can turn it into a service.
OR, you can customize this bat script and add a shortcut to your start-up folder.
And as mentioned, most of the credit goes to Drocona.
I just re-wrote comments and made it a little easier for newbies Smile

Code:
::=======================::
::    SRCDS Guardian     ::
::      Black-Sky        ::
::       Drocona         ::
::                       ::
::   EDITED FOR DEFRAG   ::
::       BY MOOGA        ::
::                       ::
::      TF2 Version      ::
::=======================::


::This will make the window clear, remove all paths etc, just to keep the important stuff
@echo off


::Give a name to the window, nothing really important.
title SRCDS Guardian               TF2 Server


::Clear the window
cls


::Report to console what we are doing
echo ****To close this script, close this windows and then the SRCDS window****

echo.
echo.
echo Watching the TF2 SRCDS for crashes

>> TF2_Guardian.log echo.
>> TF2_Guardian.log echo (%date%)(%time%) Started up SRCDS Guardian for TF2.

::Insert a return point if it crashes
:srcds


echo (%date%)(%time%)        TF2 Server is now online.

>> TF2_Guardian.log echo (%date%)(%time%)        TF2 Server is now online.


::Start the actual server
start /wait C:\hl2server\orangebox\srcds.exe -console -game tf -maxplayers 24 +fps_max 200 -port 27015 +map ctf_2fort -tickrate 66


echo (%date%)(%time%) TF2 Server crashed or closed. Now restarting...

>> TF2_Guardian.log echo (%date%)(%time%) TF2 Server crashed or closed. Now restarting...


::Server crashed or closed, so we point it to the return point to start the server again
goto srcds

So dose this bat script. When finshed go in my wondows folder or in my Local Disk (CSmile I did ty a Search last night for SRCDS Guardian.. But could not find link maybe overlooked. I sorry at this point it seems like I'am newbed out...
Reply
#8
It doesn't matter were you put it.
As long at as you make sure this line leader to where your server is:
Code:
::Start the actual server
start /wait C:\hl2server\orangebox\srcds.exe -console -game tf -maxplayers 24 +fps_max 200 -port 27015 +map ctf_2fort -tickrate 66

Also, make sure you close SRCDS Guardian before shutting down your server or it will just re-start.
~ Mooga ...w00t? - SRCDS.com on Twitter
[Image: 76561197965445574.png]
Please do not PM me for server related help
fqdn Wrote:if you've seen the any of the matrix movies, a game server is not all that different. it runs a version of the game that handles the entire world for each client connected. that's the 2 sentence explanation.
Reply
#9
Thank you ; ) You rock!!
Just made to a .bat an I'm d*a*m*n happy for all yours and Drocona help!
Reply
#10
You are welcome, that's what we are here for, have fun with your server Smile
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)