[GH-ISSUE #4357] [Bug]: Running CoD4x Server with Mods on Unraid: Could not find default weapon #2727

Closed
opened 2026-02-27 03:05:02 +03:00 by kerem · 2 comments
Owner

Originally created by @lordimac on GitHub (Oct 28, 2023).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/4357

User story

Running Cod4x Server with Mods on Unraid

Game

CoD4

Linux distro

Other

Command

command: start

Further information

When runnign the docker container with LGSM Cod4 with Mod on Unraid, I get the following error log.
Same container version, with same config and same Mod is running fine on another distri then unraid.
Tested another mods as well, everytime the same error. Without mod its running fine.

Relevant log output

 CoD4 X - linux-i386 build 1154 May  1 2022
] --- Crypto Initializing ---
] Testing sha1 hash function - positive.
] Testing sha256 hash function - positive.
] Testing tiger hash function - positive.
] --- Crypto Initialization Complete ---
] IP: 127.0.0.1
] IP: 192.168.120.23
] Opening IP6 socket: [::]:28960 UDP
] Opening IP6 socket: [::]:28960 TCP
] Opening IP socket: 0.0.0.0:28960 UDP
] Opening IP socket: 0.0.0.0:28960 TCP
] 
-----------------------------
]  CoD4X Auto Update
]  Current version: 1.8
]  Current subversion: 21.2
]  Current build: 1154
] -----------------------------

] New subversion 21.2
] Update not needed. All files are equal.
] ----- FS_Startup -----
] fs_basepath is write protected.
] fs_homepath is write protected.
] fs_game is write protected.
] Current language: english
] Current fs_basepath: /data/serverfiles
] Current fs_homepath: /data/serverfiles
] Current search path:
] /data/serverfiles/Mods/pml220
] /data/serverfiles/main
] /data/serverfiles/main_shared
] /data/serverfiles/players
] 
File Handles:
] ----------------------
] 0 files in iwd files
] couldn't exec default_mp.cfg
] fs_basepath is write protected.
] fs_homepath is write protected.
] dedicated is write protected.
] net_ip will be changed upon restarting.
] net_port will be changed upon restarting.
] fs_game is write protected.
] -------- Plugins initialization completed --------
] QUERY LIMIT: Querylimiting is enabled
] Master0: cod4master.cod4x.ovh
] Resolving cod4master.cod4x.ovh 
] cod4master.cod4x.ovh resolved to 188.165.57.239:20810
] cod4master.cod4x.ovh resolved to [2001:41d0:a:37ad::17]:20810
] Master1: cod4master.ax-servers.hu
] Resolving cod4master.ax-servers.hu 
] cod4master.ax-servers.hu resolved to 84.21.7.14:20810
] cod4master.ax-servers.hu resolved to [2a02:730:1220::187]:20810
]CAppInfoCacheReadFromDiskThread took 1 milliseconds to initialize
CApplicationManagerPopulateThread took 1 milliseconds to initialize (will have waited on CAppInfoCacheReadFromDiskThread)
 [S_API] Initialization completed
] begin $init
] end $init 1 ms
] Adding fastfile 'code_post_gfx_mp' to queue
] Adding fastfile 'localized_code_post_gfx_mp' to queue
] Adding fastfile 'common_mp' to queue
] Adding fastfile 'mod' to queue
] --- Common Initialization Complete ---
] Hunk available: 10, Hunk total: 10
] Hitch warning: 1754 msec frame time
] execing server.cfg
] sv_maxclients is write protected.
] Loading fastfile 'code_post_gfx_mp'
] used 0.47 MB memory in DB alloc
] Loaded fastfile 'code_post_gfx_mp' in 4ms (0ms waiting)
] Loading fastfile 'localized_code_post_gfx_mp'
] used 0.69 MB memory in DB alloc
] Loaded fastfile 'localized_code_post_gfx_mp' in 12ms (0ms waiting)
] Loading fastfile 'common_mp'
] used 39.00 MB memory in DB alloc
] Loaded fastfile 'common_mp' in 206ms (0ms waiting)
] Loading fastfile 'mod'
] used 1.91 MB memory in DB alloc
] Loaded fastfile 'mod' in 10ms (0ms waiting)
] ------ Server Initialization ------
] Server: mp_crossfire
] SV_SpawnServer checksum feed: 0x11d89988
] ----- FS_Startup -----
] fs_basepath is write protected.
] fs_homepath is write protected.
] fs_game is write protected.
] Current language: english
] Current fs_basepath: /data/serverfiles
] Current fs_homepath: /data/serverfiles
] Current search path:
] /data/serverfiles/Mods/pml220
] /data/serverfiles/usermaps/mp_crossfire
] /data/serverfiles/main
] /data/serverfiles/main_shared
] /data/serverfiles/players
] 
File Handles:
] ----------------------
] 0 files in iwd files
] Adding fastfile 'mp_crossfire' to queue
] Loading fastfile 'mp_crossfire'
] used 42.96 MB memory in DB alloc
] Waited 250 msec for asset 'maps/mp/mp_crossfire.d3dbsp' of type 'col_map_mp'.
] ------- Game Initialization -------
] gamename: Call of Duty 4
] gamedate: Feb 12 2009
] Warning: WARNING: Could not load weapon file 'weapons/mp/defaultweapon_mp'
] Warning: WARNING: Could not load weapon file 'weapons/mp/defaultweapon_mp'
] ********************
ERROR: BG_LoadWeaponDef: Could not find default weapon
********************
] ----- Server Shutdown -----
] 
With the reason: Server crashed: BG_LoadWeaponDef: Could not find default weapon
] Loaded fastfile 'mp_crossfire' in 413ms (0ms waiting)
] Error: Waited 162 msec for missing asset "Server crashed: BG_LoadWeaponDef: Could not find default weapon".
] Resolving cod4master.activision.com 
] Sending master heartbeat from 0.0.0.0:28960 to 84.21.7.14:20810
] Sending master heartbeat from 0.0.0.0:28960 to 188.165.57.239:20810
] cod4master.activision.com resolved to 185.34.107.159:20810
] ==== ShutdownGame (1) ====
] ---------------------------
] Hitch warning: 715 msec frame time
] Invalid or empty response from masterserver
] Sending master heartbeat from [::]:28960 to [2001:41d0:a:37ad::17]:20810
] Invalid or empty response from masterserver
] Sending master heartbeat from [::]:28960 to [2a02:730:1220::187]:20810
]

