SRCDS Steam group


Auto-update server tf2
#1
Is it possible to implement a server tf2 AutoUpdate for Windows, as soon as the update without any user intervention?
Sorry for my bad English.
Made in Ukraine
[Image: b_350x20_CFFAD41-E98100-000000-591F11.png]
[Image: b_350_20_FFAD41_E98100_000000_591F11.png]
Reply
#2
http://forums.alliedmods.net/showthread.php?t=156966
And then make a simple bat script you run ex every 5 min, there check if need.update existss, and if it exists then it should stop you server, update it and start it again Big Grin
[Image: b_350_20_692108_381007_FFFFFF_000000.png]
I only have 1 server Sad
Attack2
Reply
#3
(07-02-2011, 10:43 PM)klausenbusk Wrote:  http://forums.alliedmods.net/showthread.php?t=156966
And then make a simple bat script you run ex every 5 min, there check if need.update existss, and if it exists then it should stop you server, update it and start it again Big Grin

All files on the server plug-in installed, the file need.update appeared in the server console displays: L 07/02/2011 - 17:38:44: [outdated-do.smx] need.update, but it is empty, are now made
♥ MasterRequestRestart
Your server is out of date. Please update and restart.
I do not quite understand it
Quote:And then make a simple bat script you run ex every 5 min.
You will not be difficult to write a script bat, specify the destination folder the script and put it on the forum.
Thanks in advance.

Made in Ukraine
[Image: b_350x20_CFFAD41-E98100-000000-591F11.png]
[Image: b_350_20_FFAD41_E98100_000000_591F11.png]
Reply
#4
I'd have to advise you that if an update comes out and the script is running every 5 minutes it will end up kicking your players and updating the server. Although I mean that script looks like it doesn't reboot the server if people are playing but just beware.
Game Servers -- CentralFrag.com -- Use promocode "frag" for 15% off every month!
Reply
#5
Help make the script bat for this plugin, or may have yet another way? For me, it is important.
Made in Ukraine
[Image: b_350x20_CFFAD41-E98100-000000-591F11.png]
[Image: b_350_20_FFAD41_E98100_000000_591F11.png]
Reply
#6
You need to custom it:
Code:
@echo off

:: If need.update not exist stop script
if not exist C:\cssserver\servers\server1\orangebox\cstrike\need.update exit

:: Update code
cd C:\cssserver
HldsUpdateTool.exe -command update -game "Counter-Strike Source" -dir  C:\cssserver\games\css
:: Update code end

:: Script there start the server
C:\cssserver\servers\start-server1.bat

exit

And set sm_outdated_do 4 in our server.cfg
[Image: b_350_20_692108_381007_FFFFFF_000000.png]
I only have 1 server Sad
Attack2
Reply
#7
(07-03-2011, 05:16 AM)klausenbusk Wrote:  You need to custom it:
Code:
@echo off

:: If need.update not exist stop script
if not exist C:\cssserver\servers\server1\orangebox\cstrike\need.update exit

:: Update code
cd C:\cssserver
HldsUpdateTool.exe -command update -game "Counter-Strike Source" -dir  C:\cssserver\games\css
:: Update code end

:: Script there start the server
C:\cssserver\servers\start-server1.bat

exit

And set sm_outdated_do 4 in our server.cfg

I still do not understand your bat the file is not different from mine, can register in my batch file as needed?

My bat file to start the server:
Code:
@echo off
cls
color A
echo Protecting srcds from crashes...
title by WAR100CK SERVER ADrenaliN CW
:srcds
echo (%time%) srcds started.
start /wait /abovenormal srcds.exe -game tf -console -secure -autoupdate -debug -nocrashdialog +fps_max 0 -tickrate 66 +port 27015 +ip 0.0.0.0 +map cp_badlands +maxplayers 14 +log on +exec server.cfg
echo (%time%) WARNING: srcds closed or crashed, restarting....
goto srcds
quit

Made in Ukraine
[Image: b_350x20_CFFAD41-E98100-000000-591F11.png]
[Image: b_350_20_FFAD41_E98100_000000_591F11.png]
Reply
#8
5 min
Code:
@echo off
cls
color A
echo Protecting srcds from crashes...
title by WAR100CK SERVER ADrenaliN CW
:srcds
echo (%time%) srcds started.
start /wait /abovenormal srcds.exe -game tf -console -secure -autoupdate -debug -nocrashdialog +fps_max 0 -tickrate 66 +port 27015 +ip 0.0.0.0 +map cp_badlands +maxplayers 14 +log on +exec server.cfg
echo (%time%) WARNING: srcds closed or crashed, restarting....
if not exist C:\cssserver\servers\server1\orangebox\cstrike\need.update goto srcds

:: Update code
cd C:\cssserver
HldsUpdateTool.exe -command update -game "Counter-Strike Source" -dir  C:\cssserver\games\css
:: Update code end

goto srcds
quit
Try it
[Image: b_350_20_692108_381007_FFFFFF_000000.png]
I only have 1 server Sad
Attack2
Reply
#9
Thanks, I'll try, but I found something, too, but there are problems on the local computer is running without problems on the hosting refuses to start, it's too late, the program will lay out tomorrow
I am translating Google, so do not get mad at me)
soft toss tomorrow, but you must realize, software appeared long ago on the Internet
Made in Ukraine
[Image: b_350x20_CFFAD41-E98100-000000-591F11.png]
[Image: b_350_20_FFAD41_E98100_000000_591F11.png]
Reply
#10
http://forums.srcds.com/viewtopic/16628
[BR5DY]
Asher Software
http://ashersoftware.com

seDirector (formerly SRCDS Admin) - a management suite for all of your Source Engine servers (auto-update in Windows, too)
Newsletter Signup - providing information on beta & stable releases and more
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)