Hello guys, I had problems with autoupdate on this new steamcmd system so I wanted to help people having problems with this as well.
I have my server from my server hosting so it should work for you too.
You need FTP to your server and access to the start-up params of the srcds. Server is run by your provider so you probably dont have access to the steamcmd console or parameters.
It is usually running on linux.
I will use tf2 as an example but it should work for any steamcmd game - you have to change app id and path to the exact folders.
We need script to update the game server. I named my script update_tf.txt [attached to the post]
This is the code:
PHP Code:
@ShutdownOnFailedCommand 1
@NoPromptForPassword 1
login anonymous
force_install_dir ..
app_update 232250 validate
quit
Change 232250 to id of your game. You can find them
here .
Change .. in force_install_dir to path of your dir where tf folder is located according to the steamcmd folder.
If you put wrong path in there it will start to download entire server again in the dir you wrote in there! Change login anonymous to your login info if you have...
Remove validate from the script if you dont want your server files to be validated every start of the server. You should leave it there at least for the first run.
This is my ftp folder with my server files for better explanation:
I wrote .. there because it means "go to the folder above". Thats the folder I have tf folder in.
Now save your script file and upload it to the steamcmd folder or any other folder but remember that you need exact path to it.
Now you need to edit your start up parameters.
Make sure you dont have anything twice in there.
Add this at the end :
-autoupdate -steam_dir ~/steamcmd -steamcmd_script ~/steamcmd/update_tf.txt
Im using exactly this, but you can change them according to your server...
-autoupdate - enables autoupdate
-steam_dir - dir that steam.sh resides in. Example: ~/Steam
-steamcmd_script - path to the steam script to execute. Example: ~/Steamcmd/csgo_ds.txt
You HAVE to put all 3 parameters or none of them! If you put only -autoupdate in there, it will NOT start! It will just write an error that you dont have it there. If you put wrong path in there it will probably not start either. To disable autoupdate just remove these 3 parameters.
After this you have to restart your server and it will validate and download/update the server files.
If you put wrong path in there it will not start or download entire tf folder again... It will write everything in the server console so check your server console in your control panel...
This script works only if the server is restarted or you have plugin which checks the current version and restarts the server-
this for example.
I hope this helped you and I apologize for my bad english :/