SRCDS Steam group


Windows auto start ?
#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


Messages In This Thread
Windows auto start ? - SanMan - 01-28-2008, 06:38 AM
RE: Windows auto start ? - Mooga - 01-28-2008, 06:58 AM
RE: Windows auto start ? - SanMan - 01-28-2008, 07:13 AM
RE: Windows auto start ? - Drocona - 01-28-2008, 08:18 AM
RE: Windows auto start ? - Mooga - 01-28-2008, 11:11 AM
RE: Windows auto start ? - SanMan - 01-29-2008, 12:04 AM
RE: Windows auto start ? - SanMan - 01-28-2008, 03:48 PM
RE: Windows auto start ? - Mooga - 01-29-2008, 12:22 AM
RE: Windows auto start ? - SanMan - 01-29-2008, 12:29 AM
RE: Windows auto start ? - Drocona - 01-29-2008, 05:30 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)