Dedicated server FAQ

rudedog

Administrator
Staff member
Joined
Oct 23, 2002
Likes
13
#1
Here you should be able to find most of the answers to FAQ regarding COD2.

Where here to help the community. With that said, you may use this guide on your site as long as you link back here to FPSadmin.com and please keep any/all credit info intact for each post, thanks
- What files do I need to run a dedicated server: click here
- What are the minimum iwd files, I need to run a server (non pure): click here
- Can I run a dedicated server on Linux: click here
- What are the MD5 check sum for all iwd files: click here
- How many clients can I host from my home connection: click here
- what are the command line options: Click here
- Some server only settings: click here
- What is rcon, how do I get to it and what are some of it's commands: click here *updated with rcon full screen toggle 10/30/05
- Sample cfg file click here
- Use system variables in place of actual passwords in the Shortcut: click here Posted here by Berty Dastard : Originally Posted by Adversary * added 11/10/05
-
ports click here
Samply command line for single game server:
"C:\Program Files\Activision\Call of Duty 2\CoD2MP_s.exe" +exec yourconfig.cfg

As of Nov 29th, here are some of the know issues that don't seem to be working right now:
- MOTD
- HTTP redirect
- server sided mods
- No Punkbuster

As always, spot a mistake, have something to add or have a question, please post a reply.
 
Last edited:

rudedog

Administrator
Staff member
Joined
Oct 23, 2002
Likes
13
#2
Minumue iwd files needed to run a dedicated server.

With the help of FA155mm you can get started with only the green files but remember if you wish to run a pure server you need them all.

iw_00.iwd needed
iw_01.iwd needed
iw_02.iwd needed
iw_03.iwd needed
iw_04.iwd needed

iw_05.iwd not needed
iw_06.iwd needed
iw_07.iwd needed
iw_08.iwd needed

iw_09.iwd not needed
iw_10.iwd not needed
iw_11.iwd not needed
iw_12.iwd not needed

iw_13.iwd needed
iw_14.iwd needed

localized_english_iw00.iwd not needed
localized_english_iw01.iwd not needed sound folder only
localized_english_iw02.iwd not needed sound folder only
localized_english_iw03.iwd not needed sound folder only
localized_english_iw04.iwd not needed sound folder only
localized_english_iw05.iwd not needed sound folder only
localized_english_iw06.iwd not needed sound folder only
localized_english_iw07.iwd not needed sound and video only
localized_english_iw08.iwd not needed video folder only
localized_english_iw09.iwd not needed
localized_english_iw10.iwd not needed images/materials only
 
Last edited:

rudedog

Administrator
Staff member
Joined
Oct 23, 2002
Likes
13
#3
MD5 check sum of all IWD files in the main dir

e45fadb935eca20897604118f9646b03 -----*iw_00.iwd

e489e43808f10cebf290bba71e6872e1 -----*iw_01.iwd

121a6b50d88844f1356e8ba5cfe1bbb0 -----*iw_02.iwd

3b1356811b366d66dd92da75bb7a32af ----*iw_03.iwd

3a946fe21554c45381c0f8c63966d85e ------*iw_04.iwd

b2bb68d688d585297313424db6fd3078 ----*iw_05.iwd

982e85ab42bef509641713ecc74732d8 -----*iw_06.iwd

ed834fcbd7c41fbe4d788ab12a618a9e ------*iw_07.iwd

416bf21ef43091581a88e054b7206f02 ------*iw_08.iwd

0fca765cf67426708b676fc9760bb701 -------*iw_09.iwd

46f2e429b3038c82ab7b71d2ff2f0168 -------*iw_10.iwd

ed40b0c8903cc154b0f801d2944fb298 ------*iw_11.iwd

2f8e06edfb8cd902f395746502a286e2 ------*iw_12.iwd

26fa7f8876c8d6cb6be0b822367e14ca ------*iw_13.iwd

767babdf9fc6ed7771ca26392f227e8c -------*iw_14.iwd

aaa2d567f70bd0c6a578a94a41fe1307 ------*localized_english_iw00.iwd

