Raised This Month: $51 Target: $400
 12% 

CS:GO Steam CMD


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
moxie2020
Veteran Member
Join Date: Aug 2011
Old 08-12-2012 , 01:32   CS:GO Steam CMD
Reply With Quote #1

So you can automate Steam CMD to update the servers, correct?

Can you also add some lines to that config that will restart the servers upon completion?

If not is someone working of a server manager for SteamCMD and CSGO servers?
moxie2020 is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 08-12-2012 , 01:48   Re: CS:GO Steam CMD
Reply With Quote #2

I have a working batch file that will update the servers (the first time you execute the batch file) and then start the game server... upon game crash, it will auto-restart the game server.

I got the update information from here... and the game restart upon crash was from ages ago for our CS:S server...

For this example, steamcmd is in c:\steamcmd along with update_csgo.txt. My game is installed in srcds_go:

batch file looks something like:
Code:
::=======================::
::  SRCDS Guardian 3.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                    ::
::=========================================================::

set updcmd=c:\steamcmd\SteamCmd.exe +runscript update_csgo.txt

set servername=Your Server Name Here

set runcmd=c:\srcds_go\srcds.exe -game csgo -console -usercon +game_type 0 +game_mode 0 +mapgroup mg_bomb +map de_dust2

@echo off

title SRCDS Guardian 3.0   %servername%

cls

echo ***********************************************************************
echo Now checking for CSGO Updates, server will start after this is complete
echo ***********************************************************************
echo .
start /wait %updcmd%
echo :: Update process complete ::

echo SRCDS Guardian 3.0 has been started!
echo.
echo *************************************************************************
echo To close the server, close this window and type exit in the server window
echo *************************************************************************
echo.
echo.
echo %servername% is now starting...
>> "%servername%.log" echo.
>> "%servername%.log" echo.
>> "%servername%.log" echo (%date%)(%time%) SRCDS Guardian 3.0 has been started!
>> "%servername%.log" echo (%date%)(%time%) %servername% is now starting...

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

echo.
echo (%date%)(%time%) %servername% is now ONLINE
echo Watching %servername% for crashes...
>> "%servername%.log" echo.
>> "%servername%.log" echo (%date%)(%time%) %servername% is now ONLINE
>> "%servername%.log" echo (%date%)(%time%) Watching %servername% for crashes...

::Start the actual server
start /wait %runcmd%
echo.
echo (%date%)(%time%) Crash or Close detected!
echo %servername% is now restarting...
>> "%servername%.log" echo.
>> "%servername%.log" echo (%date%)(%time%) Crash or Close detected!
>> "%servername%.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

the update_csgo.txt looks like:
Code:
login user pass
force_install_dir C:\srcds_go\
app_update 740
quit
__________________
View my Plugins | Donate
TnTSCS is offline
moxie2020
Veteran Member
Join Date: Aug 2011
Old 08-12-2012 , 14:46   Re: CS:GO Steam CMD
Reply With Quote #3

Quote:
Originally Posted by TnTSCS View Post
I have a working batch file that will update the servers (the first time you execute the batch file) and then start the game server... upon game crash, it will auto-restart the game server.

I got the update information from here... and the game restart upon crash was from ages ago for our CS:S server...

For this example, steamcmd is in c:\steamcmd along with update_csgo.txt. My game is installed in srcds_go:

batch file looks something like:
Code:
::=======================::
::  SRCDS Guardian 3.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                    ::
::=========================================================::

set updcmd=c:\steamcmd\SteamCmd.exe +runscript update_csgo.txt

set servername=Your Server Name Here

set runcmd=c:\srcds_go\srcds.exe -game csgo -console -usercon +game_type 0 +game_mode 0 +mapgroup mg_bomb +map de_dust2

@echo off

title SRCDS Guardian 3.0   %servername%

cls

echo ***********************************************************************
echo Now checking for CSGO Updates, server will start after this is complete
echo ***********************************************************************
echo .
start /wait %updcmd%
echo :: Update process complete ::

echo SRCDS Guardian 3.0 has been started!
echo.
echo *************************************************************************
echo To close the server, close this window and type exit in the server window
echo *************************************************************************
echo.
echo.
echo %servername% is now starting...
>> "%servername%.log" echo.
>> "%servername%.log" echo.
>> "%servername%.log" echo (%date%)(%time%) SRCDS Guardian 3.0 has been started!
>> "%servername%.log" echo (%date%)(%time%) %servername% is now starting...

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

echo.
echo (%date%)(%time%) %servername% is now ONLINE
echo Watching %servername% for crashes...
>> "%servername%.log" echo.
>> "%servername%.log" echo (%date%)(%time%) %servername% is now ONLINE
>> "%servername%.log" echo (%date%)(%time%) Watching %servername% for crashes...

::Start the actual server
start /wait %runcmd%
echo.
echo (%date%)(%time%) Crash or Close detected!
echo %servername% is now restarting...
>> "%servername%.log" echo.
>> "%servername%.log" echo (%date%)(%time%) Crash or Close detected!
>> "%servername%.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
the update_csgo.txt looks like:
Code:
login user pass
force_install_dir C:\srcds_go\
app_update 740
quit
Unfortunately I am using Linux but I am also looking for something that restarts the servers once the update is completed but not until it is.
moxie2020 is offline
Mike_BoG
SourceMod Donor
Join Date: Jul 2011
Old 08-12-2012 , 14:57   Re: CS:GO Steam CMD
Reply With Quote #4

Modify nemrun, that's what I tried to.
Mike_BoG is offline
moxie2020
Veteran Member
Join Date: Aug 2011
Old 08-12-2012 , 19:59   Re: CS:GO Steam CMD
Reply With Quote #5

Quote:
Originally Posted by Mike_BoG View Post
Modify nemrun, that's what I tried to.
That would be ideal. But its over my head.
moxie2020 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 08-13-2012 , 09:40   Re: CS:GO Steam CMD
Reply With Quote #6

On a side note, hopefully Valve comes through and stops requiring logins for CS:GO servers when it launches in 8 days.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 08-13-2012 , 11:25   Re: CS:GO Steam CMD
Reply With Quote #7

Quote:
Originally Posted by Powerlord View Post
On a side note, hopefully Valve comes through and stops requiring logins for CS:GO servers when it launches in 8 days.
I doubt it'll be that soon. Nuclear Dawn still requires logins.
__________________
Dr. McKay is offline
zeroibis
Veteran Member
Join Date: Jun 2007
Old 08-20-2012 , 14:56   Re: CS:GO Steam CMD
Reply With Quote #8

For the logins do you need to own cs:go in order to install the DS then? I understand if for the beta but will this be the case for the actual game. Is there a limit to how many installs you can do?
__________________
zeroibis is offline
psychonic

BAFFLED
Join Date: May 2008
Old 08-20-2012 , 16:30   Re: CS:GO Steam CMD
Reply With Quote #9

Quote:
Originally Posted by zeroibis View Post
For the logins do you need to own cs:go in order to install the DS then?
No, as of a few days ago.
psychonic is offline
zeroibis
Veteran Member
Join Date: Jun 2007
Old 08-20-2012 , 22:18   Re: CS:GO Steam CMD
Reply With Quote #10

Also I hear about this other update tool we can use instead: http://didrole.com/UpdateTool/
__________________
zeroibis is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode