79327578

Date: 2025-01-03 20:14:06
Score: 0.5
Natty:
Report link

Ok apparently I spoke to soon. This is the following code:

#Configure if using mods. 
ModEnabled="1" # If 1 = Install/update mods 
DayZModList=("1559212036" "1828439124" "2545327648"

#Update Mods
if [ $ModEnabled == "1" ];then
    printf "[ ${yellow}REALM-SERVER${default} ] Updating/Downloading Mod files!\n"
    for value in ${DayZModList[@]}; do
        ${HOME}/servers/steamcmd/steamcmd.sh +force_install_dir ${HOME}/servers/dayzserver/ +login "${SteamUser}"  +workshop_download_item 221100 "${DayZModList}" validate +quit
        printf "[ ${green}REALM-SERVER${default} ] Done downloading and updating Mod files!\n"
    done
else
    printf "[ ${red}Error${default} ] You have not enabled downloading and updating mods, skipping!\n"
fi

However, it skips everything after "1559212036", it doesn't actually download them.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Plankt0n