mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2026-04-25 06:05:57 +03:00
[GH-ISSUE #4505] [Bug]: DayZ Standalone launch doesn't load all mods #2813
Labels
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/LinuxGSM#2813
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @firemandave6024 on GitHub (Feb 22, 2024).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/4505
User story
When adding mods to ~/lgsm/config-lgsm/dayzserver/common.cfg, it only loads the first mod
Game
DayZ Standalone
Linux distro
Ubuntu 22.04
Command
command: start
Further information
In the config section to load mods, this is how the variable is laid out (Comment markers removed to avoid markdown issues):
DayZ Modules Add mods with relative paths: mods/@cf To load the "Community framework for DayZ SA" module found in the directory serverfiles/mods/@cf. Load several mods as: mods="mods/@cf\;mods/@dayz-expansion\;mods/@deerisle" mods="mods/@CF;mods/@Basic_Territories_Updated;mods/@RaG_Hunting_Cabin"When the
startparametersvariable is built, this is the code:Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters startparameters="-ip=${ip} -port=${port} -config=${servercfgfullpath} -mod=${mods} -servermod=${servermods} -bepath=${bepath} -limitFPS=60 -dologs -adminlog -freezeCheck"It appears that the actual binary expects everything after
-mod=to be wrapped in double quotes. Changing my config filestartparametersvariable to use this line appears to have fixed the issue:Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters startparameters="-ip=${ip} -port=${port} -config=${servercfgfullpath} -mod=\"${mods}\" -servermod=${servermods} -bepath=${bepath} -limitFPS=60 -dologs -adminlog -freezeCheck"Wrapping the
$modsvariable in escaped double quotes loaded all of the mods, and may need to be added to the default config file.Relevant log output
Steps to reproduce
1: Install multiple mods
2: Add them to the appropriate config file
3: Start the server
4: Use whichever tool you choose to check loaded mods, only the first will load.
@NoReXxDE1 commented on GitHub (Aug 1, 2024):
Hey guys, that's really the fix for LinuxGSM up there. I simply went to _default.cfg in /home/dayzserver/lgsm/config-default/config-lgsm/dayzserver
and then I just changed -mod=${mods} to -mod="${mods}" which is also the solution for me
You can simply add you're mods to you main serverfiles like "/home/dayzserver/serverfiles"
If it dosent works test ist with low characters in modfolder name like not "@DayZ-Expansion-Licensed" do "@dayz-expansion-licensed"
I hope this little trick help you out, sorry for my bad english im from germany :)
@Michael-Kraft commented on GitHub (Aug 26, 2024):
change in startparameter to -mod="${mods}" fixed it for me
@eXPeRi91 commented on GitHub (Jan 5, 2025):
The problem is still around..
I did like few way's non of them where working for me..
Small case, workbench id's moving in different folders, still not
Adding
""noting worked...Only will read first mod
A small find:
bash: line 1: @CF: command not found bash: line 1: @Trader: command not found bash: line 1: @VPPAdminTools: command not foundIt's like LinuxGSM having problems to parse after
;My os Debian 11
@nghialele commented on GitHub (Mar 7, 2025):
I've answer a similar questions related to mods loading at LinuxGSM Discord server.
For multiple mods loading, please make sure you have place it in the right format, included the character
\after the mod folder name and before the semicolon,;.Here are from my working cfg file:
I also rename mod folder name to replace spaces with - for easier loading.
@Seedling1154 commented on GitHub (Sep 12, 2025):
Nothing in this thread ended up being the solution for me however everyone info here helped a bunch in figuring this out
First of all my method doesnt use the mods folder and u will need to rename all your folders to look like this @modnamehere
where the modname will have to be the same in the meta file so make sure you check that and place all mods in the serverfiles folder
my server config file looks like this
I had to do it this way cause nothing would load or only the first mod will load make sure u do it exactly like i have it and that you end it off with
\;or it will add -servermod= to the name of the last modAlso as an example earlier i had the codelock mod folder named to
@CodeLockand that would not work when i would join the server it would tell me i am joining with a mod that the server doesnt have to fix this i went into the codelock folder and check the meta data file and changed the file name to be the same from there so the new name is@Code Lockand that worked no issuesanother note that for any mods with a space in the name you will need to add \ in between the next word