Call of Duty 4
Last updated
Last updated
Many tutorials state that the game disk is required to install a CoD4 server. This is because the server is built into the client. This made it difficult to distribute and create a CoD4 server.
After investigating this issue, it was found that it is possible to run a server with most of the client files removed. This greatly reduces the file size and prevents the client from being used. Because of this LinuxGSM provides a download to only the files required to run the server. Preventing the use of the client, removing the opportunity to use the server to pirate the game.
cod4server
uses CoD4x project for its server, rather than the original, as it fixes various bugs and adds a few features over the vanilla server.
CoD4x has its own update functionality. It will automatically check for updates and does not require LinuxGSM to check for updates.
CoD4x game servers (since version 17.6) require a server token to be listed on the CoD4x master server.
To generate a token visit .
Once a token is generated add it to the sv_authtoken
cvar in server.cfg
or command-line parameters.
The server then needs to be restarted to allow the game server to be listed.
Mods for Call of Duty 4 have to be manually added to the game server.
To run a mod the servers fs_game
variable must be set correctly. Mods reside in the mods
folder inside fs_homepath
. Example directory tree:
To start the server with a mod set the fs_game
variable accordingly.
Modded CoD4 servers have the ability to run with user-created maps. To run a server with a custom map, it has to first be placed in the usermaps
directory (if missing simply create it yourself).
Typically, maps are prefixed by mp_ following the maps name.
Running custom maps on unmodded servers is not supported, but there is a neat workaround to still load custom maps. First, create a mods folder and some empty folder inside it.
Now set fs_game
to mods/myemptymod
and you will be able to run custom maps.
here sv_wwwBaseURL
has to point to a URL served by your web server.
An example directory tree for a served folder may look as below:
is possible with CoD4 to allow custom maps and mods to be hosted on a webserver.