bd00256d5a5954db855e6d2bac283128 ----*localized_english_iw01.iwd

f747f1ebdb3783b1a02751f23481b182 ------ *localized_english_iw02.iwd

488e06b7e5ce02ec2f3b48d69e3599d2 ------*localized_english_iw03.iwd

5f64d34c09e27cffe4d74c9b32a3471d --------*localized_english_iw04.iwd

803ee2df83c87bd17a1361f22078f493 -------*localized_english_iw05.iwd

adb8c2df3b41e14d4793d0b96e1a3bed -----*localized_english_iw06.iwd

8544e7c1af0d2869104ac9344d948893 ------*localized_english_iw07.iwd

baea6d1c375552f40fa61214249fdd61 -------*localized_english_iw08.iwd

24763908278227c5db2e071f2d00f1a6 ------*localized_english_iw09.iwd

9ffb475da2f4fc740a83c4024b2547f0 ---------*localized_english_iw10.iwd
 

rudedog

Administrator
Staff member
Joined
Oct 23, 2002
Likes
13
#4
Recommended maximum client settings when hosting over a home connectin

If hosting a Multiplayer game over a home connection, the following amount of clients are recommended:

128k upload: 4 players
384k upload: 8 players
768k upload: 10 players

Exceeding these numbers when hosting at home may result in laggy conditions.
 

rudedog

Administrator
Staff member
Joined
Oct 23, 2002
Likes
13
#5
Command line Options

-Remember that you can start a dedicated server from in-game, changing all of the most common values from within the UI, from the Start Server menu.

-IMPORTANT NOTE: Activision® Customer Support does not support console commands. Please do not call with questions or problems that arise from the use of console commands.

Command Line Options

Command line options must be set on the command line and will not work if executed in a config file. Most command line options have the +set used before then in the command line

net_ip If you are on a multi-homed server and the default IP is not what you want to use for your Call of Duty® 2 server, the net_ip command will need to be used. This must be set on the command line in the following form.
Usage: +set net_ip <ip address>
Sample: "C:\Program Files\Activision\Call of Duty 2\CoD2MP_s.exe" +set dedicated 1 +set net_ip 192.168.0.0
net_port Changing the default server port requires the net_port command be run on the command line. It is useful for running multiple servers on the same computer or making the server somewhat more private. The default port is 28960 and is incremented automatically by 1 if another server is started without a specified port.
Usage: +set net_port
Sample: "C:\Program Files\Activision\Call of Duty 2\CoD2MP_s.exe" +set dedicated 1 +set net_port 28961
exec Used to execute a cfg file ie: map rotation
Usage: +set exec
Sample: "C:\Program Files\Activision\Call of Duty 2\CoD2MP_s.exe" +exec my_server_config_file.cfg
You can also combined command line options like this:

"C:\Program Files\Activision\Call of Duty 2\CoD2MP_s.exe" +set dedicated 1 +set net_ip 192.168.0.0 +set dedicated 1 +set net_port 28961 +exec my_server_config_file.cfg
**NOTE you only need net_ip and net_port when your hosting more then one server on the same box

 
Last edited:

rudedog

Administrator
Staff member
Joined
Oct 23, 2002
Likes
13
#6
Server Only Settings (all settings are the same as cod and UO execpt the rcon password and rcon login)


Server settings are only used only on the server and may be used at the console or command line. Command line usage requires a +set before each command.

sv_maxclients
- sets the maximum amount of clients that can connect to the server. The default setting is 20.
Usage:
Code:
sv_maxclients "n"

Where n = your maximum clients

sv_hostname - sets the server name that will show up in the master server list. The name must be enclosed in quotes if a space is in the name.

Usage:
Code:
sv_hostname "servername"
Where servername = your server's name


sv_pure - controls crc/zip check of client pk3 files to make sure the pk3 file has not been modified for cheating or other purposes. Client pk3 files must match that of the server to connect. The default is set to 1, or on. Set to 0 to turn off check.

Usage:
Code:
sv_pure 1
1 or 0 1= on 0= off or non pure

 

rudedog

Administrator
Staff member
Joined
Oct 23, 2002
Likes
13
#7
What is rcon how do I use it and what are some of the server console commands

