AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Source Servers (SRCDS) (https://forums.alliedmods.net/forumdisplay.php?f=130)
-   -   [Guide][CS:GO] Server Auto Update (https://forums.alliedmods.net/showthread.php?t=286689)

ambn 08-22-2016 13:39

[Guide][CS:GO] Server Auto Update
 
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 "/" :D
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 :D let me know if you had any problem
Windows Version Can Be Found Here .

hustl4 08-22-2016 17:42

Re: [Guide][CS:GO] Server Auto Update
 
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.

thekuzu 09-04-2016 13:06

Re: [Guide][CS:GO] Server Auto Update
 
is that working?

ambn 10-28-2016 02:32

Re: [Guide][CS:GO] Server Auto Update
 
this works for Linux Only for windows ... no clue

almil36 03-15-2019 05:12

Re: [Guide][CS:GO] Server Auto Update
 
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!

NomisCZ 03-15-2019 05:47

Re: [Guide][CS:GO] Server Auto Update
 
Quote:

Originally Posted by almil36 (Post 2643387)
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 


almil36 03-15-2019 06:14

Re: [Guide][CS:GO] Server Auto Update
 
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?

NomisCZ 03-15-2019 06:38

Re: [Guide][CS:GO] Server Auto Update
 
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).

almil36 03-15-2019 11:07

Re: [Guide][CS:GO] Server Auto Update
 
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 04-04-2019 03:27

Re: [Guide][CS:GO] Server Auto Update
 
Could not find a way to solve my problem until now. Does anyone have a solution?
Thanks in advance!


All times are GMT -4. The time now is 19:38.

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