This covers installation for a Windows based environment.
1.
First thing you will need, is the game files uploaded to your server. You can either RAR/ZIP parts of your COD4 game then upload, or feel free to send me a PM, and I"ll send you the link to the COD4 files I have on a server here.
Once these files are uploaded, extract them into their own folder. For example extract to c:\COD4. Or whatever you want.
2.
Navigate to your folder where you extracted the COD 4 files. Find the file iw3mp.exe and create a shortcut to it on your desktop.
Right click on the shortcut and hit "Properties" box.
In the "Target" field at the very end, add this
CODE
+set dedicated 2 +set sv_punkbuster 1 +exec mp_server.cfg +map_rotate
If you plan to run multiple servers, then you should modify the target field to this:
CODE
+set dedicated 2 +set sv_punkbuster 1 +set net_ip xxx.xxx.xxx.xxx +exec mp_server.cfg +map_rotate
replace xxx.xxx.xxx.xxx with the IP you want that server assigned to...then on your second instance, simply change that IP to a new one.
This tells COD 4 you want this to be a Dedicated Internet server, enable punkbuster, execute your server cofig file and rotate the maps.
Step 3. Create the server config file.
Create a new file in the "main" folder(this is located in the root COD4 folder). name it mp_server.cfg
This is a sample config I use on my server.
CODE
seta sv_punkbuster 1
wait
pb_sv_enable
// Server name
set sv_hostname "YOUR HOST NAME" //Change this to whatever you want your server to be named in the server browser
//===============================================================================
// Public Information - OPTIONAL
//===============================================================================
sets _Admin "name"
sets _Email "blahblah@blahblah.com"
sets _Website "my very cool website.com"
sets _Location "Dallas - USA"
set scr_motd "A MOTD HERE
// Server password
set g_password "" // blank means NO password
// Rconpassword
set rcon_password "xxxx" // Change this to your rcon password!
// Maximum Clients
set sv_maxclients "32"
set sv_privateclients "6"
// Max Ping
set sv_maxping "250"
// Rate
set sv_maxRate "25000"
//set Game Type
set g_gametype "koth"
// Map_rotation
set sv_mapRotation "gametype koth map mp_backlot gametype koth map mp_bloc gametype koth map mp_bog gametype koth map mp_cargoship gametype koth map mp_citystreets gametype koth map mp_convoy gametype koth map mp_countdown gametype koth map mp_crash gametype koth map mp_crossfire gametype koth map mp_farm gametype koth map mp_overgrown gametype koth map mp_pipeline gametype koth map mp_shipment gametype koth map mp_showdown gametype koth map mp_strike gametype koth map mp_vacant"
set sv_maprotationcurrent ""
wait
pb_sv_enable
// Server name
set sv_hostname "YOUR HOST NAME" //Change this to whatever you want your server to be named in the server browser
//===============================================================================
// Public Information - OPTIONAL
//===============================================================================
sets _Admin "name"
sets _Email "blahblah@blahblah.com"
sets _Website "my very cool website.com"
sets _Location "Dallas - USA"
set scr_motd "A MOTD HERE
// Server password
set g_password "" // blank means NO password
// Rconpassword
set rcon_password "xxxx" // Change this to your rcon password!
// Maximum Clients
set sv_maxclients "32"
set sv_privateclients "6"
// Max Ping
set sv_maxping "250"
// Rate
set sv_maxRate "25000"
//set Game Type
set g_gametype "koth"
// Map_rotation
set sv_mapRotation "gametype koth map mp_backlot gametype koth map mp_bloc gametype koth map mp_bog gametype koth map mp_cargoship gametype koth map mp_citystreets gametype koth map mp_convoy gametype koth map mp_countdown gametype koth map mp_crash gametype koth map mp_crossfire gametype koth map mp_farm gametype koth map mp_overgrown gametype koth map mp_pipeline gametype koth map mp_shipment gametype koth map mp_showdown gametype koth map mp_strike gametype koth map mp_vacant"
set sv_maprotationcurrent ""
This is just a sample config, feel free to modify that however you want for your server.
You now want to copy the DX10 file to your "System32" directory..usually that is C:\windows\System32
Just drop it in there. You can download it from HERE
After that, you should be done...you might need to update Punkbuster though which you can do by running the "PBSETUP" program from Evenbalance. http://websec.evenbalance.com/downloads/windows/pbsetup.exe
Hopefully this helps those of you who are unsure of how to make a COD4 server.