To toggle from a single line to full rcon window use:
Code:
shift key + ~ key
Thanks goes to RaptureReady and MajorWoody
Getting Started
RCON = remote console. It is used to control your dedicated game server anywhere from across the room to across the world via your LAN or the Internet

How to setup a rcon password on my server.
Before you can log into your server via rcon you need to set the dedicated server's rcon password with the dvar rcon_password. Simply add this to your server cfg file, upload it to your server in the main dir. and restart the server or reissue your cfg file via the exec command
Useage:
Code:
set rcon_password "your_server's_rcon_password"
Simply place this command in your cfg file, normaly at the beggining and replace your_server's_rcon_password" with your own.
**NOTE when posting your cfg file please remember to remove this from the post.
How do I access my dedicated server via rcon:
In CoD2, when accessing rcon you need to use /rcon <command> for anything you wish to send to your remote server . However, you first need to send your rcon password to the server so it can authenticate you. You do this by accessing the console (press the tilda key ~ <normaly above the tab key>) and enter the following:
Code:
/rcon login your_servers's_rcon_password
** make sure you use the forward slash before rcon or your password will be sent to the screen letting everyone know what it is.
Some other console command (rcon) you can use via rcon but not limited too


status - shows the client number (num), score, ping, player name (name), client IP address (address), and port connected through (qport). Client number is used in conjunction with the clientkick command.
Usage:
Code:
/rcon status
kick - removes a player from the server. It is particularly useful for removing disruptive players. To kick a player, type kick and then the player's name.
Usage:
Code:
/rcon kick <playername>
killserver - will stop all server services from running but leaves the Call of Duty 2 executable running on the server.
Usage:
Code:
/rcon killserver
Any dvar you can use in your server's cfg file you can send via rcon, just remember to use the /rcon before your command.

Rudedog's tip: add your rcon password in your shortcut so you never have to send it in game


Code:
"C:\Program Files\Activision\Call of Duty 2\CoD2MP_s.exe" +rcon login Your_server's_rcon_password
Thanks RaptureReady
 
Last edited:

rudedog

Administrator
Staff member
Joined
Oct 23, 2002
Likes
13
#8
What is needed to run a dedicated CoD2 linux server;

You will need to upload all the files in the C:\Program Files\Activision\Call of Duty 2\main directory to your server (yes very close to 4 GB)
You then need the Linux binaries.
- You can grab them from our download section here
These Linux binaries are unofficial official beta binaries from IW. Please report any bugs to

FPSadmin.com would recommend you join the official CoD2 Linux mailing list
How to subscribe to the CoD Linux mailing list, simply send a blank email to one of the following:

List-Post: <mailto:cod@icculus.org>
List-Help: <mailto:cod-help@icculus.org>
List-Unsubscribe: <mailto:cod-unsubscribe@icculus.org>
List-Subscribe: <mailto:cod-subscribe@icculus.org> <- send your blank email here from the email addy you wish to receive mail from

Please report any bugs to https://bugzilla.icculus.org/
 
Last edited:

rudedog

Administrator
Staff member
Joined
Oct 23, 2002
Likes
13
#9
What files do I need to upload to run a dedicated game server (Windows)

You will need to upload all the files in the C:\Program Files\Activision\Call of Duty 2\main directory. red = folders green = files

\players
\players\[profile name]
(Ex. [Call of Duty 2]\main\players\MyProfile)-see below
\player\{profile name]\config_mp.cfg - see below
\players\active.txt
iw_00.iwd
iw_01.iwd
iw_02.iwd
iw_03.iwd
iw_04.iwd
iw_05.iwd
iw_06.iwd
iw_07.iwd
iw_08.iwd
iw_09.iwd
iw_10.iwd
iw_11.iwd
iw_12.iwd
iw_13.iwd
iw_14.iwd
localized_english_iw00.iwd
localized_english_iw01.iwd
localized_english_iw02.iwd
localized_english_iw03.iwd
localized_english_iw04.iwd
localized_english_iw05.iwd
localized_english_iw06.iwd
localized_english_iw07.iwd
localized_english_iw08.iwd
localized_english_iw09.iwd
localized_english_iw10.iwd




