Help - Search - Members - Calendar
Full Version: COD4 Dedicated Server Guide
The Planet Forums > Control Panels > Cortex
Pages: 1, 2, 3
thedude
This is intended as an install guide for a COD4 dedicated server.

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 ""


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.
James Jhurani
Good post! happy.gif
DougK94
There also some good info at www.fpsadmin.com
Creed3020
As for COD4 Configs I have attached a set that are little closer to 100% functional. Keep in mind a thorough inspection should be done as many settings still need to be set.

Let me know if you have any issues.
handlebar
Just to split hairs, com_hunkmegs is not a CoD4 variable. You can set it, but it won't do anything. I think people are just copying their old CoD2 configs since a majority of the dvars map over to the new game.
thedude
Thanks for the replies.

The config I posted is more of a "I just want to get a server up" type of config icon_wink.gif
Creed3020
QUOTE (handlebar @ Nov 21 2007, 02:07 PM) *
Just to split hairs, com_hunkmegs is not a CoD4 variable. You can set it, but it won't do anything. I think people are just copying their old CoD2 configs since a majority of the dvars map over to the new game.


Do you have an evidence to back that claim up?

Personally, my COD4 instances when originally setup with com_hunkmegs "512" they were using exorborant amount of memory. I set it to 256 and they now use half the memory....go figure may it is just a fluke. wacko.gif
handlebar
com_hunkmegs isn't a variable defined in the engine. For instance, when you start the server up via +set dedicated 2 and you type in com_hunkmegs after things initialize you'll receive an error saying that the command is unknown (meaning the variable isn't defined). You can use the set command to create and define the variable, but the engine doesn't know this variable by default.

Verified it for myself just now (again). com_hunkmegs isn't defined, nor does defining it affect memory. Besides, com_hunkmegs only affects things on startup, so you'd have to put it in the command line, not the configs. I believe CoD4 will use ~360MB of VM.
Rammer_HS_
QUOTE (handlebar @ Nov 23 2007, 04:28 PM) *
com_hunkmegs isn't a variable defined in the engine. For instance, when you start the server up via +set dedicated 2 and you type in com_hunkmegs after things initialize you'll receive an error saying that the command is unknown (meaning the variable isn't defined). You can use the set command to create and define the variable, but the engine doesn't know this variable by default.

Verified it for myself just now (again). com_hunkmegs isn't defined, nor does defining it affect memory. Besides, com_hunkmegs only affects things on startup, so you'd have to put it in the command line, not the configs. I believe CoD4 will use ~360MB of VM.

I just need a config file that works with cod4 I noticed on the file I downloaded it said cod2 if I make this a text file what do I use to make it work and in which folder do I put it? LOST.
Creed3020
Look to my post above for working COD4 configs.

The reason why you keep seeing COD2 being mentioned is that the COD4 configs have been derived from COD2 ones.
luggz
Ok how do i start the server? any help would be alot
heres my Cfg

CODE
/******************************************************************************
// Public Information
//******************************************************************************
sets sv_hostname "-*Powned.Inc*- COD4 Server"
sets _Admin "admin"
sets _Email "cobra@pownedinc.com"
sets _Website "http://www.pownedinc.com.com"
sets _Location "US"
sets _Vent "216.180.236.236:4014"
sets _Mod ""
sets _ModVer "v2.3"
sets _ModUpdate "3Right Now"
sets _Maps "COD2 Stock & Custom"
set scr_motd "Shoot To Kill....Really!!"

//******************************************************************************
// Common Server Settings
//******************************************************************************
// Log Settings
set g_logsync "2" // 0=no log, 1=buffered, 2=continuous, 3=append
set logfile "1" // 0 = NO log, 1 = log file enabled
set g_log "games_mp.log" // Name of log file, default is games_mp.log
set sv_log_damage "1"

// Network options
//set net_ip "74.52.182.2" // Set your servers IP address
//set net_port "28960" // Set your port number
set com_hunkMegs "512"
set net_noipx "1" // Allow ONLY tcp/ip protocol, player/server communications

// Server Network Mode
set dedicated "2" // 0 = Listen, 1 = LAN, 2 = Internet

// Master servers
set sv_master1 "cod2master.activision.com"
set sv_master2 "cod2authorize.activision.com"
set sv_master3 "cod2master.infinityward.com"
set sv_master3 "cod2update.activision.com"
set sv_master4 "master.gamespy.com:28960"
set sv_master5 "master0.gamespy.com"
set sv_master6 "master1.gamespy.com"
set sv_master7 "clanservers.net"
set sv_gamespy "1"

// Password Settings
set rcon_password "" // RCON must supply pw to use
set sv_privatePassword "" // Private slots, non-public slots

// The following can be used to lock out the server so that only those
// players that have been provide the password can connect. Good for
// matches, practices, etc.
set g_password ""

// Player slots setup
set sv_maxclients "32" // MAX server player slots, this is TOTAL player slots
set sv_privateclients "" // Number of private player slots, maxclients - privateclients = public slots

// Ping
set sv_minPing "0" // MIN player ping on CONNECT, any lower and player isnt allowed to connect
set sv_maxping "350" // MAX player ping on CONNECT, any higher and player isnt allowed to connect

// Client Download Settings. (0=off/1=on) Used for MODs and custom maps
// See included Quick Setup Guide for instructions.
set sv_allowdownload "1"
seta sv_wwwDownload "1"
seta sv_wwwBaseURL ""
seta sv_wwwDlDisconnected "1"

// Rate
set sv_maxRate "5000"

// FPS
//set sv_fps "20"

// Drop inactive players
set sv_timeout "300"
set sv_zombietime "1"
set g_inactivity "0"
set g_inactivityspectator "0"

// AntiFlooding Settings
set sv_floodProtect "1"
set sv_reconnectlimit "3"

// Anti Cheat Settings
set sv_disableClientConsole "0"
set cl_autocmd "0"
set sv_cheats "0"
set sv_pure "1"
set g_banIPs ""
set g_no_script_spam "1"
set sv_punkbuster "0"

// Temporary Ban duration, in seconds
set sv_kickBanTime "3600"

// In-game voice communication system
set sv_voice "0"
set sv_voiceQuality "1"
set voice_deadChat "0"
set voice_global "0"
set voice_localEcho "0"
set winvoice_mic_mute "1"

//******************************************************************************
// Misc
//******************************************************************************
set sv_allowAnonymous "0"
set g_antilag "0"
set g_compassShowEnemies "0"
//ui_maxclients 32

//******************************************************************************
// Init & Exec CFG Files
//******************************************************************************
wait
exec playercontrol.cfg
wait
exec weaponcontrol.cfg
wait
exec gametypes.cfg
wait
exec maprotation.cfg
ajz4221
Have yet to try this but thanks in advanced!
Exactly what I was looking for.
osiris2007
Quick Q, I have been running dedicated server via the multiplayer .exe file. But now I want to move everything over to a linux server instead. Followed the instructions and got it started there, basicly just transfered the whole cod4 dir to the linux server and started the linux binary. When I test from LAN it shows the name as I had on the windows box. Now, where is all that info stored? I want to use this as base for a config file so that I can make small adjustments.
Creed3020
QUOTE (luggz @ Nov 27 2007, 06:52 PM) *
Ok how do i start the server? any help would be alot
heres my Cfg


To start the server you should make a shortcut from the multiplayer exe to your server's desktop.

Next you need to add information to that shortcut so that it starts correctly. Right click on the short cut, go to Properties. Then make sure you are one the Shortcut tab.

For target you will need to add some commands to the end of shortcut.

Mine looks like so:

CODE
C:\Call_Of_Duty_4_Server\iw3mp.exe +set dedicated 2 +set net_ip XXX.XXX.XXX.XXX +set net_port 28960 sv_punkbuster 1 +exec server.cfg +g_gametype koth +g_map mp_backlot


Add in the IP you want the server to run on, and which config file you want the server to load. You may use something other than server.cfg, who knows...

QUOTE (osiris2007 @ Nov 28 2007, 05:03 AM) *
Quick Q, I have been running dedicated server via the multiplayer .exe file. But now I want to move everything over to a linux server instead. Followed the instructions and got it started there, basicly just transfered the whole cod4 dir to the linux server and started the linux binary. When I test from LAN it shows the name as I had on the windows box. Now, where is all that info stored? I want to use this as base for a config file so that I can make small adjustments.


You might have trouble getting support for a Linux install here as most people are running Windows Server 2003.
Rammer_HS_
QUOTE (Creed3020 @ Nov 27 2007, 01:03 PM) *
Look to my post above for working COD4 configs.

The reason why you keep seeing COD2 being mentioned is that the COD4 configs have been derived from COD2 ones.

OK im using the configs server starts in team deathmatch and stays in this mode I would like it to rotate game types how do I make this happen its as though its not reading the configs
thedude
Adding the map rotation to your config would accomplish this.

Where it says

CODE
// 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"


You should be able to change that to the following:

CODE
// Map_rotation
set sv_mapRotation "gametype koth map mp_backlot gametype dm map mp_bloc gametype war 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"


If you look at the first couple maps, you see I changed the gametype for those maps.

You should be able to do the same.
osiris2007
QUOTE (Creed3020 @ Nov 28 2007, 02:27 PM) *
You might have trouble getting support for a Linux install here as most people are running Windows Server 2003.


Ok, nevermind that I mentioned linux. The whole point being, when starting the multiplayer .exe and starting a server from there, the info on name of the server etc is stored, even if I move the whole cod4 dir to another box it remembers the name and such that I used in the multiplayer .exe -> start server, so the question being, where is that info stored? So I can use that as base for a config file. The reason for wanting to use this as a base is a few functions that I cant seem to find when doing a manual config (based on what other posted around). For example, if I start the server as a free4all server, but after an hour or so the players vote that we change to domination instead. When running the multiplayer .exe file -> start server function, it from that point on uses domination as game type for every round until we vote to change it to free4all or something else. When using a manual config (see config below) it switches back to free4all, or what ever the server is started with after each round.

CODE
/******************************************************************************
// Public Information
//******************************************************************************
sets sv_hostname "****"
sets _Admin "****"
sets _Email "****"
sets _Website "*****"
sets _Location "NO"
// sets _Irc ""
// sets _Mod "^3e^1X^3treme^2+^7"
// sets _ModVer "v2.3"
// sets _ModUpdate "3Right Now"
// sets _Maps "COD2 Stock & Custom"
set scr_motd "Shoot To Kill....Really!!"

//******************************************************************************
// Common Server Settings
//******************************************************************************
// Log Settings
set g_logsync "2" // 0=no log, 1=buffered, 2=continuous, 3=append
set logfile "1" // 0 = NO log, 1 = log file enabled
set g_log "games_mp.log" // Name of log file, default is games_mp.log
set sv_log_damage "1"

// Network options
//set net_ip "1.2.3.4" // Set your servers IP address
set net_port "28960" // Set your port number
set com_hunkMegs "512"
set net_noipx "1" // Allow ONLY tcp/ip protocol, player/server communications

// Server Network Mode
set dedicated "2" // 0 = Listen, 1 = LAN, 2 = Internet

// Master servers
// set sv_master1 "cod2master.activision.com"
// set sv_master2 "cod2authorize.activision.com"
// set sv_master3 "cod2master.infinityward.com"
// set sv_master3 "cod2update.activision.com"
// set sv_master4 "master.gamespy.com:28960"
// set sv_master5 "master0.gamespy.com"
// set sv_master6 "master1.gamespy.com"
// set sv_master7 "clanservers.net"
// set sv_gamespy "1"

// Password Settings
// set rcon_password "somepass" // RCON must supply pw to use
// set sv_privatePassword "" // Private slots, non-public slots

// The following can be used to lock out the server so that only those
// players that have been provide the password can connect. Good for
// matches, practices, etc.
// set g_password ""

// Player slots setup
set sv_maxclients "32" // MAX server player slots, this is TOTAL player slots
set sv_privateclients "" // Number of private player slots, maxclients - privateclients = public slots

// Ping
set sv_minPing "0" // MIN player ping on CONNECT, any lower and player isnt allowed to connect
set sv_maxping "350" // MAX player ping on CONNECT, any higher and player isnt allowed to connect

// Client Download Settings. (0=off/1=on) Used for MODs and custom maps
// See included Quick Setup Guide for instructions.
set sv_allowdownload "1"
seta sv_wwwDownload "1"
seta sv_wwwBaseURL "http://www.itechies.info/cod4/mod"
seta sv_wwwDlDisconnected "1"

// Rate
set sv_maxRate "5000"

// FPS
set sv_fps "20"

// Drop inactive players
set sv_timeout "300"
set sv_zombietime "1"
set g_inactivity "0"
set g_inactivityspectator "0"

// AntiFlooding Settings
set sv_floodProtect "1"
set sv_reconnectlimit "3"

// Anti Cheat Settings
set sv_disableClientConsole "0"
set cl_autocmd "0"
set sv_cheats "0"
set sv_pure "1"
set g_banIPs ""
set g_no_script_spam "1"
set sv_punkbuster "0"

// Temporary Ban duration, in seconds
set sv_kickBanTime "3600"

// In-game voice communication system
set sv_voice "1"
set sv_voiceQuality "1"
set voice_deadChat "1"
set voice_global "1"
set voice_localEcho "1"
set winvoice_mic_mute "1"

//******************************************************************************
// Misc
//******************************************************************************
set sv_allowAnonymous "0"
set g_antilag "0"
set g_compassShowEnemies "0"
//ui_maxclients 32

//******************************************************************************
// Init & Exec CFG Files
//******************************************************************************
wait
exec playercontrol.cfg
wait
exec weaponcontrol.cfg
wait
exec gametypes.cfg
wait
exec maprotation.cfg
Rammer_HS_
QUOTE (osiris2007 @ Nov 29 2007, 02:29 AM) *
Ok, nevermind that I mentioned linux. The whole point being, when starting the multiplayer .exe and starting a server from there, the info on name of the server etc is stored, even if I move the whole cod4 dir to another box it remembers the name and such that I used in the multiplayer .exe -> start server, so the question being, where is that info stored? So I can use that as base for a config file. The reason for wanting to use this as a base is a few functions that I cant seem to find when doing a manual config (based on what other posted around). For example, if I start the server as a free4all server, but after an hour or so the players vote that we change to domination instead. When running the multiplayer .exe file -> start server function, it from that point on uses domination as game type for every round until we vote to change it to free4all or something else. When using a manual config (see config below) it switches back to free4all, or what ever the server is started with after each round.

CODE
/******************************************************************************
// Public Information
//******************************************************************************
sets sv_hostname "****"
sets _Admin "****"
sets _Email "****













Ya where exactly do I put this rotation portion of the config file
sets _Website "*****"
sets _Location "NO"
// sets _Irc ""
// sets _Mod "^3e^1X^3treme^2+^7"
// sets _ModVer "v2.3"
// sets _ModUpdate "3Right Now"
// sets _Maps "COD2 Stock & Custom"
set scr_motd "Shoot To Kill....Really!!"

//******************************************************************************
// Common Server Settings
//******************************************************************************
// Log Settings
set g_logsync "2" // 0=no log, 1=buffered, 2=continuous, 3=append
set logfile "1" // 0 = NO log, 1 = log file enabled
set g_log "games_mp.log" // Name of log file, default is games_mp.log
set sv_log_damage "1"

// Network options
//set net_ip "1.2.3.4" // Set your servers IP address
set net_port "28960" // Set your port number
set com_hunkMegs "512"
set net_noipx "1" // Allow ONLY tcp/ip protocol, player/server communications

// Server Network Mode
set dedicated "2" // 0 = Listen, 1 = LAN, 2 = Internet

// Master servers
// set sv_master1 "cod2master.activision.com"
// set sv_master2 "cod2authorize.activision.com"
// set sv_master3 "cod2master.infinityward.com"
// set sv_master3 "cod2update.activision.com"
// set sv_master4 "master.gamespy.com:28960"
// set sv_master5 "master0.gamespy.com"
// set sv_master6 "master1.gamespy.com"
// set sv_master7 "clanservers.net"
// set sv_gamespy "1"

// Password Settings
// set rcon_password "somepass" // RCON must supply pw to use
// set sv_privatePassword "" // Private slots, non-public slots

// The following can be used to lock out the server so that only those
// players that have been provide the password can connect. Good for
// matches, practices, etc.
// set g_password ""

// Player slots setup
set sv_maxclients "32" // MAX server player slots, this is TOTAL player slots
set sv_privateclients "" // Number of private player slots, maxclients - privateclients = public slots

// Ping
set sv_minPing "0" // MIN player ping on CONNECT, any lower and player isnt allowed to connect
set sv_maxping "350" // MAX player ping on CONNECT, any higher and player isnt allowed to connect

// Client Download Settings. (0=off/1=on) Used for MODs and custom maps
// See included Quick Setup Guide for instructions.
set sv_allowdownload "1"
seta sv_wwwDownload "1"
seta sv_wwwBaseURL "http://www.itechies.info/cod4/mod"
seta sv_wwwDlDisconnected "1"

// Rate
set sv_maxRate "5000"

// FPS
set sv_fps "20"

// Drop inactive players
set sv_timeout "300"
set sv_zombietime "1"
set g_inactivity "0"
set g_inactivityspectator "0"

// AntiFlooding Settings
set sv_floodProtect "1"
set sv_reconnectlimit "3"

// Anti Cheat Settings
set sv_disableClientConsole "0"
set cl_autocmd "0"
set sv_cheats "0"
set sv_pure "1"
set g_banIPs ""
set g_no_script_spam "1"
set sv_punkbuster "0"

// Temporary Ban duration, in seconds
set sv_kickBanTime "3600"

// In-game voice communication system
set sv_voice "1"
set sv_voiceQuality "1"
set voice_deadChat "1"
set voice_global "1"
set voice_localEcho "1"
set winvoice_mic_mute "1"

//******************************************************************************
// Misc
//******************************************************************************
set sv_allowAnonymous "0"
set g_antilag "0"
set g_compassShowEnemies "0"
//ui_maxclients 32

//******************************************************************************
// Init & Exec CFG Files
//******************************************************************************
wait
exec playercontrol.cfg
wait
exec weaponcontrol.cfg
wait
exec gametypes.cfg
wait
exec maprotation.cfg
Rammer_HS_
QUOTE (thedude @ Nov 28 2007, 01:47 PM) *
Adding the map rotation to your config would accomplish this.

Where it says

CODE
// 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"


You should be able to change that to the following:

CODE
// Map_rotation
set sv_mapRotation "gametype koth map mp_backlot gametype dm map mp_bloc gametype war 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"


If you look at the first couple maps, you see I changed the gametype for those maps.

You should be able to do the same.

Where in the server config file do I add the rotation
Creed3020
Haven't tried this yet but give it a go will you:

1) You should be adding it in the command line such as:

For Example: +g_gametype koth

2) Then change the Headquarters AKA KOTH listing in the maprotation.cfg file

For Example:

CODE
//******************************************************************************
// KOTH -- HEADQUARTERS
//******************************************************************************
//set sv_mapRotation "gametype koth map mp_backlot gametype dm map mp_bloc gametype sab map mp_bog gametype war map mp_cargoship gametype dom map mp_citystreets gametype sd map mp_convoy"


Notice how I changed the gametype command before each map name.
DeadTed
What about the new COD4 1.2 patch ?

Is this client side and server side ?

Are unpatched clients able to connect to 1.2 patched servers ?


I looked around and cant find the answer to this and it's not in the readme that comes with the patch or on the support page.

Anyone know ? unsure.gif
doc
It is both server and client. I have read that some clients can still connect if they are 1.2 and can connect to a 1.1 server. I would still recommend patching it.
Rammer_HS_
[error warning couldn't exec server.cfg] I have been playin with this and it always started now I get this message what I would like is a working cfg file..........Is it one file or 5 like others are doing if I could just get one that works with all the info I have now I think I could get the thing to rotate maps and gametyps randomly but now it seems all my files are corrupt
Martinss
I have same problem as Rammer_HS. It writes all the time "error warning couldn't exec mp_server.cfg" no matter which CFG file it is - i mean the contents. Tryed with cfg in this tutorial - same error. Tryed with this one:

CODE
/******************************************************************************
// Public Information
//******************************************************************************
sets sv_hostname "^3e^1X^3tremoe^2+ COD4"
sets _Admin "admin"
sets _Email "admin AT yoursite DOT com"
sets _Website "http://www.mycallofduty.com"
sets _Location "US"
sets _Irc ""
sets _Mod "^3e^1X^3treme^2+^7"
sets _ModVer "v2.3"
sets _ModUpdate "3Right Now"
sets _Maps "COD2 Stock & Custom"
set scr_motd "Shoot To Kill....Really!!"

//******************************************************************************
// Common Server Settings
//******************************************************************************
// Log Settings
set g_logsync "2"         // 0=no log, 1=buffered, 2=continuous, 3=append
set logfile "1"           // 0 = NO log, 1 = log file enabled
set g_log "games_mp.log"  // Name of log file, default is games_mp.log
set sv_log_damage "1"

// Network options
//set net_ip "1.2.3.4"         // Set your servers IP address
//set net_port "28960"         // Set your port number
set com_hunkMegs "512"
set net_noipx "1"              // Allow ONLY tcp/ip protocol, player/server communications

// Server Network Mode
set dedicated "2"              // 0 = Listen, 1 = LAN, 2 = Internet

// Master servers
set sv_master1 "cod2master.activision.com"
set sv_master2 "cod2authorize.activision.com"
set sv_master3 "cod2master.infinityward.com"
set sv_master3 "cod2update.activision.com"
set sv_master4 "master.gamespy.com:28960"
set sv_master5 "master0.gamespy.com"
set sv_master6 "master1.gamespy.com"
set sv_master7 "clanservers.net"
set sv_gamespy "1"

// Password Settings
set rcon_password "somepass"   // RCON must supply pw to use
set sv_privatePassword ""      // Private slots, non-public slots

// The following can be used to lock out the server so that only those
// players that have been provide the password can connect.  Good for
// matches, practices, etc.
set g_password ""

// Player slots setup
set sv_maxclients "32"         // MAX server player slots, this is TOTAL player slots
set sv_privateclients ""       // Number of private player slots, maxclients - privateclients = public slots

// Ping
set sv_minPing "0"             // MIN player ping on CONNECT, any lower and player isnt allowed to connect
set sv_maxping "350"           // MAX player ping on CONNECT, any higher and player isnt allowed to connect

// Client Download Settings. (0=off/1=on) Used for MODs and custom maps
// See included Quick Setup Guide for instructions.
set sv_allowdownload "1"
seta sv_wwwDownload "1"
seta sv_wwwBaseURL "http://www.your_website.com/base_folder"
seta sv_wwwDlDisconnected "1"

// Rate
set sv_maxRate "5000"

// FPS
//set sv_fps "20"

// Drop inactive players
set sv_timeout "300"
set sv_zombietime "1"
set g_inactivity "0"
set g_inactivityspectator "0"

// AntiFlooding Settings
set sv_floodProtect "1"
set sv_reconnectlimit "3"

// Anti Cheat Settings
set sv_disableClientConsole "0"
set cl_autocmd "0"
set sv_cheats "0"
set sv_pure "1"
set g_banIPs ""
set g_no_script_spam "1"
set sv_punkbuster "0"

// Temporary Ban duration, in seconds
set sv_kickBanTime "3600"

// In-game voice communication system
set sv_voice "0"
set sv_voiceQuality "1"
set voice_deadChat "0"
set voice_global "0"
set voice_localEcho "0"
set winvoice_mic_mute "1"

//******************************************************************************
// Misc
//******************************************************************************
set sv_allowAnonymous "0"
set g_antilag "0"
set g_compassShowEnemies "0"
//ui_maxclients 32

//******************************************************************************
// Init & Exec CFG Files
//******************************************************************************
wait
exec playercontrol.cfg
wait
exec weaponcontrol.cfg
wait
exec gametypes.cfg
wait
exec maprotation.cfg


And the same thing. Any help here?
thedude
You do have the CFG's in the "main" folder right?
Martinss
I have it here
CODE
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare


Same thing is on my computer and on dedicated server computer. Before writing couldn't exec it writes, that sv_punkbuster is writeprotected - does it have to do something with config?
Creed3020
QUOTE (thedude @ Dec 4 2007, 04:58 PM) *
You do have the CFG's in the "main" folder right?


Answer that question^^^ (the config file should be in the 'main' sub folder of the COD4 install.)

-----

Also here is a little tid bit icon_wink.gif

Is your config file named server.cfg?

Because you command line isn't looking for that file, its looking for mp_config.cfg

They are different files.
thedude
QUOTE (Martinss @ Dec 5 2007, 07:03 AM) *
I have it here
CODE
C:\Program Files\Activision\Call of Duty 4 - Modern Warfare


Same thing is on my computer and on dedicated server computer. Before writing couldn't exec it writes, that sv_punkbuster is writeprotected - does it have to do something with config?



If thats the same way it is on your server, your server config file should be in

C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\main

Also as creed said, make sure your server config file name is the same name that is in your command line with your server start script.

I.E if your config file is mp_server.cfg and your start script says +exec server.cfg , it won't work...they need to be the same.
Martinss
Oh. In main. Got it - will try. Config file name is right. icon_smile.gif

edit: YEEY! IT works thanks a lot guys. icon_smile.gif

edit2:

Wanted to ask you something.

maprotation.cfg file is like:

QUOTE
/******************************************************************************
// First gametype to load
// "dm" - free for all deathmatch
// "dom" - domination
// "koth" - headquarters
// "sab" - sabotage
// "sd" - search & destroy
// "war" - team deathmatch
//******************************************************************************
set g_gametype "dm"


//******************************************************************************
// DM -- FREE FOR ALL DEATHMATCH
//******************************************************************************
set sv_mapRotation "gametype dm map mp_backlot gametype dm map mp_bloc gametype dm map mp_bog gametype dm map mp_cargoship gametype dm map mp_citystreets gametype dm map mp_convoy gametype dm map mp_countdown gametype dm map mp_crash gametype dm map mp_crossfire gametype dm map mp_farm gametype dm map mp_overgrown gametype dm map mp_pipeline gametype dm map mp_shipment gametype dm map mp_showdown gametype dm map mp_strike gametype dm map mp_vacant"

//******************************************************************************
// DOM -- DOMINATION
//******************************************************************************
//set sv_mapRotation "gametype dom map mp_backlot gametype dom map mp_bloc gametype dom map mp_bog gametype dom map mp_cargoship gametype dom map mp_citystreets gametype dom map mp_convoy gametype dom map mp_countdown gametype dom map mp_crash gametype dom map mp_crossfire gametype dom map mp_farm gametype dom map mp_overgrown gametype dom map mp_pipeline gametype dom map mp_shipment gametype dom map mp_showdown gametype dom map mp_strike gametype dom map mp_vacant"

//******************************************************************************
// KOTH -- HEADQUARTERS
//******************************************************************************
//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"

//******************************************************************************
// SAB -- SABOTAGE
//******************************************************************************
//set sv_mapRotation "gametype sab map mp_backlot gametype sab map mp_bloc gametype sab map mp_bog gametype sab map mp_cargoship gametype sab map mp_citystreets gametype sab map mp_convoy gametype sab map mp_countdown gametype sab map mp_crash gametype sab map mp_crossfire gametype sab map mp_farm gametype sab map mp_overgrown gametype sab map mp_pipeline gametype sab map mp_shipment gametype sab map mp_showdown gametype sab map mp_strike gametype sab map mp_vacant"

//******************************************************************************
// SD -- SEARCH & DESTROY
//******************************************************************************
//set sv_mapRotation "gametype sd map mp_backlot gametype sd map mp_bloc gametype sd map mp_bog gametype sd map mp_cargoship gametype sd map mp_citystreets gametype sd map mp_convoy gametype sd map mp_countdown gametype sd map mp_crash gametype sd map mp_crossfire gametype sd map mp_farm gametype sd map mp_overgrown gametype sd map mp_pipeline gametype sd map mp_shipment gametype sd map mp_showdown gametype sd map mp_strike gametype sd map mp_vacant"

//******************************************************************************
// WAR -- TEAM DEATH MATCH
//******************************************************************************
//set sv_mapRotation "gametype war map mp_backlot gametype war map mp_bloc gametype war map mp_bog gametype war map mp_cargoship gametype war map mp_citystreets gametype war map mp_convoy gametype war map mp_countdown gametype war map mp_crash gametype war map mp_crossfire gametype war map mp_farm gametype war map mp_overgrown gametype war map mp_pipeline gametype war map mp_shipment gametype war map mp_showdown gametype war map mp_strike gametype war map mp_vacant"



And i want on my server 4 gamemodes rotating - then i need to write like:

CODE
set g_gametype "dm"
set g_gametype "dom"
set g_gametype "koth"


And remove all slashes from

CODE
//set sv_mapRotation
?
thedude
QUOTE (Martinss @ Dec 5 2007, 09:01 AM) *
Oh. In main. Got it - will try. Config file name is right. icon_smile.gif

edit: YEEY! IT works thanks a lot guys. icon_smile.gif

edit2:

Wanted to ask you something.

maprotation.cfg file is like:
And i want on my server 4 gamemodes rotating - then i need to write like:

CODE
set g_gametype "dm"
set g_gametype "dom"
set g_gametype "koth"


And remove all slashes from

CODE
//set sv_mapRotation
?


If it was me, I would do one big map SV there.

the following should run through all maps and all game modes:


CODE
// RUN THROUGH ALL MAPS AND ALL GAME TYPES
//
set sv_mapRotation "gametype dm map mp_backlot gametype dm map mp_bloc gametype dm map mp_bog gametype dm map mp_cargoship gametype dm map mp_citystreets gametype dm map mp_convoy gametype dm map mp_countdown gametype dm map mp_crash gametype dm map mp_crossfire gametype dm map mp_farm gametype dm map mp_overgrown gametype dm map mp_pipeline gametype dm map mp_shipment gametype dm map mp_showdown gametype dm map mp_strike gametype dm map mp_vacant gametype dom map mp_backlot gametype dom map mp_bloc gametype dom map mp_bog gametype dom map mp_cargoship gametype dom map mp_citystreets gametype dom map mp_convoy gametype dom map mp_countdown gametype dom map mp_crash gametype dom map mp_crossfire gametype dom map mp_farm gametype dom map mp_overgrown gametype dom map mp_pipeline gametype dom map mp_shipment gametype dom map mp_showdown gametype dom map mp_strike gametype dom map mp_vacant 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_mapRotation "gametype sab map mp_backlot gametype sab map mp_bloc gametype sab map mp_bog gametype sab map mp_cargoship gametype sab map mp_citystreets gametype sab map mp_convoy gametype sab map mp_countdown gametype sab map mp_crash gametype sab map mp_crossfire gametype sab map mp_farm gametype sab map mp_overgrown gametype sab map mp_pipeline gametype sab map mp_shipment gametype sab map mp_showdown gametype sab map mp_strike gametype sab map mp_vacant gametype sd map mp_backlot gametype sd map mp_bloc gametype sd map mp_bog gametype sd map mp_cargoship gametype sd map mp_citystreets gametype sd map mp_convoy gametype sd map mp_countdown gametype sd map mp_crash gametype sd map mp_crossfire gametype sd map mp_farm gametype sd map mp_overgrown gametype sd map mp_pipeline gametype sd map mp_shipment gametype sd map mp_showdown gametype sd map mp_strike gametype sd map mp_vacant gametype war map mp_backlot gametype war map mp_bloc gametype war map mp_bog gametype war map mp_cargoship gametype war map mp_citystreets gametype war map mp_convoy gametype war map mp_countdown gametype war map mp_crash gametype war map mp_crossfire gametype war map mp_farm gametype war map mp_overgrown gametype war map mp_pipeline gametype war map mp_shipment gametype war map mp_showdown gametype war map mp_strike gametype war map mp_vacant"


Or doing what you originally posted which is

CODE
set g_gametype "koth"
set g_gametype "DM"
set g_gametype "SD"
set g_gametype "war"


Might work to.....I'm not that familiar though with the COD4 config options...more of a BF1942:DC man myself.
Creed3020
QUOTE (Martinss @ Dec 5 2007, 10:01 AM) *
Oh. In main. Got it - will try. Config file name is right. icon_smile.gif

edit: YEEY! IT works thanks a lot guys. icon_smile.gif

edit2:

Wanted to ask you something.

maprotation.cfg file is like:
And i want on my server 4 gamemodes rotating - then i need to write like:

CODE
set g_gametype "dm"
set g_gametype "dom"
set g_gametype "koth"


And remove all slashes from

CODE
//set sv_mapRotation
?


Glad what I suggested helped.

What excatly was the problem? (The file name is my guess)

If you want the server to change mode each map to different mod then just edit the set g_gametype "dom" infront of each map in your rotation. You could also take what thedude posted and edit it so that it doesn't do all Deathmatch, then all Domination, then all etc....

Good luck! icon_mrgreen.gif
Martinss
My problem was that files weren't copyed in main directory. I thought that main directory was meaned as root directory of exe. icon_smile.gif
Creed3020
QUOTE (Martinss @ Dec 5 2007, 12:46 PM) *
My problem was that files weren't copyed in main directory. I thought that main directory was meaned as root directory of exe. icon_smile.gif


Ahh that would do it. icon_mrgreen.gif
osiris2007
Anyone with an idea of what server config that turns on/off the AirStrike planes dropping bombs or not? I have installed 2 different servers with same server config, and all works ok except that when calling airstrike the planes only do a "fly by", no bombs.
ajz4221
Edit. Never mind.
huntor
QUOTE (Creed3020 @ Nov 28 2007, 07:27 AM) *
To start the server you should make a shortcut from the multiplayer exe to your server's desktop.

Next you need to add information to that shortcut so that it starts correctly. Right click on the short cut, go to Properties. Then make sure you are one the Shortcut tab.

For target you will need to add some commands to the end of shortcut.

Mine looks like so:

CODE
C:\Call_Of_Duty_4_Server\iw3mp.exe +set dedicated 2 +set net_ip XXX.XXX.XXX.XXX +set net_port 28960 sv_punkbuster 1 +exec server.cfg +g_gametype koth +g_map mp_backlot


Add in the IP you want the server to run on, and which config file you want the server to load. You may use something other than server.cfg, who knows...
You might have trouble getting support for a Linux install here as most people are running Windows Server 2003.


You almost read what the question was. He is asking about a linux dedicated COD4. I am also wondering the same thing. I can get it to show as lan game, but as for having it change to dedicated I am not sure. If anyone can help on this question about a LINUX DEDICATED COD4 server it would be greatly appriciated.
thedude
If I read his question correctly, all the server info is stored in the server config file that was created...or should I say you created.

It should be the same on Linux....

When you create your script for starting the server, adding a +set dedicated 2

should have the server start as a internet server and not a LAN server.

If thats not what your wondering, then please restate the question as to what exactly it is your trying to accomplish.

If I am making no sense, I apoligize, as I've had a few shots of jager right now.
peugeot405
i tried to make a dedicated server like you explaned but i get a console window cod4 multiplayer isn't starting up anymore the game is fully installed and i want to make my pc a server please help me with kind regargds en big thx vince
thedude
QUOTE (peugeot405 @ Dec 21 2007, 08:34 PM) *
i tried to make a dedicated server like you explaned but i get a console window cod4 multiplayer isn't starting up anymore the game is fully installed and i want to make my pc a server please help me with kind regargds en big thx vince


What do you mean console window COD4 multiplayer isn't starting up anymore?

Do you mean that when you try to play multiplayer COD4 you get a console window?

If so then that is correct, as the shortcut you created is just to create a server...a server runs in console mode.

If you want to actually play the game you need to use the original shortcuts that the game installed.
peugeot405
when i use the normal shortcut and i look in the list of servers my server isn't there
so i can't play on my own server
and i can't make a dedicated server in the multiplayer menu
peugeot405
oh now i get it i have to start a dedicated server with the modified shortcut the start the multiplayer with my normal shortcut
but my server is local others can't see it.
what can i do

ps sorry for al those questions i'm new at this
peugeot405
i tried it again and it does work others can see my server when i make a server with the shortcut or from the multiplayer menu
i just want to say thanx you been a tremendous help and will be mentioned in de server name
thx a lot
with great respect
peugeot405
thedude
Glad you got it working.
dustoff
Anyone seen this problem .

I have the server set to 32 players both in the command line and in the config file but when the server gets to 16 players everyone trying to join gets the server is full message. The sever browser shows 32 players .
thedude
UPDATED:

Added additional line in my post showing how to bind a COD4 server to an IP if you will be running more than one on a server.
hannibal
hey m8 i got the verry straing problem i asked for the files now i downloaded them and have put them on my dedicaed server now the problem is that the server want start at all the console is not even coming up i use a short cut atm "C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\iw3mp.exe" +set dedicated 2 +exec server.cfg +map_rotate +set sv_punkbuster 1
i have befor a instalation but that was verry crappy 1 but that one at least strarted the console up
thedude
QUOTE (hannibal @ Dec 25 2007, 11:00 AM) *
hey m8 i got the verry straing problem i asked for the files now i downloaded them and have put them on my dedicaed server now the problem is that the server want start at all the console is not even coming up i use a short cut atm "C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\iw3mp.exe" +set dedicated 2 +exec server.cfg +map_rotate +set sv_punkbuster 1
i have befor a instalation but that was verry crappy 1 but that one at least strarted the console up


If you've tried starting before/had a crappy installation, bring up your task manager process list and look for iw3mp.exe in there...if you see, it kill it, then try starting the server again. It may be you already have iw3mp.exe running/rogue process and won't die off.

Let me know if you see it in the process list.
hannibal
mm i have looked but did not found even restart the whole got dam server to just make sure same result klik on the link to it and it wont start 1 bit
doc
COD 4 requires directx9 installed on the server before it will start up.

Here is more information -> http://www.gameserveradmin.org/cod4.php
GFG.Papa
QUOTE (thedude @ Nov 20 2007, 03:07 PM) *
This is intended as an install guide for a COD4 dedicated server.


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





/

------------------------------------------------------------------------------------------------------
I tried to add this info to the end of the target on the desktop shortcut and I get this error: " The name "C:\Program Files\Activision\Call of Duty 4 - Modern Warfare\iw3mp.exe" +set' specified in the target box is not valid. Make sure the path and the name are correct.

Can you advise what I should do next please?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.