Hi all
Thought I would share with you the script I wrote for running an automatically updating windows srcds server. As you know -autoupdate does nothing on a windows box and every time a source update comes out you have to manually update your servers which can be annoying should the admin who can VNC in is not around.
The following is a modification of what is in the tutorials here at srcds.com (http://www.srcds.com/?knowledge)
This script also launches srcdsfpsboost.exe to ensure you have the best possibly FPS on your server. I have also attached this program to the thread.
To run this script create a new txt file and call it Runserver.bat and then simply double click. Instructions on how to configure the script are in the code below.
Now all you GISP's and admins can update your servers automatically on windows every time they are started/restarted.
Hope this is useful to people, happy gaming!
FoRcEFiRe
http://forum.gamecommunity.co.uk
Thought I would share with you the script I wrote for running an automatically updating windows srcds server. As you know -autoupdate does nothing on a windows box and every time a source update comes out you have to manually update your servers which can be annoying should the admin who can VNC in is not around.
The following is a modification of what is in the tutorials here at srcds.com (http://www.srcds.com/?knowledge)
This script also launches srcdsfpsboost.exe to ensure you have the best possibly FPS on your server. I have also attached this program to the thread.
To run this script create a new txt file and call it Runserver.bat and then simply double click. Instructions on how to configure the script are in the code below.
Code:
@echo off
cls
rem =====================================================
rem |FoRcEFiRe's Windows SRCDS Auto updating server script|
rem -----------------------------------------------------
rem |This script will allow you to run a windows SRCDS |
rem |server which automatically updates itself everytime |
rem |you start or reboot it. |
rem |This was needed because -autoupdate does not work |
rem |on the windows platform. |
rem |hldsupdatetool.exe needs to be installed to the |
rem |default location (c:\program files\Valve\HLserver\) |
rem |You also need to change the DIR in this script and |
rem |point it to where you CSS server is located |
rem |(Currently C:\!CHANGETHIS!\) |
rem |srcdsfpsboost.exe should also be in the root of your |
rem |server directory to ensure you get maximum FPS |
rem |-----------------------------------------------------|
rem |Please leave this script intact, you can contact me |
rem |on srcds.com's forums (where this was orignally |
rem |posted) |
rem =====================================================
rem BELOW COMMAND STARTS THE SRCDSFPSBOOST.EXE PROGRAM THAT YOU SHOULD ALREADY HAVE, REMOVE IF YOU DONT PLAN ON RUNNING THIS.
echo (%time%) Starting FPS Boost Program
start /MIN C:\!CHANGETHIS!\srcdsfpsboost.exe
echo (%time%) Started FPS Boost successfully
rem NOW WE BEGING THE UPDATE AND SRCDS PROGRAMS
echo Protecting srcds from crashes...
title srcds.com Watchdog for CSS Server - FoRcEFiRe 2007
:srcds
echo (%time%) Change dir so we can run the update tool properly!
cd c:\Program Files\Valve\HLserver\
echo (%time%) Changed DIR with no problems, now run the update tool
start /wait hldsupdatetool.exe -command update -game "Counter-Strike Source" -dir "C:\!CHANGETHIS!"
echo (%time%) UPDATING DONE! Now start the server
echo (%time%) CSS starting in a minised window.
start /wait /High /MIN C:\!CHANGETHIS!\srcds.exe -console -game cstrike +map de_dust2 +ip XXX.XXX.XXX.XXX +maxplayers XX -tickrate XXX +fps_max 600
echo (%time%) WARNING: srcds closed or crashed, restarting.
echo -----------------------------------------------------
goto srcds
Now all you GISP's and admins can update your servers automatically on windows every time they are started/restarted.
Hope this is useful to people, happy gaming!
FoRcEFiRe
http://forum.gamecommunity.co.uk