2. Dedicated server running on Windows(R) 2003


Creating a Call Of Duty(R) 2 dedicated server requires the presence of a profile.
To manually create one, do the following:

Add "+set dedicated [1 = LAN, 2 = Internet]" to the shortcut for Multiplayer

Add the following folders:
[Call of Duty 2]\main\players
[Call of Duty 2]\main\players\[profile name] (Ex. [Call of Duty 2]\main\players\MyProfile)

Create a file named "active.txt" in "[Call of Duty 2]\main\players" with the profile
name in the first line.

Create a blank file named "config_mp.cfg" in [Call of Duty 2]\main\players\[profile name]

If done correctly, the user will get a message that the configuration has changed since the last
time Call of Duty 2 was last run. The user will be presented two options, YES and NO. Select YES to
have the correct config file automatically created for you. Once that has completed, you will be at
the dedicated server console.

I've made it even easier, upload the file to your main dir of COD2
 

Attachments

Last edited:

rudedog

Administrator
Staff member
Joined
Oct 23, 2002
Likes
13
#10
Only thing that should have changed for CoD2 is rcon_password

Sample cfg file fromd1emain3qc

Code:
/ THIS IS CTF CONFIG 

// **************************************************  *** 
// *********** Server Security & Errors **************** 
// **************************************************  *** 

//Passwords 
set rcon_password "" //CHANGE ME 
set sv_privatePassword "" // OPTIONAL CHANGE ME 
set g_password "" // Only used if you want to close your server to the public 

//Logging 
set g_log "Server1_mp.log" 
set g_logSync "1" 

//SV Pure 
set sv_pure "1" 

//SV Cheats 
set sv_cheats "0" 

//Allowed Clans 
set sv_allowedClan1 "" 
set sv_allowedClan2 "" 

//Disable Console 
set sv_disableClientConsole "0" 

set sv_reconnectlimit "3" 

// **************************************************  *** 
// *********** Server Personality Dvars **************** 
// **************************************************  *** 

// Hostname and MOTD 
sv_hostname "^2|OCG|^1CTF ^324/7" 
set scr_motd "^3Visit our site at ^2ocgamers.net ^3Also ^3join us on our ^2TeamSpeak ^2Server ^3at ^267.18.253.52." 

// Max Players and Saved Private Possitions 
set sv_maxclients "36" //Maximum players on the server who are not using the private password 
set sv_privateClients "4" //Allows players to enter the server without taking up public slots 

//Downloads 
seta sv_allowAnonymous "0" 
set sv_allowdownload "1" 

// Server Packet Rate 
set sv_maxRate "20000" 

// Limit Laggers and reconnect spammers 
set sv_reconnectlimit "3" // Limits how long a player must wait to reconnect to a server 
set sv_minPing "0" 
set sv_maxPing "220" 

// - Banning 
set g_banIPs "" 

// AntiFlooding Settings 
set sv_floodProtect "1" 

// **************************************************  *** 
// ******************** Voice ************************* 
// **************************************************  *** 

set sv_voice "0" 

set sv_voiceQuality "1" 

// **************************************************  *** 
// ******************** Map Rotation ******************* 
// **************************************************  *** 
// Do NOT put your map_rotate command here! Map_rotate should be called VERY last 

// Set the Gametype 
set g_gametype "ctf" 

// Set the Map Rotation 

set sv_MapRotation "gametype ctf map mp_breakout gametype ctf map mp_brecourt gametype ctf map mp_burgundy gametype ctf map mp_carentan gametype ctf map mp_dawnville gametype ctf map mp_decoy gametype ctf map mp_downtown gametype ctf map mp_farmhouse gametype ctf map mp_leningrad gametype ctf map mp_matmata gametype ctf map mp_railyard gametype ctf map mp_toujane gametype ctf map mp_trainstation" 

set sv_maprotationcurrent "" 

// **************************************************  *** 
// *************** Match Setup Options ***************** 
// **************************************************  *** 
// Use these to set how your server will play a map. 

