Call of Duty 2 Dedicated Server

Set up CoD2 server under Windows

If you want to set up CoD2 on a Windows server and that in which Duden’s Call of Duty 2 folder is copied to a Windows server, you should take care of the „player profile“ beforehand – if you have set up CoD2 at Dire and already have one Profile with your name can lead to problems on the server – therefore, if you start a Windows server on which you are not playing, you should create a new profile manually (e.g. if you have a Windows 2003 server online that you want to set up now).

If you want to start the server from your own computer (e.g. server & client in one), you can skip the following area and deal directly with point 2 -> creation and setup.

Overview:
1. Set up a new profile on the server
2. Create and set up
3. Integrate
server script 4. The server script

1. Set up a new profile on the server

In my example, I copied the \ Activision \ Call of Duty 2 folder to the Windows computer that is to act as the server and deleted existing profiles. In terms of structure, there is now a freshly installed CoD2 on the computer that has not yet been started as a server or client – so let’s go directly to the main CoD2 folder:

Now create a new folder called „players“ in the main folder:

When you have created the folder „players“, you switch to this folder and create another new folder – you give this folder a player name – I choose the name „admin“ as an example then looks like this:

Next you have to create a new text file in the folder „players“create – just click with the right mouse button in the space, then select NEWTEXT FILE – then a new text file will be created:

You simply name this new text file active.txt – it looks like this:

Now open the active.txt and enter the name of the player that you have created, in our example just admin – just save the change afterwards:

Next you now switch to the folder of your created profile, i.e. in our example to the folder admin – Dunun also has to create a new text file in this folder – i.e. switch to the folder, right-click in the empty space and select NEWTEXT FILE :

The newly created text file you now have a cfg file transform – so take care that you the file extensions appear werden- rename the text file so now in “ config_mp.cfgto – if you have a properly done everything, you get a warning that you Changed a file name extension – simply confirm this message with YES :

If everything went right, it should look like this:

Well, the preparation is finished, then you can start!

2. Creation and setup 

Create a new shortcut on the desktop that leads to CoD2MP_s.exe (or simply copy the shortcut to the CoD2 multi-player on the desktop and paste it again on the desktop):



Then you mark the shortcut , press the right mouse button and choose PROPERTIES :



Under TARGET you can see what the link refers to, e.g. E.g .:
„C: \ Program Files \ Activision \ Call of Duty 2 \ CoD2MP_s.exe“

You now have to adjust this target path :



1. If you want to create a server on which you want to play AT THE SAME TIME , then you need the command
+ set dedicated 0

2. If you want to have a PURE server (a „dedicated“ server (you CANNOT use it at the same time) play, which then only runs as a server!), which is only active in the LAN (i.e. in its own network), then you take the command
+ set dedicated 1

3. If you have a PURE server (a „dedicated“) Want to have a server (on which you can NOT play at the same time, it will only run as a server!) That is only active on the Internet , then you use the command
+ set dedicated 2

Depending on what you now want, you append a space after the target path of the link and then the appropriate command, e.g. B. for a server on which you can play with others at the same time you take
+ set dedicated 0

then look like this:
„C: \ Programs \ Activision \ Call of Duty 2 \ CoD2MP_s.exe“ + set dedicated 0

Pure LAN server:
„C: \ Program Files \ Activision \ Call of Duty 2 \ CoD2MP_s.exe“ + set dedicated 1
Pure Internet server:
„C: \ Program Files \ Activision \ Call of Duty 2 \ CoD2MP_s.exe“ + set dedicated 2

WATCH OUT THE SPACES !!!

3. Include a server script

Now you also have to make it clear to the game where it gets the corresponding game settings from – we now do this via a so-called „CFG FILE“ – it is nothing more than a simple text file with the extension from .txt to .cfg In this file you write all the settings that you want to give to the game.

To get started quickly, you can create a config file here:
Generator Server.cfg

I’ll explain in a moment what this file is all about, first let’s see how you can tell the server to look at this file and get the settings from it.

Since we have just been using the shortcut to start the server, we just use them now to give it the same settings in derCFG file to specify – we can, where we just parameter
+ exec dedicated.cfg
with at append the link that has already been set up.

In this example it looks like this:
„C: \ Program Files \ Activision \ Call of Duty \ CoD2MP_s.exe“ + set dedicated 0 + exectest.cfg

Pure LAN server:
„C: \ Program Files \ Activision \ Call of Duty \ CoD2MP_s.exe“ + set dedicated 1 + exec test.cfg
Pure Internet server:
„C: \ Programs \ Activision \ Call of Duty \ CoD2MP_s.exe „+ set dedicated 2 + exec test.cfg

WATCH OUT THE SPACES !!!

So if you have changed the target path of the shortcut accordingly, you accept the whole thing with „OK“ and then start the game by double-clicking on your customized shortcut.

But first we have to take care of the server script so that your server can start and run without any problems. I once created a small template, a very simple, uncomplicated server script, is of course not perfect, is only intended for a quick and easy start.

Before any critics start tearing me apart:

I want to make it as easy as possible for beginners, it’s just about showing the basic structure and enabling a first sense of success; Everyone can perfect it for themselves once they have understood how it works. Therefore I will not enter every single command, but only briefly describe the most important ones.