Steps to reproduce

No response

Originally created by @lordimac on GitHub (Oct 28, 2023). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/4357 ### User story Running Cod4x Server with Mods on Unraid ### Game CoD4 ### Linux distro Other ### Command command: start ### Further information When runnign the docker container with LGSM Cod4 with Mod on Unraid, I get the following error log. Same container version, with same config and same Mod is running fine on another distri then unraid. Tested another mods as well, everytime the same error. Without mod its running fine. ### Relevant log output ```shell  CoD4 X - linux-i386 build 1154 May 1 2022 ] --- Crypto Initializing --- ] Testing sha1 hash function - positive. ] Testing sha256 hash function - positive. ] Testing tiger hash function - positive. ] --- Crypto Initialization Complete --- ] IP: 127.0.0.1 ] IP: 192.168.120.23 ] Opening IP6 socket: [::]:28960 UDP ] Opening IP6 socket: [::]:28960 TCP ] Opening IP socket: 0.0.0.0:28960 UDP ] Opening IP socket: 0.0.0.0:28960 TCP ]  ----------------------------- ]  CoD4X Auto Update ]  Current version: 1.8 ]  Current subversion: 21.2 ]  Current build: 1154 ] -----------------------------  ] New subversion 21.2 ] Update not needed. All files are equal. ] ----- FS_Startup ----- ] fs_basepath is write protected. ] fs_homepath is write protected. ] fs_game is write protected. ] Current language: english ] Current fs_basepath: /data/serverfiles ] Current fs_homepath: /data/serverfiles ] Current search path: ] /data/serverfiles/Mods/pml220 ] /data/serverfiles/main ] /data/serverfiles/main_shared ] /data/serverfiles/players ]  File Handles: ] ---------------------- ] 0 files in iwd files ] couldn't exec default_mp.cfg ] fs_basepath is write protected. ] fs_homepath is write protected. ] dedicated is write protected. ] net_ip will be changed upon restarting. ] net_port will be changed upon restarting. ] fs_game is write protected. ] -------- Plugins initialization completed -------- ] QUERY LIMIT: Querylimiting is enabled ] Master0: cod4master.cod4x.ovh ] Resolving cod4master.cod4x.ovh  ] cod4master.cod4x.ovh resolved to 188.165.57.239:20810 ] cod4master.cod4x.ovh resolved to [2001:41d0:a:37ad::17]:20810 ] Master1: cod4master.ax-servers.hu ] Resolving cod4master.ax-servers.hu  ] cod4master.ax-servers.hu resolved to 84.21.7.14:20810 ] cod4master.ax-servers.hu resolved to [2a02:730:1220::187]:20810 ]CAppInfoCacheReadFromDiskThread took 1 milliseconds to initialize CApplicationManagerPopulateThread took 1 milliseconds to initialize (will have waited on CAppInfoCacheReadFromDiskThread)  [S_API] Initialization completed ] begin $init ] end $init 1 ms ] Adding fastfile 'code_post_gfx_mp' to queue ] Adding fastfile 'localized_code_post_gfx_mp' to queue ] Adding fastfile 'common_mp' to queue ] Adding fastfile 'mod' to queue ] --- Common Initialization Complete --- ] Hunk available: 10, Hunk total: 10 ] Hitch warning: 1754 msec frame time ] execing server.cfg ] sv_maxclients is write protected. ] Loading fastfile 'code_post_gfx_mp' ] used 0.47 MB memory in DB alloc ] Loaded fastfile 'code_post_gfx_mp' in 4ms (0ms waiting) ] Loading fastfile 'localized_code_post_gfx_mp' ] used 0.69 MB memory in DB alloc ] Loaded fastfile 'localized_code_post_gfx_mp' in 12ms (0ms waiting) ] Loading fastfile 'common_mp' ] used 39.00 MB memory in DB alloc ] Loaded fastfile 'common_mp' in 206ms (0ms waiting) ] Loading fastfile 'mod' ] used 1.91 MB memory in DB alloc ] Loaded fastfile 'mod' in 10ms (0ms waiting) ] ------ Server Initialization ------ ] Server: mp_crossfire ] SV_SpawnServer checksum feed: 0x11d89988 ] ----- FS_Startup ----- ] fs_basepath is write protected. ] fs_homepath is write protected. ] fs_game is write protected. ] Current language: english ] Current fs_basepath: /data/serverfiles ] Current fs_homepath: /data/serverfiles ] Current search path: ] /data/serverfiles/Mods/pml220 ] /data/serverfiles/usermaps/mp_crossfire ] /data/serverfiles/main ] /data/serverfiles/main_shared ] /data/serverfiles/players ]  File Handles: ] ---------------------- ] 0 files in iwd files ] Adding fastfile 'mp_crossfire' to queue ] Loading fastfile 'mp_crossfire' ] used 42.96 MB memory in DB alloc ] Waited 250 msec for asset 'maps/mp/mp_crossfire.d3dbsp' of type 'col_map_mp'. ] ------- Game Initialization ------- ] gamename: Call of Duty 4 ] gamedate: Feb 12 2009 ] Warning: WARNING: Could not load weapon file 'weapons/mp/defaultweapon_mp' ] Warning: WARNING: Could not load weapon file 'weapons/mp/defaultweapon_mp' ] ******************** ERROR: BG_LoadWeaponDef: Could not find default weapon ******************** ] ----- Server Shutdown ----- ]  With the reason: Server crashed: BG_LoadWeaponDef: Could not find default weapon ] Loaded fastfile 'mp_crossfire' in 413ms (0ms waiting) ] Error: Waited 162 msec for missing asset "Server crashed: BG_LoadWeaponDef: Could not find default weapon". ] Resolving cod4master.activision.com  ] Sending master heartbeat from 0.0.0.0:28960 to 84.21.7.14:20810 ] Sending master heartbeat from 0.0.0.0:28960 to 188.165.57.239:20810 ] cod4master.activision.com resolved to 185.34.107.159:20810 ] ==== ShutdownGame (1) ==== ] --------------------------- ] Hitch warning: 715 msec frame time ] Invalid or empty response from masterserver ] Sending master heartbeat from [::]:28960 to [2001:41d0:a:37ad::17]:20810 ] Invalid or empty response from masterserver ] Sending master heartbeat from [::]:28960 to [2a02:730:1220::187]:20810 ] ``` ### Steps to reproduce _No response_
Author
Owner

@dgibbs64 commented on GitHub (Dec 4, 2023):

I would suggest its an issue with the mod rather than linuxgsm specifically. Might be worth contacting the mod developer

<!-- gh-comment-id:1839122613 --> @dgibbs64 commented on GitHub (Dec 4, 2023): I would suggest its an issue with the mod rather than linuxgsm specifically. Might be worth contacting the mod developer
Author
Owner

@github-actions[bot] commented on GitHub (Dec 16, 2024):

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

<!-- gh-comment-id:2544219140 --> @github-actions[bot] commented on GitHub (Dec 16, 2024): This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sign in to join this conversation.
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
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LinuxGSM#2727
No description provided.