mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-27 16:58:27 +00:00
Remove failing workshop items when downloading mods
This commit is contained in:
parent
bfd3c0e4f5
commit
fe1594bcd0
@ -237,6 +237,7 @@ appid="${appid:-376030}"
|
|||||||
mod_appid="${mod_appid:-346110}"
|
mod_appid="${mod_appid:-346110}"
|
||||||
install_bindir="${install_bindir:-${0%/*}}"
|
install_bindir="${install_bindir:-${0%/*}}"
|
||||||
install_libexecdir="${install_libexecdir:-${install_bindir%/*}/libexec/arkmanager}"
|
install_libexecdir="${install_libexecdir:-${install_bindir%/*}/libexec/arkmanager}"
|
||||||
|
steamcmd_workshoplog="${steamcmd_workshoplog:-${HOME}/Steam/logs/workshop_log.txt}"
|
||||||
|
|
||||||
if [ "$steamcmd_user" == "--me" ]; then
|
if [ "$steamcmd_user" == "--me" ]; then
|
||||||
install_datadir="${install_datadir:-${HOME}/.share/local/arkmanager}"
|
install_datadir="${install_datadir:-${HOME}/.share/local/arkmanager}"
|
||||||
@ -1787,7 +1788,11 @@ doDownloadMod(){
|
|||||||
break
|
break
|
||||||
else
|
else
|
||||||
echo
|
echo
|
||||||
if [ ! -d "$moddldir" ]; then
|
failedmod="$(sed -n 's|.* Download item \([0-9]*\) result : \(.*\)|\1\t\2|p' "${steamcmd_workshoplog}" | grep -v ' OK' | tail -n1 | cut -f1)"
|
||||||
|
if [[ -n "$failedmod" && "$failedmod" != "$modid" ]]; then
|
||||||
|
echo "Mod $failedmod prevented mod update - removing failed mod"
|
||||||
|
doRemoveMods "$failedmod"
|
||||||
|
elif [ ! -d "$moddldir" ]; then
|
||||||
echo "Mod $modid download failed"
|
echo "Mod $modid download failed"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -8,6 +8,7 @@ steamcmdroot="/home/steam/steamcmd" # path of yo
|
|||||||
steamcmdexec="steamcmd.sh" # name of steamcmd executable
|
steamcmdexec="steamcmd.sh" # name of steamcmd executable
|
||||||
steamcmd_user="steam" # name of the system user who own steamcmd folder
|
steamcmd_user="steam" # name of the system user who own steamcmd folder
|
||||||
steamcmd_appinfocache="/home/steam/Steam/appcache/appinfo.vdf" # cache of the appinfo command
|
steamcmd_appinfocache="/home/steam/Steam/appcache/appinfo.vdf" # cache of the appinfo command
|
||||||
|
steamcmd_workshoplog="/home/steam/Steam/logs/workshop_log.txt" # Steam workshop log
|
||||||
#steamlogin="anonymous" # Uncomment this to specify steam login instead of using anonymous login
|
#steamlogin="anonymous" # Uncomment this to specify steam login instead of using anonymous login
|
||||||
|
|
||||||
# config environment
|
# config environment
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user