Another „quirk“ that struck me in the CoD2 server script story:
On many pages that deal with the creation of server scripts, the commands to be entered are given with „set“ or „seta“ – for me (and also with a few other users) but some server settings do not work. Therefore I state the script here as it works for me without any problems.

If you find problems, then try again by placing “ set “ or “ seta “ in front of the corresponding setting that does not work for you , e.g. B .:

Friendly Fire is entered like this:
scr_friendlyfire „1“
and does not work – so try
set scr_friendlyfire „1“
or
seta scr_friendlyfire „1“

4. The server script

So, let’s start with your first own server script:

Generate a test.cfg  and copy it into the main folder:
Generator server.cfg

This beispiel.cfg is now your Serverscript.Du course can you also own script with a different name to create, in the name of the script but may NOT BLANK be included! And of course you have to adapt the name of the script accordingly when making the link! You can have several scripts in the main folder without any problems, in the game you can then load another script via the console if you want. More about that in a moment.

You have the beispiel.cfg now as a template there – ready with z. B. Open WORDPAD and adjust the settings as you want them to be.

So, here’s what is in the CFG (the blue entries are those that you can find in the test.cfg ) – but now I will only explain the most important entries for a basic understanding:

These are now all the settings that are set in the test.cfg template. If the file is now in the main folder and you have changed your shortcut as described above, then you can almost start.

But first a few explanations about the test.cfg and its entries:

You very often see the characters // – this is called „commenting out“ – when CoD2 reads the CFG, it does not pay attention to the entries with the // before it – like this one has the possibility z. B. To take notes.
If you write the // in front of a setting (= DVAR), CoD2 ignores this setting and simply selects the default value.

// server name
// color codes should work like in CoD
set sv_hostname „name of server“
Explanation:
This setting sets the name of the server as it is displayed in the server selection in the game (or in ASE, HLSW, etc.).

// Passwords
//
// RCON password
set rcon_password „Password“
Explanation:
This setting defines the password for remote control of the server.

// Client password
set g_password „“
Explanation:
This setting defines the password if the server should only be accessible to certain people – only players who know the password can then visit your server (if you are only with Want to play your buddies online or a war is taking place).

// private password
set sv_privatepassword „“
Explanation:
This setting sets a „private password“ – you have specified a maximum number of players – if the server is now full, players who know the private password can still access the server, so they have a reserved space. You can determine how many players there are with the sv_privateclients setting – the number of reserved players is subtracted from the number of maximum players!
(Eg: set sv_maxclients „10“ and set sv_privateclients „2“ – then 8 people can access the server without a password, from 8 people the server is considered full – players with the private password can now access the server up to a total of 10 players the server.)

// Dead people can chat with everyone 0 = off, 1 = on
set g_deadChat „1“
Explanation:
This setting allows dead players and spectators to chat with everyone else in the game – otherwise only the spectators and the people in the game can chat with each other.

// Log on / off (0/1)
set logfile „1“
Explanation:
This setting determines whether a file with the game data is recorded.

// Name of the log file
set g_log „games_mp.log“
Explanation:
This setting determines the name under which the log file is saved.

// PK3 comparison server & client
set sv_pure „1“
Explanation:
This setting compares the game PK3 files from the server with those of the other players – if a game PK3 of another player has been changed, this player cannot access the server.

// Downloads from / to (0/1)
set sv_allowDownload „0“
Explanation:
This setting defines whether players can download files (MODs or custom maps for example) from the server if they are missing a file. This setting must then also be activated on the player so that the download can start.

// KillCam off / on (0/1)
set scr_killcam „1“
Explanation:
This setting switches the shooting camera on or off (the display that you see when you have been shot).
Should be switched off on weak servers as it loads the server.

// Automatic team balancing
// 0 – off
// X> 0 – balances the teams if the number of players is X
set scr_teambalance „0“
Explanation:
This setting defines whether the teams should be automatically balanced or not.

// Symbols over teammates
// 0 = no, 1 = yes
set scr_drawfriend „1“
Explanation:
This setting determines whether a symbol is to be seen over the heads of the teammates in team-based games or not – this makes it easier for beginners To keep friend and foe apart.

// Force re-entry
// 0 = no, 1 = yes
// deactivates the KillCam!
set scr_forcerespawn „1“
Explanation:
This setting determines whether players will return to the game immediately after their death or not – if this setting is on, the KillCam cannot be viewed.

// Team fire
// 0 – off
// 1 – on
// 2 – Reflected damage
// 3 – Shared damage
set scr_friendlyfire „1“
Explanation:
This setting determines whether you can shoot at teammates and what happens then.
Reflected damage means the shots ricochet and bounce back at you.
Shared damage means that the damage done is shared and that both the victim and the archer lose energy.

// votes
// 0 = forbidden, 1 = allowed
set g_allowvote „0“
Explanation:
This setting determines whether players are allowed to start voting on the server or not.
Unfortunately, you can only switch all voting options on or off and no longer make a section as in CoD 1.5 or UO.

