Can someone make a detailed installation tutorial of cod4x botwarfare

ok … xd … it didn’t work … it keeps giving that error when executing “$fps” on the server … anyway thank you very much for your support ! very grateful … =) … so what i do for now is to change the name of the command and when executing “$fps” …the server doesn’t recognize it and doesn’t crash …so i can use all the most important features for me from the mod “new experience” … like the voting of maps and game modes at the end of the games … the fov … etc … in the same way if I want it to have “fullbright” or the “promod” mode … I can configure it by default … and so it can be used without having to execute the command … =) … maybe I’ll create a thread about that problem I have … for now I fix it like this =) … thank you very much sir ! Greetings from Argentina!

here is the solution to your problem just add this code to this file in the following path at the end
file:

main_shared\maps\mp\gametypes\_callbacksetup.gsx

code add:

/*================
Called by code when a script defined command has been invoked.
================*/
CodeCallback_ScriptCommand(command, arguments)
{
	self thread code\scriptcommands::commandHandler( command, arguments );
}
//=============================================================================

2 Likes

Hi JEENNN… thats not his problem as I downloaded his server files and checked the _callbacksetup.gsx and that code is in his file already.

1 Like

Thanks a lot !! it worked !! thanks for your time and effort! … on behalf of myself and all the players who join the server !!! =)

no bro, that line was not in “_callbacksetup.gsx” … that line solved the problem … thank you very much for your time and dedication! very grateful heart …! =)

no bro, that line was not in “_callbacksetup.gsx” … that line solved the problem … thank you very much for your time and dedication! very grateful heart …! =)

The _callbacksertup.gsx you shared above does have the code in so I can’t see how you said it doesn’t - If it was missing I would have told you to enter it.

SEE HERE:

This is from the file you shared:

/*================
================*/
callbackVoid()
{
}

/*================
Called by code when a script defined command has been invoked.
================*/
CodeCallback_ScriptCommand(command, arguments)
{
	self thread code\scriptcommands::commandHandler( command, arguments );
}
//=============================================================================

