Call of Duty Dedicated Server

Here we go!

Create a new shortcut on the desktop that leads to CoDMP.exe (or simply copy the shortcut to the CoD multi-player on the desktop and paste it back 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.
For example : „C: \ Program Files \ Call of Duty \ CoDMP.exe“

You now have to adjust this target path:

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

2. If you want a PURE server (a „dedicated“ server (you CANNOT play on it at the same time, it will only run as a server!) That is only active in the LAN (i.e. in its own network), then use You the command
+ set dedicated 1

3. If you want a PURE server (a „dedicated“ server (you CANNOT play on it at the same time, it only runs as a server!) That is only active on the Internet, then You take the command
+ set dedicated 2

Depending on what you want to have, you add a space after the target path of the link and then the corresponding command, e.g. for a server on which you can play with others at the same time you use
+ set dedicated 0

It would look like this:
„C: \ Program Files \ Call of Duty \ CoDMP.exe“ + set dedicated 0

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

WATCH OUT THE SPACES !!!

Create a server

script : Now you also have to make it clear to the game where it gets the corresponding game settings – you have saved them in „dedicated.cfg“. So you have to make it clear to the server that it should execute this script. You can also append to the link with the command
+ exec dedicated.cfg

In your example it looks like this:
„C: \ Programs \ Call of Duty \ CoDMP. exe „+ set dedicated 0 + exec dedicated.cfg

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

WATCH OUT THE SPACES !!!

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

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. 

Another „quirk“ that struck me in the CoD server script story:
On many pages that deal with the creation of server scripts, the commands to be entered are indicated 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 notice 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“

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

Create a dedicatet.cfg here

This dedicated.cfg is now your server script. You can of course create your own script with a different name, but the name of the script must NOT contain any spaces ! 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 now have the dedicated.cfg as a template – you can include it. B. Open WORDPAD and adjust the settings as you want them to be.

So, here’s what is in the cfg and what it means: (The blue entries are the ones you can find in the dedicated.cfg)

Determines the game type at the start of the game
(DM = Death Match – TDM = Team Death Match – SD = Search & Destroy- RE = Retrieval – BEL = Behind Enemy Lines – HQ = Headquater)

g_gametype tdm

Sets the Startmap fixed
potential Maps: mp_brecourt mp_carentan mp_chateau mp_dawnville mp_depotmp_harbor mp_hurtgen mp_pavlov mp_powcamp mp_railyard mp_rocket mp_shipmp_bocage mp_neuville mp_stalingrad (standard in-game maps when manPatch has 1.4 installed)
NOTE : mp_chateau mp_powcamp and mp_ship can be played in SD NOT!

map mp_stalingrad

Setting an rconpassword: You should assign an rconpassword so that not everyone can arbitrarily influence the server settings. You exchange password for a password of your choice.

rconpassword „password“

Here are some information about the server. The information is entered between the „“ and can be read out by GameSpy or ASE.

Map rotation

For my part, I always put the game type in front of it, but it is usually not absolutely necessary. You shouldn’t put too many maps in the rotation either, as this can lead to problems. But makes z. B. makes sense if you want to change the game type from the start.

12//ROTATIONSset sv_mapRotation "g_gametype tdm map mp_brecourt g_gametype tdm map mp_carentan g_gametype tdm map mp_chateau g_gametype tdm map mp_dawnville g_gametype tdm map mp_depot g_gametype tdm map mp_harbor g_gametype tdm map mp_hurtgen g_gametype tdm map mp_pavlov g_gametype tdm map mp_rocket g_gametype tdm map mp_bocage g_gametype tdm map mp_neuville g_gametype tdm map mp_stalingrad"

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

The last thing 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
http://www.whatismyip.com/
and you can 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 give 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, e.g.
For example : / map mp_stalingrad

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

If you want to restart the current map, use the command
/ map_restart

If you want to see the status of the server, use the command

/ serverstatus

If you want to change the game type, 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 – RE = Retrieval – BEL = Behind Enemy Lines – HQ = Headquater)

and then restart the map with the command

/ map_restart

If you have now 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 .

In principle, you can enter (almost) every command that you use in the cfg file via the console.

It 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 also makes sense, what a mess it would be if everyone tried to change settings on the server, at some point nothing would work anymore …

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

You are now on a server whose rconpassword 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 rconpassword in the console with the command

/ rconpassword 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 rconpassword 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 set / rcon before each command:

If you want to load a certain map, you have to enter the command / rcon map in the console, e.g.
For example : / 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 map_restart

If you want to change the game type, use the command

/ rcon g_gametype tdm

(or what type of game you want to have – DM = Death Match – TDM = Team Death Match – SD = Search & Destroy – RE = Retrieval – BEL = Behind Enemy Lines – HQ = Headquater)

and then restart the map with the command

/ rcon map_restart

If there are several scripts on the server and you want to activate one of them, you take the command

/ rcon exec name .cfg

where you replace name with the name of the script you want .

In principle, you can enter (almost) every command that you use in the cfg file via the console.