SRCDS Steam group


Autoupdate (Auto Update) Command Line Info
#1
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)
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.
#2
The windows autoupdate thing has puzzled me for some time. Thanks for this FAQ!
#3
Thanks, that help me ALOT. Smile
#4
Thanks, but how do i change the path files?
realchamp Wrote:
Hazz Wrote:Has someone helped you on these forums? If so, help someone else
Mooga Wrote:OrangeBox is a WHORE.
#5
right click the bat file and click edit.
Then replace all the paths with your own Smile
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
#6
im stupid Sad.
realchamp Wrote:
Hazz Wrote:Has someone helped you on these forums? If so, help someone else
Mooga Wrote:OrangeBox is a WHORE.
#7
i have C:\Program Files\Valve\CSS execpy it says it cannot find C:\Program Sad
realchamp Wrote:
Hazz Wrote:Has someone helped you on these forums? If so, help someone else
Mooga Wrote:OrangeBox is a WHORE.
#8
Put quotes around it, it can't read spaces without quotes so it would be like this:

"C:\Program Files\Valve\CSS\srcds.exe" -game cstrike etc etc

if that's the location of srcds.exe
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
#9
nice script
#10
All this does is update before you start your server. It doesn't auto-update. If anything, all it does is make it take longer to re-start your server.
~ 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.
#11
If this really should autoupdate, you need to do alot of coding. Make it search for the string "Your server is out of date" and if that is found, it will stop the server, start the updating, and then start your server.

This will not be do-able in .batch files..
[Image: b_560_95_1.png][Image: b_560_95_1.png]
#12
Please do not raise old, dead threads from the dead. If you need similar help, please feel free to post your own thread with your question. Remember to read the required READ ME FIRST thread for the area in which you are posting.

Thread Locked.


Forum Jump:


Users browsing this thread: 2 Guest(s)