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

[CSGO] Auto Server Update how?


Post New Thread Reply   
 
Thread Tools Display Modes
Nolongerinthegame
AlliedModders Donor
Join Date: Sep 2005
Old 10-07-2012 , 08:44   Re: [CSGO] Auto Server Update how?
Reply With Quote #11

Quote:
Originally Posted by gH0sTy View Post

CS:GO also supports auto updates if you add the following to your command line parameters
Code:
-autoupdate -steam_dir /folder/containing/steam.sh -steamcmd_script your_update_script.txt
Content of your_update_script.txt in the same folder as steam.sh
Code:
login yourlogin yourpassword
force_install_dir /csgo/server/installation/path
app_update 740
exit
Is this for Windows?
Nolongerinthegame is offline
SuperLOL
Junior Member
Join Date: Oct 2012
Old 10-07-2012 , 10:11   Re: [CSGO] Auto Server Update how?
Reply With Quote #12

@nelioneil
Yes it will only crypting the file will not work so you need to use the normal method.
https://developer.valvesoftware.com/...ating_SteamCMD


@gH0sly

That's how it did it now:

Server start "start.sh" file ->
Code:
#! /bin/sh
read -p "Enter your password: " -s pass
gpg --passphrase $pass -d update_csgo_ds.txt.gpg 2>/dev/null | STEAMEXE=steamcmd ./steam.sh ; 
cd ./csgo_ds && screen -A -m -d -S csgo ./srcds_run -game csgo -autoupdate -console -usercon +game_type 0 +game_mode 0 +mapgroup mg_all_maps +map cs_office
pass="MegaPass"
Crypted "update_csgo_ds.txt.gpg" file ->
Code:
login [email protected] 101password
force_install_dir ./csgo_ds
app_update 740
exit
I hop i did it right.
The server starts with this script, the only problem i see is that i need to enter the password if i start the server with "./start" if i'm not wrong than the password should be filled in automatically.

Last edited by SuperLOL; 10-07-2012 at 10:47.
SuperLOL is offline
gH0sTy
SourceMod Donor
Join Date: Jul 2008
Location: DE
Old 10-08-2012 , 00:10   Re: [CSGO] Auto Server Update how?
Reply With Quote #13

Quote:
Originally Posted by nelioneil View Post
Is this for Windows?
This is for linux.
I don't know if SteamCMD supports auto updating for windows servers.

Quote:
Originally Posted by SuperLOL View Post
@nelioneil
Yes it will only crypting the file will not work so you need to use the normal method.
https://developer.valvesoftware.com/...ating_SteamCMD


@gH0sly

That's how it did it now:

Server start "start.sh" file ->
Code:
#! /bin/sh
read -p "Enter your password: " -s pass
gpg --passphrase $pass -d update_csgo_ds.txt.gpg 2>/dev/null | STEAMEXE=steamcmd ./steam.sh ; 
cd ./csgo_ds && screen -A -m -d -S csgo ./srcds_run -game csgo -autoupdate -console -usercon +game_type 0 +game_mode 0 +mapgroup mg_all_maps +map cs_office
pass="MegaPass"
Crypted "update_csgo_ds.txt.gpg" file ->
Code:
login blabla 123456
force_install_dir ./csgo_ds
app_update 740
exit
I hop i did it right.
The server starts with this script, the only problem i see is that i need to enter the password if i start the server with "./start" if i'm not wrong than the password should be filled in automatically.
If you use an encrypted file you'll probably have to enter the passphrase to decrypt it.
I don't use an encrypted file as I've created a new blank steam account that I use to install/update the servers.
gH0sTy is offline
SuperLOL
Junior Member
Join Date: Oct 2012
Old 11-01-2012 , 21:34   Re: [CSGO] Auto Server Update how?
Reply With Quote #14

Damit the server still won't auto update. Any one here that has a CSGO server that is auto updating itself?

Last edited by SuperLOL; 11-01-2012 at 21:34.
SuperLOL is offline
thenumb3rguy
Senior Member
Join Date: Oct 2012
Location: Hong Kong
Old 11-01-2012 , 21:48   Re: [CSGO] Auto Server Update how?
Reply With Quote #15

I have created that script ages ago. but the server will never update itself... shame on valve.
thenumb3rguy is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-02-2012 , 02:27   Re: [CSGO] Auto Server Update how?
Reply With Quote #16

Because it isn't designed to do an auto-update, just an update on (re)start. And before anybody claims differently, I have already tested and verified this with TF2 (I don't own CSGO, so I don't have a reason to test it or think it would be different), -autoupdate does NOT force an update, just tells the server to check for an update after each (re)start.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 11-02-2012 , 07:33   Re: [CSGO] Auto Server Update how?
Reply With Quote #17

Quote:
Originally Posted by YamiKaitou View Post
Because it isn't designed to do an auto-update, just an update on (re)start. And before anybody claims differently, I have already tested and verified this with TF2 (I don't own CSGO, so I don't have a reason to test it or think it would be different), -autoupdate does NOT force an update, just tells the server to check for an update after each (re)start.
CS:GO has rather different update functionality, but with regards to TF2, it should cause the server to restart on the next mapchange after a update notification is received.
__________________
asherkin is offline
Dkmuniz
Senior Member
Join Date: Jun 2013
Old 06-17-2013 , 16:51   Re: [CSGO] Auto Server Update how?
Reply With Quote #18

is there any "auto maps to fast download" when I upo one map to the server does not need to level up the fast download?
Dkmuniz is offline
KiR
Senior Member
Join Date: Nov 2011
Old 11-23-2013 , 17:08   Re: [CSGO] Auto Server Update how?
Reply With Quote #19

https://github.com/crazy-max/csgo-se...er-launcher.sh
I have this script works autoupdate
KiR is offline
DJ Data
SourceMod Donor
Join Date: Dec 2012
Location: Switzerland
Old 11-24-2013 , 12:05   Re: [CSGO] Auto Server Update how?
Reply With Quote #20

seDirector.
__________________
SourcePawn Coding Level: Novice
DJ Data 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 21:34.


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