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

[Guide][CS:GO] Server Auto Update


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Old 08-22-2016 , 13:39   [Guide][CS:GO] Server Auto Update
Reply With Quote #1

Hello guys,
I've been searching and google for a while but no good results was comming out of it and after a bit of testing i figured it out to make my server update it's self .
Note: I have tested this method on linux servers but as i can see it could be working on Windows servers too fell free to test and let me know !

Let's Begin!
-In this Guide you'll know how to make your server update it's self.
- Quotes Are Important and should be used!
this is very simple , the first thing you have to do is to make up your run file via VIM or VI and simply format it like this :
Code:
run.sh
after this you'll have to give it permissions to start , you can do it like this :
Code:
chmod a+x run.sh
after these steps you can now make a update script that your auto updating system will need it .
simply make a .txt file like "Update.txt" and Put these stuffs in it :
Code:
login anonymous
force_install_dir "/home/AccountName/RestOfDirectory/ServerFolder"
app_update 740 validate
quit
Remember To form the file exactly like this cause i got my steamcmd downloading the whole server again cause of the lack of the first "/"
after doing this job you have to add These Things To your Run.sh file :
Code:
-autoupdate  -steam_dir   "/home/AccountName/RestOfDirectory/TheFolderThat[steamcmd.sh]IsLocatedInto"  -steamcmd_script   "/home/AccountName/RestIfDirectory/Update.txt"
Now Your run.sh Should be ready to be started!

Apologize for my bad english let me know if you had any problem
Windows Version Can Be Found Here .

Last edited by ambn; 02-15-2017 at 08:32.
ambn is offline
hustl4
Junior Member
Join Date: Jan 2016
Location: USA
Old 08-22-2016 , 17:42   Re: [Guide][CS:GO] Server Auto Update
Reply With Quote #2

If you are just updating there is no need for the "validate", just "app_update 740". That may be why you downloaded the whole server again.
hustl4 is offline
thekuzu
Junior Member
Join Date: Aug 2016
Old 09-04-2016 , 13:06   Re: [Guide][CS:GO] Server Auto Update
Reply With Quote #3

is that working?
thekuzu is offline
ambn
Veteran Member
Join Date: Feb 2015
Location: Fun servers
Old 10-28-2016 , 02:32   Re: [Guide][CS:GO] Server Auto Update
Reply With Quote #4

this works for Linux Only for windows ... no clue
ambn is offline
almil36
Member
Join Date: Mar 2019
Old 03-15-2019 , 05:12   Re: [Guide][CS:GO] Server Auto Update
Reply With Quote #5

Hi,

Thanks it is working well.
On the other hand, I am having trouble with CS:GO updates replacing some edited files in my CS:GO installation. I edit the bspconvar_whitelist.txt such that it accepts some new commands coming from my CS:GO map and interpreted by a sourcemod plugin, but the fact is that when CS:GO updates their game, they replace my "custom" bspconvar_whitelist.txt by their version and then the commands are not sent anymore to the plugin.

Is there a fix for that?
Thanks!
almil36 is offline
NomisCZ
AlliedModders Donor
Join Date: Mar 2014
Location: Czech_Republic
Old 03-15-2019 , 05:47   Re: [Guide][CS:GO] Server Auto Update
Reply With Quote #6

Quote:
Originally Posted by almil36 View Post
Hi,

Thanks it is working well.
On the other hand, I am having trouble with CS:GO updates replacing some edited files in my CS:GO installation. I edit the bspconvar_whitelist.txt such that it accepts some new commands coming from my CS:GO map and interpreted by a sourcemod plugin, but the fact is that when CS:GO updates their game, they replace my "custom" bspconvar_whitelist.txt by their version and then the commands are not sent anymore to the plugin.

Is there a fix for that?
Thanks!
Hi,
remove "validate" from your script.

Validate is a command that will check all the server files to make sure they match the SteamCMD files. This command is useful if you think that files may be missing or corrupted (https://developer.valvesoftware.com/...amCMD#Validate).


PHP Code:
login anonymous
force_install_dir 
"/home/AccountName/RestOfDirectory/ServerFolder"
app_update 740
quit 
__________________

Last edited by NomisCZ; 03-15-2019 at 05:48.
NomisCZ is offline
almil36
Member
Join Date: Mar 2019
Old 03-15-2019 , 06:14   Re: [Guide][CS:GO] Server Auto Update
Reply With Quote #7

Hi NomisCZ,
Thanks for your fast answer!

I don't use the "validate" in my script. The fact is sometimes (pretty often) this file is modified by a CS:GO update because they add some new cvars (or remove others) and then they just replace my custom file by their file. I don't know if I should put my custom commands in another file (bspconvar_whitelist_server.txt?) or just ask my server to look in another file for these custom cvars. How do people hosting servers with sourcemod deal with these updates?
almil36 is offline
NomisCZ
AlliedModders Donor
Join Date: Mar 2014
Location: Czech_Republic
Old 03-15-2019 , 06:38   Re: [Guide][CS:GO] Server Auto Update
Reply With Quote #8

Hmm ...

Maybe this will help you: https://forums.alliedmods.net/showthread.php?p=2578442.
Or you can create plugin which replace original whitelist file with yours on server start (I'm not sure if server loads this file on start or map change).
__________________
NomisCZ is offline
almil36
Member
Join Date: Mar 2019
Old 03-15-2019 , 11:07   Re: [Guide][CS:GO] Server Auto Update
Reply With Quote #9

Thanks again, I already saw this link. Everyone is telling it is not working but I will give it try.
I will maybe do it in my own plugin then but I am curious to know how people are doing as it has to be a common problem for sourcemod users.
almil36 is offline
almil36
Member
Join Date: Mar 2019
Old 04-04-2019 , 03:27   Re: [Guide][CS:GO] Server Auto Update
Reply With Quote #10

Could not find a way to solve my problem until now. Does anyone have a solution?
Thanks in advance!
almil36 is offline
Reply


Thread Tools
Display Modes

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 19:58.


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