Skip to content

[Feature]: DayZ Workshop Auto-Update #4535

Description

@int80x0

User story

would be cool if the dayz server gets support for workshop mods with autoupdates

Game

DayZ

Linux distro

Ubuntu 22.04

Command

command: mods-install, command: mods-update, command: mods-remove

Further information

Mods are currently not supported

Activity

  1. whytf commented on Apr 7, 2024

    @whytf

    +1

  2. whytf commented on Apr 8, 2024

    @whytf

    For the time being i have scripted a simple version of this feature, at this time it only handles downloading, copying files & keys, however it could help in future development:

    • it assumes LGSM defaults
    • that the actual config used is common.cfg and that username and password are enclosed in ""
    • that steamcmd is installed in default location
    • that a modlist.txt is present in serverfiles directory
    • that each line in modlist.txt looks like this: "Mod_ID,@Mod_Name"
    • it doesn't handle putting all the mods inside common.cfg to be loaded
    • yes it is similar and based on windows version of this script that is written in .bat and used by some server owners, myself included
    • same as with windows version, if you plan on having many mods it is better to use new account with dayz as logging into steamcmd is rate limited and login happens once for every mod
    • old mod folder, for example @Mod_Name directory in serverfiles is deleted and replaced each time this script runs
    • has been tested only on debian 12
    #!/bin/bash
    
    MOD_LIST="$HOME/serverfiles/modlist.txt"
    KEYS_DEST="$HOME/serverfiles"
    STEAMCMD_EXE="$HOME/.steam/steamcmd/steamcmd.sh"
    WORKSHOP_PATH="$HOME/.local/share/Steam/steamapps/workshop/content/221100"
    steamuser=$(grep "steamuser" $HOME/lgsm/config-lgsm/dayzserver/common.cfg | cut -d'"' -f2)
    steampass=$(grep "steampass" $HOME/lgsm/config-lgsm/dayzserver/common.cfg | cut -d'"' -f2)
    
    if [ ! -f "${MOD_LIST}" ]; then
        echo "Error: modlist.txt not found."
    fi
    
    while IFS= read -r line || [[ -n "$line" ]]; do
        ID=$(echo "$line" | cut -d',' -f1)
        ${STEAMCMD_EXE} +login "${steamuser}" "${steampass}" +workshop_download_item 221100 "${ID}" +quit
    done < "${MOD_LIST}"
    
    while IFS= read -r line || [[ -n "$line" ]]; do
        ID=$(echo "$line" | cut -d',' -f1)
        ModName=$(echo "$line" | cut -d',' -f2)
        
        if [ -d "$HOME/serverfiles/${ModName}" ]; then
            rm -rf "$HOME/serverfiles/${ModName}"
        fi
       
        cp -r "${WORKSHOP_PATH}/${ID}" "$HOME/serverfiles/${ModName}"
    
        if [ -d "$HOME/serverfiles/${ModName}/keys" ]; then
            cp -r "$HOME/serverfiles/${ModName}/keys" "${KEYS_DEST}"
        fi
    done < "${MOD_LIST}"
    
    echo "Mod folders copied and renamed successfully."
    
  3. airtonix commented on Aug 10, 2024

    @airtonix

    fyi:

    Some mods won't let you download them with an account that doesn't own the game.

    and some mods are larger than 1gb which means you'll get a timeout error.

    I've put together a more comprehensive tool to handle the second issue.

    https://gist.github.com/airtonix/e7e6935d1ec34f8f5fbc08d8c97e8fdb

  4. added theissue type on Jun 26, 2025
  5. dgibbs64 commented on Oct 10, 2026

    @dgibbs64
    Member

    Added in #5008, which will ship in v26.4.0. Arma 3 and DayZ servers can now download and update Steam Workshop mods.

    Add item and/or collection IDs to workshopmods in your LinuxGSM config, then run ./arma3server workshop-update (or ./dayzserver wu). update also keeps the mods up to date. LinuxGSM lowercases the mod files, copies their keys and adds the mods to -mod= automatically.

    The Steam account in steamuser must own the game for its Workshop items to download.

  6. added this to the v26.4.0 milestone on Oct 10, 2026
  7. added
    engine: enfusion
    and removed on Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

command: modsdistro: Ubuntuengine: enfusiongame: DayZoutcome: issue resolvedtype: feature

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions