Call of Duty 4: Modern Warfare is a first person action game. The dedicated server component can be run as a Windows Service using FireDaemon Pro, which allows you to have the dedicated server start automatically at boot prior to login, start multiple instances of the dedicated server and more. This HOWTO will show you how to set it up. You can also use FireDaemon Fusion to manage FireDaemon and other Windows services via a web browser.
Call of Duty 4: Modern Warfare Dedicated Server Setup Under FireDaemon
At the time of this writing, there is no Windows dedicated server component for Call of Duty 4: Modern Warfare. You will need to use the executables included with your game. It's best to create a clean installation of the game.
Go to "C:\Program Files\Activision\" and copy the "Call of Duty - Modern Warfare" to a folder on your hard drive. For the purposes of this HOWTO, we will be using "C:\Cod MW". The copying will take several hours.
Once all the files are copied, take the following steps:
- Go to "C:/Cod MW/main/" and delete the "Video" folder.
- Go to "C:/Cod MW/pb/" and delete everything inside it.
Go here and download the latest Punk Buster files.
Run pbsetup.exe and click "Add a Game". Choose a Call of Duty 4 server. You might need to browse to the iw3mp.exe file so that pbsetup knows where your Cod MW server is located. Once you have added your server, select or highlight the Call of Duty 4: Modern Warfare server in the list and click "Check For Updates". This should download a number of files to your Call of Duty: Modern Warfare server directories. You do not have to do anything else at this time, but you will have to add cfg's and cheat detection checks later.
Download and install FireDaemon Pro into the directory of your choice, typically C:\Program Files\FireDaemon.
Next start the FireDaemon GUI from the desktop shortcut. Click on the "Create a new service definition" button in the toolbar (or type Ctrl+N) and enter the information into the fields as you see below. Adjust the paths to suit your installation. Note the required parameters.
Executable: The path to your iw3mp.exe file. For the purposes of this HOWTO, the path is C:\Cod MW\iw3mp.exe.
Working Directory: The directory containing your iw3mp.exe file. For the purposes of this HOWTO, the path is C:\Cod MW.
The most important field on the tab is the Parameters. The Parameters define the initial setup of your server.
Here’s the full parameter list you should have:
+set dedicated 2 +set sv_punkbuster 1 +set net_ip 126.96.36.199 +exec mp-server.cfg +map_rotate
- "+set dedicated 2” Loads the server.
- "+set net_ip 188.8.131.52” Sets the Server IP (replace 184.108.40.206 with your external or WAN IP)
- “+set net_port 28960” Sets the Server Port.
- “+set sv_punkbuster 1” Enables PunkBuster anti-cheat.
- "+exec server.cfg" Loads the server configuration file.
- "+map_rotate" Loads the map cycle.
Now click on the Settings tab. If you DON'T want to see your dedicated server running, uncheck the Interact with Desktop check box & select “Hidden” from the “Show Window” dropdown. You can optionally run Call of Duty 4: Modern Warfare as the user you installed it as. In the Logon Account field type your username (eg. Administrator) and then enter the user's password twice in the Password and Confirm fields. You can change the Process Priority to allocate more CPU time to the dedicated server or specify which CPU or core the dedicated server will run on (in the case of multi-processor, hyperthreaded or multi-core CPUs).
Now click on the Lifecycle tab. Uncheck Graceful Shutdown as Call of Duty 4: Modern Warfare doesn't respond to it.
Now click OK to finish setup and start your Call of Duty: Modern Warfare server!