Skip to content

feat(workshop): download Steam Workshop mods for Arma 3 and DayZ - #5008

Merged
dgibbs64 merged 3 commits into
developfrom
feature/workshop-downloader
Oct 10, 2026
Merged

dgibbs64 merged 3 commits into
developfrom
feature/workshop-downloader

Conversation

@dgibbs64

Copy link
Copy Markdown
Member

Description

Adds Steam Workshop downloads for game servers that can't download Workshop content themselves, starting with Arma 3 and DayZ.

Most Workshop games (CS2, GMod, Insurgency, ARK and others) download mods themselves, and LinuxGSM only passes the IDs. Arma 3 and DayZ don't, so people have had to write their own scripts to fetch mods with SteamCMD, lowercase them, copy keys and build -mod=. This does that for them.

How it works

Add Workshop item or collection IDs to the config:

workshopmods="450814997 1234567890"

Then run ./arma3server workshop-update (wu), or let update handle it.

  1. Resolve. Collections are expanded in their sort order, including nested collections, using the Steam Web API (no API key needed). Duplicates are dropped, and missing or private items are skipped with a warning. The game appid comes from each item's consumer_app_id, so there's no extra appid setting.
  2. Compare. Each installed mod stores its time_updated in serverfiles/workshop/@<id>/.lgsm-workshop. Only changed or new items are downloaded.
  3. Download. One SteamCMD login with a +workshop_download_item for every changed item, staged in lgsm/tmp/workshop. Items that fail are retried (up to 5 attempts). A Steam login failure stops with a clear message. Items that still fail are listed with a hint that the account must own the game.
  4. Install. Each mod is moved to serverfiles/workshop/@<id>, lowercased (required on Linux), and its *.bikey files are copied into serverfiles/keys.
  5. Clean up. Mods removed from workshopmods are deleted along with their keys, unless another installed mod uses the same key. Mods listed by another instance sharing the same serverfiles are kept.
  6. Restart. If anything changed and the server is running, it's stopped, updated and started again, the same as a server update.

At start, restart, debug and details, installed Workshop mods are appended to mods in the order listed, so -mod= picks them up with no config edits. A user's own mods stay first:

-mod=mods/@own\;workshop/@450814997\;workshop/@463939057

start warns if a listed mod isn't installed yet, or if workshopmods has changed since the last workshop-update. check-update reports Workshop changes without applying them.

Testing

  • Arma 3 instance using the real arma3server script with these modules:
    • workshop-update is listed in the commands.
    • details shows the combined -mod= above.
    • workshop-update installs on the first run and reports no update on the second.
  • Real SteamCMD downloads (anonymous login, using Garry's Mod items, which download anonymously):
    • 2 items in one login, installed correctly.
    • An Arma 3 item (CBA_A3) failed as expected without ownership, was retried and reported, and didn't block the other items.
    • Removing an ID deletes that mod on the next update. check-update only reports.
    • The server-running path stops, applies and starts.
  • Collection expansion, de-duplication, invalid and private IDs, lowercasing (including name clashes) and repeated start-parameter calls were all tested.
  • bash -n, shellcheck and prettier pass.

Not yet tested: a full download of Arma 3 or DayZ mods with an account that owns the game, and booting a server with them loaded.

Supersedes #4186, with thanks to @FliesWithWind, whose PR this design builds on.

Relates to #3514, #1894 and #4535. Starbound (#960) and Workshop collection support for other games (#1623) can follow, using the same module.

Type of change

  • Bug fix (a change which fixes an issue).
  • New feature (a change which adds functionality).
  • New Server (new server added).
  • Refactor (restructures existing code).
  • Comment update (typo, spelling, explanation, examples, etc).

Checklist

  • This pull request links to an issue.
  • This pull request uses the develop branch as its base.
  • This pull request subject follows the Conventional Commits standard.
  • This code follows the style guidelines of this project.
  • I have performed a self-review of my code.
  • I have checked that this code is commented where required.
  • I have provided a detailed enough description of this PR.
  • I have checked if documentation needs updating.

Documentation

https://docs.linuxgsm.com/steamcmd/workshop needs an Arma 3 and DayZ section. A Docs PR will follow.

Arma 3 and DayZ servers can't download Workshop content themselves.
Add workshopmods (item and collection IDs) and a workshop-update
command that downloads changed items with one SteamCMD login, installs
them to serverfiles/workshop/@<id>, lowercases them, copies BattlEye
keys and removes mods no longer listed. update and check-update include
Workshop mods, and start appends installed mods to -mod= in order.
Copilot AI balanced review requested due to automatic review settings October 10, 2026 22:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added the type: feature New feature or request label Oct 10, 2026
@dgibbs64 dgibbs64 mentioned this pull request Oct 10, 2026
8 of 13 tasks
@dgibbs64 dgibbs64 added this to the v26.4.0 milestone Oct 10, 2026
@github-actions github-actions Bot added engine: realvirtuality Issues related to realvirtuality engine engine: source engine: starbound Issues related to starbound engine engine: enfusion Issues related to enfusion engine engine: unreal4 Issues related to unreal4 engine engine: source2 Issues related to source2 engine game: ARMA 3 Issues related to ARMA 3 game: Garrys Mod Issues related to Garrys Mod game: Insurgency Issues related to Insurgency game: Starbound Issues related to Starbound game: DayZ Issues related to DayZ game: ARK: Survival Evolved Issues related to ARK: Survival Evolved game: Counter-Strike 2 Issues related to Counter-Strike 2 labels Oct 10, 2026
@dgibbs64

dgibbs64 commented Oct 10, 2026 •

Copy link
Copy Markdown
Member Author

Tested end to end on a live Arma 3 server (a Steam account that owns Arma 3), running this branch with workshopmods="450814997" (CBA_A3):

  • workshop-update downloaded CBA_A3 while the server was running, stopped the server, installed the mod to serverfiles/workshop/@450814997 and started the server again.
  • All file names were lowercased: 0 uppercase names left.
  • cba_3.19.0.260808.bikey was copied to serverfiles/keys.
  • The running server was started with -mod=workshop/@450814997, and the console log shows Arma 3 loading /data/serverfiles/workshop/@450814997/addons/cba_*.pbo (3.19.0.260808).
  • A second workshop-update reported no update and didn't restart the server.
  • Clearing workshopmods removed the mod and its key, keeping a3.bikey, then restarted the server. The server stayed healthy throughout.

Before the account owned Arma 3, Steam refused the download (Failure). That run showed the server was restarted even though nothing had changed. That's fixed in 3739184: mods now download before the server is stopped, and there's no restart when nothing was installed or removed.

Not yet tested: DayZ mods with an account that owns DayZ. DayZ uses the same install step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

engine: enfusion Issues related to enfusion engine engine: realvirtuality Issues related to realvirtuality engine engine: source engine: source2 Issues related to source2 engine engine: starbound Issues related to starbound engine engine: unreal4 Issues related to unreal4 engine game: ARK: Survival Evolved Issues related to ARK: Survival Evolved game: ARMA 3 Issues related to ARMA 3 game: Counter-Strike 2 Issues related to Counter-Strike 2 game: DayZ Issues related to DayZ game: Garrys Mod Issues related to Garrys Mod game: Insurgency Issues related to Insurgency game: Starbound Issues related to Starbound type: feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: DayZ Workshop Auto-Update [FEATURE]Steam Workshop Support Arma 3 Updater with mod support

2 participants