SRCDS Steam group


Server updates
#1
Question 
Hey all,

I have a problem I just cant seem to fix. Maybe I'm missing something, but I've tried everything I've been able to find.

My problem is that, quite simply, my servers wont update (Garry's mod and Team Fortress 2). I don't know why, I've tried using the hldsupdatetool with the whole -command update and -verify_all crap, which does nothing. It just tells me over and over again it cant find the installation at the given directory, (BUT ITS THERE!) and then starts downloading something random, like the TF2 dedicated server tool, which I don't need. I can start the server up no problem, but, obviously I cant join, as the versions are different...

Please tell me what I'm doing wrong, or if there's a "quick fix"...

Thanks guys. Sad
Reply
#2
Sounds to me you forgot or incorrectly set the -dir command for the updater.
It only gives those messages when you do a completely new install.

if your srcds.exe is in C:\SRCDS\orangebox
the -dir should be C:\SRCDS
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
Reply
#3
Question 
Hey man,

That seems to have done it. Its now going through everything and making sure its all there.

But, does it have to do this every time the game updates? Is there a quicker way? Like it just updates the components that are changed?
And, is there a quick way I can do it? Instead off going through CMD each time? Like a file that I can just click and open or something?

Thanks again. Smile
Reply
#4
Add the command to a batch script.
Also, remote -verify_all from the update line.
~ 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.
Reply
#5
Smile 
Mooga Wrote:Add the command to a batch script.

Where do I get one of those? Can you link me? Or can it be made maybe?

Thanks Smile
Reply
#6
You can download Mooga's:
http://forums.srcds.com/viewtopic/8206

Take the .zip folder and extract it for the batch script!
Reply
#7
realchamp Wrote:You can download Mooga's:
http://forums.srcds.com/viewtopic/8206

Take the .zip folder and extract it for the batch script!

That's great. Now I got a batch file!
But, how do I make it so it updates my server? Sad
Reply
#8
Well, if it was Linux, you could just add -autoupdate in the end, of the line.

But, I got this to work. When you start up your server, the "hldsupdatetool" will start to check for updates, but it will just work next time
you restart your server.

I'm not entirely sure about, the bad news about it(if there's some), I haven't had problems yet!

Code:
:=======================::
::  SRCDS Guardian 2.0   ::
::         Mooga         ::
::       srcds.com       ::
::=======================::

::=========================================================::
:: Thanks To Black-Sky & Drocona for making SRCDS Guardian ::
:: This script is open source.  Feel free to edit at will. ::
::                                                         ::
:: This script was writen for the use of the srcds.com     ::
:: online community.  If you are interested in running a   ::
:: Source Dedicated Server or need help, drop by our       ::
:: forums at... http://forums.srcds.com                    ::
::=========================================================::



:: This will keep the window clean and easy to read
@echo off

::=======================::
::  SET YOUR VARIABLES!  ::
::=======================::

::=======================::
::  Window and Log name  ::
::  Replace "My Server"  ::
::=======================::
set servername="server!"

::=======================::
::   Your start command  ::
::=======================::
set runcmd=C:/srcds/srcds.exe -console -game cstrike -tickrate 100 +map de_dust2 +maxplayers 3
set updatecmd=C:/srcds/hldsupdatetool.exe -command update -game "Counter-Strike Source" -dir .

:: Sets the title of the window
title SRCDS Guardian 2.0   %servername%


:: Clears the window incase there is anything there
cls


:: Prints to the window what we are doing
echo SRCDS Guardian 2.0 has been started!
echo.
echo **************************************************************************
echo To close the server, close this windows and type exit in the server window
echo **************************************************************************
echo.
echo.

>> %servername%_Guardian.log echo.
>> %servername%_Guardian.log echo (%date%)(%time%) SRCDS Guardian 2.0 has been started!

echo (%date%)(%time%) %servername% is now starting...
>> %servername%_Guardian.log echo (%date%)(%time%) %servername% is now starting...

:: This is a return point in case the server crashes or is closed
:restart

echo (%date%)(%time%) %servername% is now online
>> %servername%_Guardian.log echo (%date%)(%time%) %servername% is now online

echo Watching %servername% for crashes...
>> %servername%_Guardian.log echo (%date%)(%time%) Watching %servername% for crashes...

::Start the actual server
start %updatecmd%
start /wait %runcmd%