// Master server (where the server should be registered)
seta sv_master1 „cod2master.activision.com“
Explanation:
This setting determines which „master servers“ your server should register with when you start an Internet server.
(So โ€‹โ€‹that your server is shown in the server list of the game, for example.)

// Weapon settings
// 0 = forbidden, 1 = allowed
Explanation:
These settings determine which weapons may and may not be selected in the selection menu.

// TeamDeathMatch

// Points limit
set scr_tdm_scorelimit „300“
Explanation:
This setting determines how many points a team must achieve in order to win the game before the time runs out.

// Time limit
set scr_tdm_timelimit „15“
Explanation:
This setting determines how long a map is played until the next map is changed.

// Rotation
// Maps contained in CoD2
Explanation:
This setting determines which maps should be played one after the other.

set g_gametype „tdm“
Explanation:
This setting defines the game mode when the server starts.

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_decoy gametype tdm map mp_decoy gametype tdm map mpdype gametype mpdype mapmapdype mpdype tmdype map tmdype tdype mpdype map tmart mapmetype tdype mpdype mapmart mapfardype tdm map tm map gametype tdype mpdype mapmapdype gametype tdm map tm map gametype mpdype mpdype mapmapdype gametype tdm mapm map mpdet gametype tdmet map tm gametype mp_toujane gametype tdm map mp_trainstation „
set sv_mapRotationCurrent“ „
Explanation:
This setting defines the order of the maps and the respective game modes in the respective map.
You can also mix maps and game modes, e.g. B .:
gametype tdm map mp_brecourt gametype sd map mp_decoy gametype hq map mp_burgundy gametype dm map mp_dawnville etc.

What set sv_mapRotationCurrent „“ means, honestly, I don’t know, if I have entered something here so far, the server did not start – so this value simply free to let.

wait 250
Explanation:
This setting only introduces a short pause – is a tip from the IW Nations forum, which is supposed to ensure that the server reads the map rotation and quiet – so it cannot be a mistake.

map_rotate
Explanation:
This setting ensures that the map rotation is started.

If you want to start an internet server, all you have to do is connect to the internet, find out your IP number and send it to your buddies so that they know which server to log in to:

IP number: (your current IP : 85.233.47.210)

Windows 2000 and Windows XP:

Go to
START -> EXECUTE -> there you enter CMD
The „command prompt opens – in this you enter the command
ipconfig
(and then you confirm with the ENTER key) – and you will see your IP address:

Windows 98:

START -> EXECUTE -> there you
enter winipcfg
A graphical interface opens and shows you your IP.

OR

you go to the page
http://www.whatismyip.com/
and lets you see your current IP. (Useful if you are connected to a router)

Control of the server:

If you are now server and client in one (i.e. you have created a server that you play on at the same time), you can issue commands to the server via the console:

If you want to load a certain map, you have to enter the command \ map in the console enter, e.g. B .:
\ map mp_stalingrad

Do you want to load the next map of the rotation, you take the command
\ map_rotate

Do you want to restart the current map, you take the command
\ fast_restart

Want to See you the status of the server, you take the command
\ server status

Want You change the game type, you use the command
\ g_gametype tdm
(or what type of game you would like to have – DM = Death Match – TDM = Team Death Match – SD = Search & Destroy – HQ = Headquater – CTF = Capture The Flag)
and then reload the map with the command
\ map_restart

If you now you have prepared several scripts and you want to activate one of them, use the command
\ exec name.cfg
where you replace name with the name of the script you want .

Basically you can enter (almost) every command that you use in the CFG file via the console.

The situation looks a little different if you want to control a server remotely (i.e. if you are ONLY a client and want to make a change on the server):

First of all, almost all servers on the Internet are protected with a password for remote control – it makes sense, what a mess it would be if everyone tried to change settings on the server, at some point nothing would run anymore …

This password for Remote control is called rcon_password. (rcon for remote control = remote control)

You are now on a server whose rcon_password you know and would like to make a change on the server.

First of all, you have to be on the server as a player or spectator. If this is the case, then you must first show the server that you are authorized to make changes. Therefore you first enter the rcon_password in the console with the command
\ rcon login password

password is the corresponding password for remote control of the server.

Unfortunately there is no confirmation when you have entered the password, but you will notice at the latest when you want to change something and there is no reaction.

So, the rcon_password is entered, now you want to give the server a command; these are the same commands that you need for the cfg and for the „local“ server, but you have to put \ rcon in front of each command:

If you want to load a certain map, you have to use the command \ rcon map in the console enter, e.g. B .:
\ rcon map mp_stalingrad

If you want to load the next map of the rotation, use the command
\ rcon map_rotate

If you want to restart the current map, use the command
\ rcon fast_restart

If you want to change the game type, use the command
\ rcon g_gametype tdm
(or whatever type of game you want – DM = Death Match – TDM = Team Death Match – SD = Search & Destroy – HQ = Headquater – CTF = Capture The flag)
and then reload the map with the command
\ rcon map_restart

If there are several scripts on the server and you want to activate one of them, use the command
\ rcon exec name.cfg

where you name against the name of the script you want exchanges.

Basically you can enter (almost) every command that you use in the CFG file via the console.