qdm12 / cod4-docker

Runs a Call of duty 4 Modern Warfare (cod4x) dedicated server in a Docker container.
https://hub.docker.com/r/qmcgaw/cod4
MIT License
55 stars 10 forks source link

IWD files in mod not getting picked up #22

Open tomyslo1 opened 1 year ago

tomyslo1 commented 1 year ago

Hi, thanks for reading.

I'm using GunGame v1.2 with some of my custom skins, music, etc... This is the content of mods/TomyGunGame: enterleave.log

gungame
gungame.cfg
gungame_mp.log
maps
mod.ff
q3config_server.cfg
qconsole.log
qconsole.log.old
server.cfg
z_gungame.iwd
z_gunskins.iwd
z_skins.iwd

It works fine if I host it on Windows, but with the Docker image, no content that is in the IWD files works - however the mod itself works fine.

I would appreciate any information that I might be missing :-)

I'm happy to provide any additional information regarding this issue as well.

Docker run command (running on Unraid OS):

docker run
  -d
  --name='cod4'
  --net='bridge'
  -e TZ="Europe/Budapest"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="Titan"
  -e HOST_CONTAINERNAME="cod4"
  -e 'HTTP_SERVER'='on'
  -e 'ROOT_URL'='/'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.icon='https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/db1a12bb-bf19-4284-8703-b6704a2616e6/d1anb5y-9a069c83-9fac-4ed0-be04-f7b97007d494.png?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7InBhdGgiOiJcL2ZcL2RiMWExMmJiLWJmMTktNDI4NC04NzAzLWI2NzA0YTI2MTZlNlwvZDFhbmI1eS05YTA2OWM4My05ZmFjLTRlZDAtYmUwNC1mN2I5NzAwN2Q0OTQucG5nIn1dXSwiYXVkIjpbInVybjpzZXJ2aWNlOmZpbGUuZG93bmxvYWQiXX0.zORbRaMQ0c4uZWlwsuuiyPrth1sC_Vf--HCU-C3tsx8'
  -p '28960:28960/udp'
  -p '28960:28960/tcp'
  -p '8000:8000/tcp'
  -v '/mnt/user/appdata/cod4/main':'/home/user/cod4/main':'rw'
  -v '/mnt/user/appdata/cod4/zone':'/home/user/cod4/zone':'rw'
  -v '/mnt/user/appdata/cod4/mods':'/home/user/cod4/mods':'rw'
  -v '/mnt/user/appdata/cod4/usermaps':'/home/user/cod4/usermaps':'ro'
  -v '/mnt/user/appdata/cod4/logs':'/home/user/.callofduty4':'rw' 'qmcgaw/cod4' +set dedicated 2 +set sv_maxclients "5" +set fs_game mods/TomyGunGame +exec server.cfg +map_rotate

Log output:

