08-29-2007, 08:21 AM
I was working with Drocona on another problem and he related some great info with regard to the SRCDS Autoupdate feature. I wanted to share it with people in case it may be missed in my unrelated post.
Thanks to Drocona for this info, I'm sure it will help a lot of people in need.
AutoUpdate Info Per Drocona:
-autoupdate only works on Linux, Windows simply doesn't do anything.
It works like this, every time the server starts up (so first time or after a restart) it will check if the current version is up to date with the updatetool, if it's not up to date it will update the program, then again it will check. AFTER it's checked/updated the server will start, so you'll never have any trouble with this since the server simply waits in line for the update to complete.
You can make this yourself in windows with a .bat file. I used my own restart script to put it in as an example (see attachment)
Here's basically what it's all about:
Code:
start /wait F:\SRCDS\Updater\hldsupdatetool.exe -command update -game "Counter-Strike Source" -dir F:\SRCDS
put that line right above the start /wait "pathtoserverhereblabla for startup"
Make sure you set everything correctly of course (correct paths)
SRCDS-Guardian-autoupdate.zip (http://forums.srcds.com/attachment.php?aid=286)
Thanks to Drocona for this info, I'm sure it will help a lot of people in need.
AutoUpdate Info Per Drocona:
-autoupdate only works on Linux, Windows simply doesn't do anything.
It works like this, every time the server starts up (so first time or after a restart) it will check if the current version is up to date with the updatetool, if it's not up to date it will update the program, then again it will check. AFTER it's checked/updated the server will start, so you'll never have any trouble with this since the server simply waits in line for the update to complete.
You can make this yourself in windows with a .bat file. I used my own restart script to put it in as an example (see attachment)
Here's basically what it's all about:
Code:
start /wait F:\SRCDS\Updater\hldsupdatetool.exe -command update -game "Counter-Strike Source" -dir F:\SRCDS
put that line right above the start /wait "pathtoserverhereblabla for startup"
Make sure you set everything correctly of course (correct paths)
SRCDS-Guardian-autoupdate.zip (http://forums.srcds.com/attachment.php?aid=286)
About Me:
I help people who at least try to help themselves. Please use the "Search" button before posting a new topic.
If you post, give us the info we need from the "READ ME FIRST" sticky at the top of each thread!
I'm here to share my experiences to help others. If I'm wrong about something, don't hold it against me, educate me.
I not perfect and try to learn from every failure, yours and mine.
I help people who at least try to help themselves. Please use the "Search" button before posting a new topic.
If you post, give us the info we need from the "READ ME FIRST" sticky at the top of each thread!
I'm here to share my experiences to help others. If I'm wrong about something, don't hold it against me, educate me.
I not perfect and try to learn from every failure, yours and mine.