Hi guys.
I have managed to start the mod and add the bots to it as I can link it to my extreme mod. When I start it gives me this error.
Cheers

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: PLEX-PC
IP6: fe80::d1ad:4c7b:2d79:7c15%5
IP: 192.168.1.41
IP: 127.0.0.1
IP6: ::1
Opening IP6 socket: [::]:28969 UDP
Opening IP6 socket: [::]:28969 TCP
Opening IP socket: 192.168.1.41:28969 UDP
Opening IP socket: 192.168.1.41:28969 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 -----
fs_game is write protected.
v:\cod4-8\main\localized_spanish_iw00.iwd: -1133804886
v:\cod4-8\main\localized_spanish_iw01.iwd: 979319220
v:\cod4-8\main\localized_spanish_iw02.iwd: -707299953
v:\cod4-8\main\localized_spanish_iw03.iwd: -770299200
v:\cod4-8\main\localized_spanish_iw04.iwd: 388659855
v:\cod4-8\main\localized_spanish_iw05.iwd: -1856209985
v:\cod4-8\main\localized_spanish_iw06.iwd: -1713101681
v:\cod4-8\main\iw_00.iwd: -1190209610
v:\cod4-8\main\iw_01.iwd: 648005745
v:\cod4-8\main\iw_02.iwd: -165391090
v:\cod4-8\main\iw_03.iwd: 309900900
v:\cod4-8\main\iw_04.iwd: 499941093
v:\cod4-8\main\iw_05.iwd: 489843315
v:\cod4-8\main\iw_06.iwd: -715502781
v:\cod4-8\main\iw_07.iwd: -1041447890
v:\cod4-8\main\iw_08.iwd: -1079795827
v:\cod4-8\main\iw_09.iwd: -1846635013
v:\cod4-8\main\iw_10.iwd: 173489706
v:\cod4-8\main\iw_11.iwd: -292863836
v:\cod4-8\main\iw_12.iwd: 1043426064
v:\cod4-8\main\iw_13.iwd: 2115322797
v:\cod4-8\main\jcod4x_00.iwd: 94291723
v:\cod4-8\main\xbase_00.iwd: -978930286
v:\cod4-8\mods\sps_x4\spsnipers_x4_v4.iwd: 198590140
Current language: spanish
Current fs_basepath: v:/cod4-8
Current fs_homepath: v:/cod4-8
Current search path:
v:\cod4-8\mods\sps_x4\spsnipers_x4_v4.iwd (220 files)
v:/cod4-8/mods/sps_x4
v:\cod4-8\main\xbase_00.iwd (115 files)
v:\cod4-8\main\jcod4x_00.iwd (67 files)
v:\cod4-8\main\iw_13.iwd (265 files)
v:\cod4-8\main\iw_12.iwd (33 files)
v:\cod4-8\main\iw_11.iwd (448 files)
v:\cod4-8\main\iw_10.iwd (230 files)
v:\cod4-8\main\iw_09.iwd (447 files)
v:\cod4-8\main\iw_08.iwd (66 files)
v:\cod4-8\main\iw_07.iwd (34 files)
v:\cod4-8\main\iw_06.iwd (416 files)
v:\cod4-8\main\iw_05.iwd (716 files)
v:\cod4-8\main\iw_04.iwd (765 files)
v:\cod4-8\main\iw_03.iwd (670 files)
v:\cod4-8\main\iw_02.iwd (1296 files)
v:\cod4-8\main\iw_01.iwd (1456 files)
v:\cod4-8\main\iw_00.iwd (1054 files)
v:/cod4-8/main
v:/cod4-8/main_shared
v:/cod4-8/players
v:\cod4-8\main\localized_spanish_iw06.iwd (1048 files)
localized assets iwd file for spanish
v:\cod4-8\main\localized_spanish_iw05.iwd (1466 files)
localized assets iwd file for spanish
v:\cod4-8\main\localized_spanish_iw04.iwd (2249 files)
localized assets iwd file for spanish
v:\cod4-8\main\localized_spanish_iw03.iwd (2937 files)
localized assets iwd file for spanish
v:\cod4-8\main\localized_spanish_iw02.iwd (2772 files)
localized assets iwd file for spanish
v:\cod4-8\main\localized_spanish_iw01.iwd (2971 files)
localized assets iwd file for spanish
v:\cod4-8\main\localized_spanish_iw00.iwd (2903 files)
localized assets iwd file for spanish

File Handles:

24644 files in iwd files
execing default_mp.cfg
execing default_mp_controls.cfg
execing default_mp_gamesettings.cfg
execing server_map.cfg
net_ip will be changed upon restarting.
dedicated is write protected.
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
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 ‘mod’ to queue
— Common Initialization Complete —
Hunk available: 10, Hunk total: 10
Hitch warning: 2344 msec frame time
execing server.cfg
dedicated is write protected.
sv_maxclients is write protected.
sv_cheats is write protected.
Loading fastfile ‘code_post_gfx_mp’
used 0.47 MB memory in DB alloc
Loaded fastfile ‘code_post_gfx_mp’ in 20ms (2ms waiting)
Loading fastfile ‘localized_code_post_gfx_mp’
used 0.71 MB memory in DB alloc
Loaded fastfile ‘localized_code_post_gfx_mp’ in 16ms (0ms waiting)
Loading fastfile ‘common_mp’
used 39.00 MB memory in DB alloc
execing config/ambientfx.cfg
execing config/clancontrol.cfg
execing config/redirect.cfg
execing config/monitoring.cfg
execing config/playercontrol.cfg
execing config/healthcontrol.cfg
execing config/messages.cfg
execing config/miscfeatures.cfg
execing config/security.cfg
execing config/scrncontrol.cfg
execing config/weaponcontrol.cfg
Bad command or cvar: et
execing config/wmdcontrol.cfg
execing config/gametypes.cfg
execing config/mapcontrol.cfg
execing config/maprotation.cfg
g_gametype will be changed upon restarting.
Adding a plugin script function for plugin 0, command name: HTTPS_GetString.
Adding a plugin script function for plugin 0, command name: PrintConsole.
Plugin httpget loaded successfully. Server is currently running 1 plugins.
g_gametype will be changed upon restarting.
map_rotate…
“sv_mapRotation” is: “map mp_backlot”