2023/08/30 18:38:43 INFO [S_API] Initialization completed
2023/08/30 18:38:43 INFO begin $init
2023/08/30 18:38:43 INFO end $init 0 ms
2023/08/30 18:38:43 INFO Adding fastfile 'code_post_gfx_mp' to queue
2023/08/30 18:38:43 INFO Adding fastfile 'localized_code_post_gfx_mp' to queue
2023/08/30 18:38:43 INFO Adding fastfile 'common_mp' to queue
2023/08/30 18:38:43 INFO Adding fastfile 'mod' to queue
2023/08/30 18:38:43 INFO --- Common Initialization Complete ---
2023/08/30 18:38:43 INFO Hunk available: 10, Hunk total: 10
2023/08/30 18:38:43 INFO ^5Hitch warning: 2526 msec frame time
2023/08/30 18:38:43 INFO execing server.cfg
2023/08/30 18:38:43 INFO dedicated is write protected.
2023/08/30 18:38:43 INFO Loading fastfile 'code_post_gfx_mp'
2023/08/30 18:38:43 INFO used 0.47 MB memory in DB alloc
2023/08/30 18:38:43 INFO sv_maxclients is write protected.
2023/08/30 18:38:43 INFO sv_cheats is write protected.
2023/08/30 18:38:43 INFO g_gametype will be changed upon restarting.
2023/08/30 18:38:43 INFO execing gungame.cfg
2023/08/30 18:38:43 INFO map_rotate...
2023/08/30 18:38:43 INFO "sv_mapRotation" is: "gametype dm map mp_backlot gametype dm map mp_crash gametype dm map mp_bubba gametype dm map mp_nuketown gametype dm map mp_modern_rust gametype dm map mp_smalltownx gametype dm map mp_crash_snow gametype dm map mp_strike gametype dm map mp_warehouse_13"
2023/08/30 18:38:43 INFO 
2023/08/30 18:38:43 INFO "sv_mapRotationCurrent" is: ""
2023/08/30 18:38:43 INFO 
2023/08/30 18:38:43 INFO Loaded fastfile 'code_post_gfx_mp' in 2ms (0ms waiting)
2023/08/30 18:38:43 INFO Loading fastfile 'localized_code_post_gfx_mp'
2023/08/30 18:38:43 INFO used 0.69 MB memory in DB alloc
2023/08/30 18:38:43 INFO Loaded fastfile 'localized_code_post_gfx_mp' in 6ms (0ms waiting)
2023/08/30 18:38:43 INFO Loading fastfile 'common_mp'
2023/08/30 18:38:43 INFO used 39.00 MB memory in DB alloc
2023/08/30 18:38:43 INFO Loaded fastfile 'common_mp' in 137ms (0ms waiting)
2023/08/30 18:38:43 INFO Loading fastfile 'mod'
2023/08/30 18:38:43 INFO used 0.99 MB memory in DB alloc
2023/08/30 18:38:43 INFO Loaded fastfile 'mod' in 4ms (0ms waiting)
2023/08/30 18:38:43 INFO ------ Server Initialization ------
2023/08/30 18:38:43 INFO Server: mp_backlot
2023/08/30 18:38:43 INFO SV_SpawnServer checksum feed: 0x5c0a802
2023/08/30 18:38:43 INFO ----- FS_Startup -----
2023/08/30 18:38:43 INFO fs_homepath is write protected.
2023/08/30 18:38:43 INFO fs_game is write protected.
2023/08/30 18:38:43 INFO Current language: english
2023/08/30 18:38:43 INFO Current fs_basepath: .
2023/08/30 18:38:43 INFO Current fs_homepath: /home/user/cod4
2023/08/30 18:38:43 INFO Current search path:
2023/08/30 18:38:43 INFO /home/user/cod4/mods/TomyGunGame
2023/08/30 18:38:43 INFO ./mods/TomyGunGame
2023/08/30 18:38:43 INFO /home/user/cod4/usermaps/mp_backlot
2023/08/30 18:38:43 INFO ./usermaps/mp_backlot
2023/08/30 18:38:43 INFO /home/user/cod4/main
2023/08/30 18:38:43 INFO /home/user/cod4/main_shared
2023/08/30 18:38:43 INFO ./main
2023/08/30 18:38:43 INFO ./main_shared
2023/08/30 18:38:43 INFO ./players
2023/08/30 18:38:43 INFO 
2023/08/30 18:38:43 INFO File Handles:
2023/08/30 18:38:43 INFO handle 1: qconsole.log
2023/08/30 18:38:43 INFO ----------------------
2023/08/30 18:38:43 INFO 0 files in iwd files
2023/08/30 18:38:43 INFO Adding fastfile 'mp_backlot' to queue
2023/08/30 18:38:43 INFO Loading fastfile 'mp_backlot'
2023/08/30 18:38:43 INFO used 51.89 MB memory in DB alloc
2023/08/30 18:38:43 INFO Waited 200 msec for asset 'maps/mp/mp_backlot.d3dbsp' of type 'col_map_mp'.
2023/08/30 18:38:43 INFO ------- Game Initialization -------
2023/08/30 18:38:43 INFO gamename: Call of Duty 4
2023/08/30 18:38:43 INFO gamedate: Feb 12 2009
2023/08/30 18:38:43 INFO fs_ignoreLocalized is cheat protected.
2023/08/30 18:38:43 INFO fs_ignoreLocalized is cheat protected.
2023/08/30 18:38:43 INFO Loaded fastfile 'mp_backlot' in 298ms (0ms waiting)
2023/08/30 18:38:44 INFO -----------------------------------
2023/08/30 18:38:44 INFO ^3Warning: WARNING: Could not load weapon file 'weapons/mp/frag_no_cook_mp'
2023/08/30 18:38:44 INFO By using this software you agree to the usage conditions you can find at https://github.com/callofduty4x/CoD4x_Server#usage-conditions-for-server-hosters
2023/08/30 18:38:44 INFO -----------------------------------
2023/08/30 18:38:44 INFO ^4Calculate referenced files checksums...
2023/08/30 18:38:44 INFO ^4CRC32 for zone/code_post_gfx_mp.ff is b144581c Len 89196
2023/08/30 18:38:44 INFO ^4CRC32 for zone/common_mp.ff is 4ef7a074 Len 13517381
2023/08/30 18:38:44 INFO ^4CRC32 for mods/TomyGunGame/mod.ff is ccdd43c7 Len 210478
2023/08/30 18:38:44 INFO ^4CRC32 for zone/mp_backlot.ff is f4cc856b Len 39998207
2023/08/30 18:38:44 INFO Sending master heartbeat from 0.0.0.0:28960 to 188.165.57.239:20810
2023/08/30 18:38:44 INFO Resolving cod4master.activision.com 
2023/08/30 18:38:44 INFO Sending master heartbeat from 0.0.0.0:28960 to 84.21.7.14:20810
2023/08/30 18:38:44 INFO Masterserver needs token to complete registration
2023/08/30 18:38:44 INFO Sending master heartbeat from [::]:28960 to [2a02:730:1220::187]:20810
2023/08/30 18:38:44 INFO Masterserver needs token to complete registration
2023/08/30 18:38:44 INFO Sending master heartbeat from [::]:28960 to [2001:41d0:a:37ad::17]:20810
2023/08/30 18:38:44 INFO cod4master.activision.com resolved to 185.34.107.159:20810
2023/08/30 18:38:44 INFO ^5Hitch warning: 1073 msec frame time
2023/08/30 18:38:44 INFO Steam: Server connected successfully
2023/08/30 18:38:45 INFO GameServer is not VAC Secure!
2023/08/30 18:38:45 INFO GameServer SteamID: [A:1:1483797506]
2023/08/30 18:38:46 INFO Can not register server on the masterserver. Server needs to provide a valid token in cvar sv_authtoken.
2023/08/30 18:38:46 INFO Can not register server on the masterserver. Server needs to provide a valid token in cvar sv_authtoken.
kicks88 commented 10 months ago

Having same issues when running pml220 on an unraid setup.

I get the following error Error: Waited 103 msec for missing asset "Server crashed: BG_LoadWeaponDef: Could not find default weapon".