// CTF 
set scr_ctf_scorelimit "5" 
set scr_ctf_timelimit "30" 

// S&D 
//set scr_sd_bombtimer "60" 
//set scr_sd_graceperiod "15" 
//set scr_sd_roundlength "4" 
//set scr_sd_roundlimit "0" 
//set scr_sd_scorelimit "10" 
//set scr_sd_timelimit "0" 

// TDM 
//set scr_tdm_scorelimit "300" 
//set scr_tdm_timelimit "30" 

// DM 
//set scr_dm_scorelimit "50" 
//set scr_dm_timelimit "30" 

// HQ 
//set scr_hq_scorelimit "600" 
//set scr_hq_timelimit "30" 

// **************************************************  *** 
// ***************** Gameplay Dvars ******************** 
// **************************************************  *** 

// Team Icons 
set scr_drawfriend "1" 

// Friendly Fire 
set scr_friendlyfire "0" 

// Kill Cam & Spectate 
set scr_killcam "0" 
set scr_spectatefree "0" 
set scr_spectateenemy "0" 

// Auto Team Balance 
set scr_teambalance "1" 

// Force Respawn 
set scr_forcerespawn "1" 

// ************************************************ 
// ******************* Voting ********************* 
// ************************************************ 

set g_allowvote "0" 

// **************************************************  *** 
// ************ Weapon Settings ************************ 
// **************************************************  *** 

// Weapon Ammo Pools 
set g_weaponAmmoPools "0" 

//Snipers 
set scr_allow_enfieldsniper "1" 
set scr_allow_kar98ksniper "1" 
set scr_allow_nagantsniper "1" 
set scr_allow_springfield "1" 
set scr_allow_svt40 "1" 

// Rifles 
set scr_allow_enfield "1" 
set scr_allow_kar98k "1" 
set scr_allow_m1carbine "1" 
set scr_allow_m1garand "1" 
set scr_allow_nagant "1" 
set scr_allow_g43 "1" 

// MGs 
set scr_allow_bar "1" 
set scr_allow_bren "1" 
set scr_allow_mp44 "1" 
set scr_allow_ppsh "1" 

//SMGs 
set scr_allow_sten "1" 
set scr_allow_mp40 "1" 
set scr_allow_thompson "1" 
set scr_allow_pps42 "1" 
set scr_allow_greasegun "1" 

// Shotgun 
set scr_allow_shotgun "1" 

// Grenades 
set scr_allow_smokegrenades "1" 
set scr_allow_fraggrenades "1" 

 map_rotate
Map rotations
TDM:
Code:
 set sv_mapRotation "gametype tdm map mp_breakout gametype tdm map mp_brecourt gametype tdm map mp_burgundy gametype tdm map mp_carentan gametype tdm map mp_dawnville gametype tdm map mp_decoy gametype tdm map mp_downtown gametype tdm map mp_farmhouse gametype tdm map mp_leningrad gametype tdm map mp_matmata gametype tdm map mp_railyard gametype tdm map mp_toujane gametype tdm map mp_trainstation"
CTF:
Code:
  set sv_mapRotation "gametype ctf map mp_breakout gametype ctf map mp_brecourt gametype ctf map mp_burgundy gametype ctf map mp_carentan gametype ctf map mp_dawnville gametype ctf map mp_decoy gametype ctf map mp_downtown gametype ctf map mp_farmhouse gametype ctf map mp_leningrad gametype ctf map mp_matmata gametype ctf map mp_railyard gametype ctf map mp_toujane gametype ctf map mp_trainstation"
DM:
Code:
 set sv_mapRotation "gametype dm map mp_breakout gametype dm map mp_brecourt gametype dm map mp_burgundy gametype dm map mp_carentan gametype dm map mp_dawnville gametype dm map mp_decoy gametype dm map mp_downtown gametype dm map mp_farmhouse gametype dm map mp_leningrad gametype dm map mp_matmata gametype dm map mp_railyard gametype dm map mp_toujane gametype dm map mp_trainstation"