“sv_mapRotationCurrent” is: “”

Loaded fastfile ‘common_mp’ in 187ms (1ms waiting)
Loading fastfile ‘mod’
used 5.84 MB memory in DB alloc
Loaded fastfile ‘mod’ in 34ms (1ms waiting)
------ Server Initialization ------
Server: mp_backlot
SV_SpawnServer checksum feed: 0x24f77257
----- FS_Startup -----
fs_game is write protected.
v:\cod4-8\main\localized_spanish_iw00.iwd: -1133804886
v:\cod4-8\main\localized_spanish_iw01.iwd: 979319220
v:\cod4-8\main\localized_spanish_iw02.iwd: -707299953
v:\cod4-8\main\localized_spanish_iw03.iwd: -770299200
v:\cod4-8\main\localized_spanish_iw04.iwd: 388659855
v:\cod4-8\main\localized_spanish_iw05.iwd: -1856209985
v:\cod4-8\main\localized_spanish_iw06.iwd: -1713101681
v:\cod4-8\main\iw_00.iwd: -1190209610
v:\cod4-8\main\iw_01.iwd: 648005745
v:\cod4-8\main\iw_02.iwd: -165391090
v:\cod4-8\main\iw_03.iwd: 309900900
v:\cod4-8\main\iw_04.iwd: 499941093
v:\cod4-8\main\iw_05.iwd: 489843315
v:\cod4-8\main\iw_06.iwd: -715502781
v:\cod4-8\main\iw_07.iwd: -1041447890
v:\cod4-8\main\iw_08.iwd: -1079795827
v:\cod4-8\main\iw_09.iwd: -1846635013
v:\cod4-8\main\iw_10.iwd: 173489706
v:\cod4-8\main\iw_11.iwd: -292863836
v:\cod4-8\main\iw_12.iwd: 1043426064
v:\cod4-8\main\iw_13.iwd: 2115322797
v:\cod4-8\main\jcod4x_00.iwd: 94291723
v:\cod4-8\main\xbase_00.iwd: -978930286
v:\cod4-8\mods\sps_x4\spsnipers_x4_v4.iwd: 198590140
Current language: spanish
Current fs_basepath: v:/cod4-8
Current fs_homepath: v:/cod4-8
Current search path:
v:\cod4-8\mods\sps_x4\spsnipers_x4_v4.iwd (220 files)
v:/cod4-8/mods/sps_x4
v:/cod4-8/usermaps/mp_backlot
v:\cod4-8\main\xbase_00.iwd (115 files)
v:\cod4-8\main\jcod4x_00.iwd (67 files)
v:\cod4-8\main\iw_13.iwd (265 files)
v:\cod4-8\main\iw_12.iwd (33 files)
v:\cod4-8\main\iw_11.iwd (448 files)
v:\cod4-8\main\iw_10.iwd (230 files)
v:\cod4-8\main\iw_09.iwd (447 files)
v:\cod4-8\main\iw_08.iwd (66 files)
v:\cod4-8\main\iw_07.iwd (34 files)
v:\cod4-8\main\iw_06.iwd (416 files)
v:\cod4-8\main\iw_05.iwd (716 files)
v:\cod4-8\main\iw_04.iwd (765 files)
v:\cod4-8\main\iw_03.iwd (670 files)
v:\cod4-8\main\iw_02.iwd (1296 files)
v:\cod4-8\main\iw_01.iwd (1456 files)
v:\cod4-8\main\iw_00.iwd (1054 files)
v:/cod4-8/main
v:/cod4-8/main_shared
v:/cod4-8/players
v:\cod4-8\main\localized_spanish_iw06.iwd (1048 files)
localized assets iwd file for spanish
v:\cod4-8\main\localized_spanish_iw05.iwd (1466 files)
localized assets iwd file for spanish
v:\cod4-8\main\localized_spanish_iw04.iwd (2249 files)
localized assets iwd file for spanish
v:\cod4-8\main\localized_spanish_iw03.iwd (2937 files)
localized assets iwd file for spanish
v:\cod4-8\main\localized_spanish_iw02.iwd (2772 files)
localized assets iwd file for spanish
v:\cod4-8\main\localized_spanish_iw01.iwd (2971 files)
localized assets iwd file for spanish
v:\cod4-8\main\localized_spanish_iw00.iwd (2903 files)
localized assets iwd file for spanish

