♔ Backslash May 24, 2013 @ 10:12pm
Autoupdate with steamCMD ?
Hey, is there anyone out there who knows if i can make a script, or if there is any command for autoupdating with steamCMD [Windows 7]

Maybe metamod or sourcemod plugins ?
Last edited by ♔ Backslash; May 24, 2013 @ 10:13pm

Something went wrong while displaying this content. Refresh

Error Reference: Community_9708323_
Loading CSS chunk 7561 failed.
(error: https://community.fastly.steamstatic.com/public/css/applications/community/communityawardsapp.css?contenthash=789dd1fbdb6c6b5c773d)
Showing 1-7 of 7 comments
Patient May 24, 2013 @ 11:07pm 
You can check out my Tutorial series that I have placed in a thread here(how to make a TF2 Server), I believe it was the first video. I basically explain how to download SteamCMD and how to autoupdate its apps with a runscript in the Command Prompt.

For sourcemod and metamod, I don't think there is an autoupdate script available, the best that I know to do is to occasionally lookup both and see if there are newer versions available.

As for my source, here is the developer site I used:
https://developer.valvesoftware.com/wiki/SteamCMD‎

I do believe there they have an example batch file you can run as well, but I still think the other method they gave (the one I demonstrate) is more efficient for management (in terms of seeing errors, etc.).
♔ Backslash May 25, 2013 @ 9:38am 
what i really would like is a script that runs every 5 minutes or so that will update automatically then restart the server without me doing anything. nice guide btw :)
Patient May 25, 2013 @ 2:50pm 
Originally posted by ♔ ℬackslash =WoN=:
what i really would like is a script that runs every 5 minutes or so that will update automatically then restart the server without me doing anything. nice guide btw :)

Thanks, sorry I couldn't get what you were looking for.
The Quaken May 26, 2013 @ 2:40pm 
Originally posted by A Very Patient Player:
You can check out my Tutorial series that I have placed in a thread here(how to make a TF2 Server), I believe it was the first video. I basically explain how to download SteamCMD and how to autoupdate its apps with a runscript in the Command Prompt.

For sourcemod and metamod, I don't think there is an autoupdate script available, the best that I know to do is to occasionally lookup both and see if there are newer versions available.

As for my source, here is the developer site I used:
https://developer.valvesoftware.com/wiki/SteamCMD‎

I do believe there they have an example batch file you can run as well, but I still think the other method they gave (the one I demonstrate) is more efficient for management (in terms of seeing errors, etc.).


This was really helpful man thanks:spycon:
google "SteamCMD Guardian 1.2" and edit to your needs. i think sourcemod updates itself once the server booted and then requires a restart
Last edited by []\/[] []_[] []-[]; Jun 16, 2013 @ 6:38am
76561198068550260 Jun 18, 2013 @ 7:25pm 
i can not freinds accepted wye ?
BandDiLondon™ Mar 4, 2021 @ 3:42pm 
After a week searching to auto-update my Valheim dedicated server find a work around like this :

Make a service with the start_serve.sh > valheim.service in /etc/systemd/system:
[Unit] Description=Valheim dedicated server service [Service] WorkingDirectory=/opt/valheim/ ExecStart=/opt/valheim/start_server.sh [Install] WantedBy=multi-user.target

after creation enable the service with: systemctl valheim.service enable

Now we can start/stop the server by : service valheim start/stop

Next we need 4 .sh file for do the routine + a cronJob for check

1 - valheim_getCurrentVersion.sh
#!/bin/bash /usr/games/steamcmd +login anonymous +app_info_update 0 +app_info_print "896660" +quit | grep -EA 1000 "^\s+\"branches\"$" | grep -EA 5 "^\s+\"public\"$" | grep -m 1 -EB 10 "^\s+}$" | grep -E "^\s+\"buildid\"\s+" | tr '[:blank:]"' ' ' | tr -s ' ' | cut -d' ' -f3

2- valheim_applyUpdate.sh
#!/bin/bash # Stop gameworld. service valheim stop # Apply update. /usr/games/steamcmd +runscript /opt/valheim_applyUpdate.steamCMD # Save current version number. /opt/valheim_getCurrentVersion.sh > /opt/valheim/currentVersion.txt # Restore start_server.sh cp /opt/valheim_startServer.sh /opt/valheim/start_server.sh # Start gameworld. service valheim start

3-valheim_checkUpToDate.sh
#!/bin/bash LATESTBUILD=`/opt/valheim_getCurrentVersion.sh` INSTALLEDBUILD=`cat /opt/valheim/currentVersion.txt` if [ "$LATESTBUILD" == "$INSTALLEDBUILD" ] ; then echo "UpTodate! Current buildID $INSTALLEDBUILD" else echo "Current build: $INSTALLEDBUILD, SteamBuild: $LATESTBUILD" echo "Updating....." /opt/valheim_applyUpdate.sh fi

4-valheim_startServer.sh (juste own start_server.sh place else where)
#!/bin/bash export templdpath=$LD_LIBRARY_PATH export LD_LIBRARY_PATH=./linux64:$LD_LIBRARY_PATH export HOME=/root/ echo "Starting server PRESS CTRL-C to exit" # Tip: Make a local copy of this script to avoid it being overwritten by steam. # NOTE: Minimum password length is 5 characters & Password cant be in the server name. # NOTE: You need to make sure the ports 2456-2458 is being forwarded to your server through your local router & firewall. ./valheim_server.x86_64 -name "ServerName" -port 2456 -world "Dedicated" -password "ServerPassWord" export LD_LIBRARY_PATH=$templdpath

last thing to do is to create the cronJob , i use cron.hourly in /etc/cron.hourly
#!/bin/bash /opt/valheim_checkUpToDate.sh

***************
All that will check if upate is propose , stop de serveur update it and restart the serveur
All my config is done in the force intall path /opt/valheim
Scrip a in /opt/

valheim_applyUpdate.sh use a internal fonction of steamcmd so you need to have a txt file name valheim_applyUpdate.sh in /opt/

valheim_applyUpdate.steamCMD
login anonymous force_install_dir /opt/valheim app_update 896660 validate quit

Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: May 24, 2013 @ 10:12pm
Posts: 7