HQ:
Code:
 set sv_mapRotation "gametype hq map mp_breakout gametype hq map mp_brecourt gametype hq map mp_burgundy gametype hq map mp_carentan gametype hq map mp_dawnville gametype hq map mp_decoy gametype hq map mp_downtown gametype hq map mp_farmhouse gametype hq map mp_leningrad gametype hq map mp_matmata gametype hq map mp_railyard gametype hq map mp_toujane gametype hq map mp_trainstation"
SD:
Code:
 set sv_mapRotation "gametype sd map mp_breakout gametype sd map mp_brecourt gametype sd map mp_burgundy gametype sd map mp_carentan gametype sd map mp_dawnville gametype sd map mp_decoy gametype sd map mp_downtown gametype sd map mp_farmhouse gametype sd map mp_leningrad gametype sd map mp_matmata gametype sd map mp_railyard gametype sd map mp_toujane gametype sd map mp_trainstation"
Game type settings:

//S&D
Code:
 set scr_sd_scorelimit "7" 
set scr_sd_timelimit "350" 
set scr_sd_roundlimit "11" 
set scr_sd_roundlength "10" 
set scr_sd_graceperiod "10"
//HQ
Code:
 set scr_hqt_scorelimit "600" 
set scr_hqt_timelimit "600"
//SW
Code:
 set scr_sw_scorelimit "7" 
set scr_sw_timelimit "350" 
set scr_sw_roundlimit "11" 
set scr_sw_roundlength "10" 
set scr_sw_graceperiod "10"
//TDM
Code:
 set scr_tdm_scorelimit "200" 
set scr_tdm_timelimit "600"
//DM
Code:
 set scr_dm_scorelimit "150" 
set scr_dm_timelimit "600"
//CTF
Code:
 set scr_ctf_scorelimit "5" 
set scr_ctf_timelimit "400"

Thanks goes to d1emain3qc for posting

d1emain3qc

__________________
 
Joined
Dec 23, 2004
Likes
0
Location
FL
#11
Hey RD, I tried to put my rcon password in my command line like you have shown, but it does not work. I then removed (set) from the command and it works. Should look like this:


"C:\Program Files\Activision\Call of Duty 2\CoD2MP_s.exe" +rcon login Your_server's_rcon_password
 

rudedog

Administrator
Staff member
Joined
Oct 23, 2002
Likes
13
#12
Thanks, I was having some problems and could only get it to work when using the command line.

I will update the doc.
 

Hazzie

Junior Member
Joined
Feb 8, 2004
Likes
0
#13
rudedog said:
You can also combined command line options like this:

"C:\Program Files\Activision\Call of Duty 2\CoD2MP_s.exe" +set dedicated 1 +set net_ip 192.168.0.0 +set dedicated 1 +set net_port 28961 +set exec my_server_config_file.cfg"
Is the +set exec my_server_config.cfg bit a typo?

I tried that and my server did not run, thought it a bit odd and went back to +exec server.cfg and my server popped up straight away.
 

rudedog

Administrator
Staff member
Joined
Oct 23, 2002
Likes
13
#14
you are correct, you do not need set my mistake

Thanks for spotting that.

Also, your using the defaul cfg file "server.cfg" if you created your own, and placed it in the main directory (do not call it server.cfg) you would then exec your_made_config_file.cfg
 

SoS_KaoticOne

Junior Member
Joined
Oct 10, 2004
Likes
0
Location
Illinois, USA
#15
How would I go about setting a shortcut to automaticly connect me to the server and log me into rcon ? I had this setup with UO but can't remember the connection command to add to the command line.
 

rudedog

Administrator
Staff member
Joined
Oct 23, 2002
Likes
13
#17
I believe it's
Code:
+connect 127.0.0.1 +rcon login "your_pass_here"
For UO it's
Code:
+connect 127.0.0.1 +rconpassword "your_pass_here"
 
Last edited:

rudedog

Administrator
Staff member
Joined
Oct 23, 2002
Likes
13
#19
OldDog said:
I think you need a "+" before the "rcon login", like so:
Code:
+connect xxx.xxx.xxx.xxx +rcon login your_rcon_password
No? It's what I'm using and it works ok.
?? that's what I wrote...;)
 
Top Bottom