Repository navigation
feat(workshop): download Steam Workshop mods for Arma 3 and DayZ - #5008
Merged
Merged
Conversation
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.
8 of 13 tasks
…art when nothing changed
Member
Author
|
Tested end to end on a live Arma 3 server (a Steam account that owns Arma 3), running this branch with
Before the account owned Arma 3, Steam refused the download ( Not yet tested: DayZ mods with an account that owns DayZ. DayZ uses the same install step. |
This was referenced Oct 10, 2026
Merged
This was referenced Oct 11, 2026
This was
linked to
issues
Oct 18, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 letupdatehandle it.consumer_app_id, so there's no extra appid setting.time_updatedinserverfiles/workshop/@<id>/.lgsm-workshop. Only changed or new items are downloaded.+workshop_download_itemfor every changed item, staged inlgsm/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.serverfiles/workshop/@<id>, lowercased (required on Linux), and its*.bikeyfiles are copied intoserverfiles/keys.workshopmodsare deleted along with their keys, unless another installed mod uses the same key. Mods listed by another instance sharing the same serverfiles are kept.At
start,restart,debuganddetails, installed Workshop mods are appended tomodsin the order listed, so-mod=picks them up with no config edits. A user's ownmodsstay first:startwarns if a listed mod isn't installed yet, or ifworkshopmodshas changed since the lastworkshop-update.check-updatereports Workshop changes without applying them.Testing
arma3serverscript with these modules:workshop-updateis listed in the commands.detailsshows the combined-mod=above.workshop-updateinstalls on the first run and reports no update on the second.check-updateonly reports.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
Checklist
developbranch as its base.Documentation
https://docs.linuxgsm.com/steamcmd/workshop needs an Arma 3 and DayZ section. A Docs PR will follow.