File Handles:

24644 files in iwd files
Adding fastfile ‘mp_backlot’ to queue
Loading fastfile ‘mp_backlot’
used 51.89 MB memory in DB alloc
Waited 301 msec for asset ‘maps/mp/mp_backlot.d3dbsp’ of type ‘col_map_mp’.
------- Game Initialization -------
gamename: Call of Duty 4
gamedate: Feb 12 2009
fs_ignoreLocalized is cheat protected.
fs_ignoreLocalized is cheat protected.
Loaded fastfile ‘mp_backlot’ in 447ms (2ms waiting)
Error: Waited 125 msec for missing asset “codescripts/delete.gsx”.
Error: Could not load rawfile “maps/mp/gametypes/tdms.gsc”.
Error: Could not find script: maps/mp/gametypes/tdms
The gametype tdms is not available! Will load gametype dm
Error:
Error: ******* script compile error *******
Error: unknown function: @ 50012


----- Server Shutdown -----

With the reason: Server fatal crashed: script compile error
unknown function

(see console for details)

Resolving cod4master.activision.com
Sending master heartbeat from 192.168.1.41:28969 to 84.21.7.14:20810
Sending master heartbeat from 192.168.1.41:28969 to 188.165.57.239:20810
cod4master.activision.com resolved to 185.34.107.159:20810
Resolving cod4master.activision.com (IPv4)
cod4master.activision.com resolved to 185.34.107.159:20810
Resolving cod4master.activision.com (IPv6)
cod4master.activision.com has no IPv6 address.
Sending heartbeat to cod4master.activision.com
Resolving cod4authorize.activision.com (IPv4)
cod4authorize.activision.com has no IPv4 address.
Resolving cod4authorize.activision.com (IPv6)
cod4authorize.activision.com has no IPv6 address.
Couldn’t resolve address: cod4authorize.activision.com
Sending heartbeat to cod4master.activision.com
==== ShutdownGame (1) ====

---- Network shutdown ----
Closing IPv4 UDP socket: 964
Closing IPv6 UDP socket: 928
Closing IPv4 TCP socket: 1028
Closing IPv6 TCP socket: 972

Sys_Error: script compile error
unknown function

(see console for details)

Invalid or empty response from masterserver
Invalid or empty response from masterserver

believe me those lines were not there… and that was what solved the problem…!
I later uploaded the file with the “JEENNN” solution to my “google drive” and replaced it with that… maybe that’s why when I download it now those lines are seen… because I replaced that file in my “google drive”… see …
Thank you very much for your support brother!

But that file you uploaded before the answer was given was the one I looked at and those lines of code was in there at that point…so doesn’t make sense

Anyway it doesn’t matter now as the main thing is that you are up and running

Have fun

1 Like

I keep seeing and starting the server in developer it gives me this

Waited 179 msec for asset ‘maps/mp/mp_crossfire.d3dbsp’ of type ‘col_map_mp’.
------- Game Initialization -------
gamename: Call of Duty 4
gamedate: Feb 12 2009
Game: G_SetupWeaponDef
fs_ignoreLocalized is cheat protected.
fs_ignoreLocalized is cheat protected.
Loaded fastfile ‘mp_crossfire’ in 289ms (1ms waiting)
Mistake:
Error: ******* script compile error *******
Error: unknown function: (file ‘maps/mp/bots/_bot_internal.gsc’, line 424)
if ( maps\mp\gametypes_missions::getWeaponClass( weap ) != “weapon_sniper” )
*

----- Server Shutdown -----

With the reason: Server fatal crashed: script compile error
unknown function
if ( maps\mp\gametypes_missions::getWeaponClass( weap ) != “weapon_sniper” )
(see console for details)

You mod seems to be conflicting with bot warfare.
Maybe you mod is not compatible with bot warfare

Thanks for your answer friend. It’s a shame I would like to be able to keep my mod since the other versions give a lot of problems. Can somebody help me??

Cheers

Yes ! that same! thanks for your support brother =)