Posts: 20
Threads: 3
Joined: Feb 2008
Reputation:
0
11-17-2008, 06:59 PM
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.
Posts: 5,178
Threads: 65
Joined: Mar 2005
Reputation:
22
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
Posts: 20
Threads: 3
Joined: Feb 2008
Reputation:
0
11-18-2008, 02:50 AM
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.
Posts: 3,906
Threads: 404
Joined: Oct 2007
Reputation:
21
Add the command to a batch script.
Also, remote -verify_all from the update line.
~ Mooga ...w00t? - SRCDS.com on Twitter
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.
Posts: 20
Threads: 3
Joined: Feb 2008
Reputation:
0
11-18-2008, 05:52 PM
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
Posts: 7,778
Threads: 176
Joined: May 2008
Reputation:
83
11-18-2008, 07:17 PM
(This post was last modified: 11-18-2008, 07:17 PM by realchamp.)
You can download Mooga's:
http://forums.srcds.com/viewtopic/8206
Take the .zip folder and extract it for the batch script!
Posts: 20
Threads: 3
Joined: Feb 2008
Reputation:
0
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?
Posts: 7,778
Threads: 176
Joined: May 2008
Reputation:
83
11-18-2008, 09:04 PM
(This post was last modified: 11-18-2008, 09:05 PM by realchamp.)
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
Posts: 20
Threads: 3
Joined: Feb 2008
Reputation:
0
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.
Posts: 3,906
Threads: 404
Joined: Oct 2007
Reputation:
21
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
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.
Posts: 7,778
Threads: 176
Joined: May 2008
Reputation:
83
11-19-2008, 01:32 AM
(This post was last modified: 11-19-2008, 01:56 AM by realchamp.)
I didn't use the -autoupdate command . And it works just fine ..
Check here:
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
Posts: 20
Threads: 3
Joined: Feb 2008
Reputation:
0
11-19-2008, 01:47 AM
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?
Posts: 3,906
Threads: 404
Joined: Oct 2007
Reputation:
21
lol! That posted script WOULD work...
I didn't realize he added the update line
~ Mooga ...w00t? - SRCDS.com on Twitter
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.
|