Cannot load server
mattbruv opened this issue · 1 comments
I'm trying to load custom bots, but in order to do that I need to learn how to launch a CoD4x server, and I seem to be having errors trying to launch a simple server:
CoD4 X - win_mingw-x86 build 1153 May 1 2022
--- Crypto Initializing ---
Testing sha1 hash function - positive.
Testing sha256 hash function - positive.
Testing tiger hash function - positive.
--- Crypto Initialization Complete ---
Winsock Initialized
Hostname: MattP-LT
IP6: ::1
IP: 192.168.0.12
IP: 127.0.0.1
Opening IP6 socket: [::]:28960 UDP
Opening IP6 socket: [::]:28960 TCP
Opening IP socket: 127.0.0.1:28960 UDP
Opening IP socket: 127.0.0.1:28960 TCP
-----------------------------
CoD4X Auto Update
Current version: 1.8
Current subversion: 21.2
Current build: 1153
-----------------------------
New subversion 21.2
Update not needed. All files are equal.
----- FS_Startup -----
c:\program files (x86)\steam\steamapps\common\call of duty 4\cod4x-windows-server\main\jcod4x_00.iwd: 94291723
c:\program files (x86)\steam\steamapps\common\call of duty 4\cod4x-windows-server\main\xbase_00.iwd: -978930286
Current language: english
Current fs_basepath: c:/program files (x86)/steam/steamapps/common/call of duty 4/cod4x-windows-server
Current fs_homepath: c:/program files (x86)/steam/steamapps/common/call of duty 4/cod4x-windows-server
Current search path:
c:\program files (x86)\steam\steamapps\common\call of duty 4\cod4x-windows-server\main\xbase_00.iwd (115 files)
c:\program files (x86)\steam\steamapps\common\call of duty 4\cod4x-windows-server\main\jcod4x_00.iwd (67 files)
c:/program files (x86)/steam/steamapps/common/call of duty 4/cod4x-windows-server/main
c:/program files (x86)/steam/steamapps/common/call of duty 4/cod4x-windows-server/main_shared
c:/program files (x86)/steam/steamapps/common/call of duty 4/cod4x-windows-server/players
File Handles:
----------------------
182 files in iwd files
couldn't exec default_mp.cfg
dedicated is write protected.
net_ip will be changed upon restarting.
-------- 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
Couldn't resolve(IPv6) cod4master.cod4x.ovh
Master1: cod4master.ax-servers.hu
Resolving cod4master.ax-servers.hu
cod4master.ax-servers.hu resolved to 84.21.7.14:20810
Couldn't resolve(IPv6) cod4master.ax-servers.hu
[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 'cod4x_patchv2' to queue
--- Common Initialization Complete ---
Hunk available: 10, Hunk total: 10
Hitch warning: 2758 msec frame time
Error: ERROR: Could not find zone 'c:\program files (x86)\steam\steamapps\common\call of duty 4\cod4x-windows-server\zone\english\code_post_gfx_mp.ff'
Error: Can't find map mp_shipment
Error: A mod is required to run custom maps
Error: ERROR: Could not find zone 'c:\program files (x86)\steam\steamapps\common\call of duty 4\cod4x-windows-server\zone\english\localized_code_post_gfx_mp.ff'
Error: ERROR: Could not find zone 'c:\program files (x86)\steam\steamapps\common\call of duty 4\cod4x-windows-server\zone\english\common_mp.ff'
Loading fastfile 'cod4x_patchv2'
used 3.08 MB memory in DB alloc
Could not load default asset '$default' for asset type 'material'.
Tried to load asset '$levelbriefing'.
Sys_Error: Could not load default asset '$default' for asset type 'material'.
Tried to load asset '$levelbriefing'.
********************
ERROR: Could not load default asset '$default' for asset type 'material'.
Tried to load asset '$levelbriefing'.
********************
The problem was that I didn't do what the README told me to... I didn't copy the necessary game files from my game's root folder into the server folder.
After that I tried joining my local server but could not connect. The problem was that I had to change dedicated
from 2
to 1
, as 1
represents a LAN server.
After doing that, I can now connect with connect 127.0.0.1
.
I think it might be nice to update the README with instructions on how to launch a localhost server for those people who are wanting to play locally with bots.
Hopefully this comes in handy to someone in the future.