SRCDS Steam group


Advanced .bat Files for YOUR srcds!
#1
All right guys I am just gettin into the forums, but I thought I would share my custom bat files that were provided by SRCDS, but have been spiced up a bit!



Now for your regular srcds start up bat here is my version

Quote:@echo off
cls
echo Protecting your Source Dedicated Server From Crashes
title Source Dedicated Server Crash Recovery Utility
:srcds
echo (%date%) (%time%) Source Dedicated Server Started
start /high /wait C:\SRCDS\srcds.exe -console -game cstrike +map de_dust +fps_max 600 -vacbeta -maxplayers 10 -autoupdate -port 27016 -tickrate 100
echo ***************************************************************
echo (%date%) (%time%)
echo WARNING: Source Dedicated Server closed or crashed, restarting.
echo ***************************************************************
goto srcds

That will start up your server for CS:S on map de_dust with Vacbeta running on port 27016 for 10 players at 100 tick


Now I have an updated bat file for updating all your CS:S and HL2DM stuff!

Quote:@echo off
title SRCDS Update Utility
echo (%date%)
echo (%time%)
echo ===================================
echo = Updating Counter-Strike: Source =
echo ===================================
hldsupdatetool.exe -command update -game "Counter-Strike Source" -dir c:\SRCDS
echo (%time%) Counter-Stirke Content is Up to Date
echo *****************************************
echo (%date%)
echo (%time%)
echo ===================================
echo = Updating Half-Life 2 Deathmatch =
echo ===================================
hldsupdatetool -command update -game "hl2mp" -dir c:\SRCDS
echo (%time%) Half-Life 2 Deathmatch Content is Up to Date
echo (%time%) SRCDS is now up to date!
pause

Now I KNOW for a fact that the forums do not display my Text properly, so I will provide some links for the TXT version of them and you just save them with the .bat file extension! The web txt will display them with the right line breaks

srcds start up:

Txt file

update_all files:

Txt File

Comments and suggestions are helpful and nice ^^

If you have any questions please PM me or message me on xfire!

I will also soon post a SRCDS back up and restore utility that you can use for backing up your server with one click. It even makes sure not to back things up that havent changed!
Reply
#2
Seems real good! For the people who aren't familiarized with bat files, I've now made a copy of DarkZealots text and made it so you only update CS:S/HL2Big GrinM.

CS:S update
Code:
@echo off
title SRCDS Update Utility
echo (%date%)
echo (%time%)
echo ===================================
echo = Updating Counter-Strike: Source =
echo ===================================
hldsupdatetool.exe -command update -game "Counter-Strike Source" -dir c:\SRCDS
echo (%time%) Counter-Stirke Content is Up to Date
echo *****************************************
echo (%date%)
echo (%time%)
pause

HL2Big GrinM update
Code:
@echo off
title SRCDS Update Utility
echo ===================================
echo = Updating Half-Life 2 Deathmatch =
echo ===================================
hldsupdatetool -command update -game "hl2mp" -dir c:\SRCDS
echo (%time%) Half-Life 2 Deathmatch Content is Up to Date
pause

Hope it works, folks!

EDIT\ Lol, I just looked at the code and saw that hl2mp is in the same dir as cs:s. Is that because they should be? Or is it just so you can launch either hl2mp or cs:s from the same DS window? :S
Reply
#3
On my server I have them in the samed DIR because I only run DM for showing off custom maps n stuff.

I still need to install mani mod into it
Reply
#4
Ok...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)