From d2e8f30e3cd9f18aa800a5bae9299e7fc2fcfff9 Mon Sep 17 00:00:00 2001 From: Ben Peddell Date: Wed, 9 Dec 2015 04:40:31 +1000 Subject: [PATCH] Wait for SteamCMD to download mod When `workshop_download_item` is executed, the Steam API will download not just the specified mod, but also every other mod that has ever been installed by that SteamCMD instance. Wait for those to download and update when downloading the mod. --- tools/arkmanager | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/arkmanager b/tools/arkmanager index 91be1f0..ade4c8e 100755 --- a/tools/arkmanager +++ b/tools/arkmanager @@ -930,7 +930,7 @@ doDownloadMod(){ while true; do ./$steamcmdexec +@NoPromptForPassword 1 +login ${steamlogin:-anonymous} +workshop_download_item $mod_appid $modid +quit if [ ! -d "$moddldir" ]; then break; fi - local newsize="`du -s "$moddldir" | cut -f1`" + local newsize="`du -s "$moddldir/.." | cut -f1`" if [ $newsize -eq $dlsize ]; then break; fi dlsize=$newsize done