echo (%date%)(%time%) Crash or Close detected!
>> %servername%_Guardian.log echo (%date%)(%time%) Crash or Close detected!

echo (%date%)(%time%) %servername% is now restarting...
>> %servername%_Guardian.log echo (%date%)(%time%) %servername% is now restarting...

::Server crashed or closed, so we point it to the return point to start the server again
goto restart
Reply
#9
realchamp Wrote:Well, if it was Linux, you could just add -autoupdate in the end, of the line.

But, I got this to work. When you start up your server, the "hldsupdatetool" will start to check for updates, but it will just work next time
you restart your server.

I'm not entirely sure about, the bad news about it(if there's some), I haven't had problems yet!

Code:
:=======================::
::  SRCDS Guardian 2.0   ::
::         Mooga         ::
::       srcds.com       ::
::=======================::

::=========================================================::
:: Thanks To Black-Sky & Drocona for making SRCDS Guardian ::
:: This script is open source.  Feel free to edit at will. ::
::                                                         ::
:: This script was writen for the use of the srcds.com     ::
:: online community.  If you are interested in running a   ::
:: Source Dedicated Server or need help, drop by our       ::
:: forums at... http://forums.srcds.com                    ::
::=========================================================::



:: This will keep the window clean and easy to read
@echo off

::=======================::
::  SET YOUR VARIABLES!  ::
::=======================::

::=======================::
::  Window and Log name  ::
::  Replace "My Server"  ::
::=======================::
set servername="server!"

::=======================::
::   Your start command  ::
::=======================::
set runcmd=C:/srcds/srcds.exe -console -game cstrike -tickrate 100 +map de_dust2 +maxplayers 3
set updatecmd=C:/srcds/hldsupdatetool.exe -command update -game "Counter-Strike Source" -dir .

:: Sets the title of the window
title SRCDS Guardian 2.0   %servername%


:: Clears the window incase there is anything there
cls


:: Prints to the window what we are doing
echo SRCDS Guardian 2.0 has been started!
echo.
echo **************************************************************************
echo To close the server, close this windows and type exit in the server window
echo **************************************************************************
echo.
echo.

>> %servername%_Guardian.log echo.
>> %servername%_Guardian.log echo (%date%)(%time%) SRCDS Guardian 2.0 has been started!

echo (%date%)(%time%) %servername% is now starting...
>> %servername%_Guardian.log echo (%date%)(%time%) %servername% is now starting...

:: This is a return point in case the server crashes or is closed
:restart

echo (%date%)(%time%) %servername% is now online
>> %servername%_Guardian.log echo (%date%)(%time%) %servername% is now online

echo Watching %servername% for crashes...
>> %servername%_Guardian.log echo (%date%)(%time%) Watching %servername% for crashes...

::Start the actual server
start %updatecmd%
start /wait %runcmd%

echo (%date%)(%time%) Crash or Close detected!
>> %servername%_Guardian.log echo (%date%)(%time%) Crash or Close detected!

echo (%date%)(%time%) %servername% is now restarting...
>> %servername%_Guardian.log echo (%date%)(%time%) %servername% is now restarting...

::Server crashed or closed, so we point it to the return point to start the server again
goto restart

Okay, I'll give it a try. Smile
Reply
#10
That wont work.
Autoupdate doesn't work in windows.

Blits: Give me and full path to Hldsupdatetool.exe and your srcds.exe and the game. I'll write one for you.
~ 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.
Reply
#11
I didn't use the -autoupdate command Wink. And it works just fine Wink..
Check here:

[Image: w00t1.jpg]
[Image: w00t2.jpg]
[Image: w00t3.jpg]

I've just opened your batch script and this it what there came.

When you quit the server agian, the update will be startet, and if it crashes your server wouldn't crash Toungue
Reply
#12
Question 
Mooga Wrote:That wont work.
Autoupdate doesn't work in windows.

Blits: Give me and full path to Hldsupdatetool.exe and your srcds.exe and the game. I'll write one for you.

HLDSUPDATETOOL.EXE - F:\srcds\hldsupdatetool.exe
SRCDS.EXE - F:\srcds\orangebox\srcds.exe
GAME - F:\srcds\orangebox\garrysmod

Hope that's enough? Smile
Reply
#13
lol! That posted script WOULD work...
I didn't realize he added the update line Toungue
~ 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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)