Call of Duty 4 Dedicated Server

Create a RANKED Windows server

If you want to set up CoD4 on a Windows server and that by copying the Call of Duty 4 folder onto a Windows server, you should take care of the „player profile“ beforehand – if you have set up CoD4 on yourself and already If you have created a profile with your name, this can lead to problems on the server – this is why you should create a new profile manually if you start a Windows server on which you are not playing (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), then 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. Creation and setup
  3. Include server script
  4. The server script


1. Set up a new profile on the server


In my example, I copied the \ Program Files \ Activision \ Call ofDuty 4 – Modern Warfare 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 CoD4 on the computer that has not yet been started as a server or client – let’s go directly to the CoD4 folder :

In the Call of Duty 4 – Modern Warfare folder you now create a new folder called “ players “ on:



In the newly created folder “ players “ you next create another new folder called “ profiles „:



If you have the folder “ profiles. „“, you switch to this folder and create another new folder – you give this folder a player name – I’ll choose the name“ admin “ as an example – it then looks like this: Next you have to go to the folder“ players „create a new text file – just click with the right mouse button in the space, then select NEW – TEXT FILE – then a new text file will be created: You simply name this new text file“ active.txt „- it looks like this: Open it now the “ active.txt











„and enter the name of the player you have created, so in our example just admin – then simply save the change :



Next you now switch to the folder of your created profile, in our example to the folder“ admin „- in this folder you must now also a new text file create – so go to the folder, click the right mouse button into the void and nEW – tEXT fILE choose:



the newly created text file now have you in a cfg file transform – so take care that you have the file extensionsdisplay (pressures to ATL + X, then O -> View-> the hook for [] extensions for known Dataitypen Hide remove. -> Apply, OK.) – rename the text file so now in “ config_mp.cfg “ to – if If you did everything correctly, you will get a warning that you are changing a file name extension – simply confirm this message with YES :



If everything went right, it should now look like this:



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

2. Creation and setup


Create a new shortcut on the desktop that leads to iw3mp.exe (or simply copy the shortcut to the CoD4-Multi-Player on the desktop and paste it back on the desktop):



Then 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 \ Activision \ Call of Duty 4 – Modern Warfare \ iw3mp.exe“ You now have to adjust

this target path : 1. If you want to create a server on which you can AT THE SAME TIME



want to play, then you need the command
+ set dedicated 0

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

3. If you want to have a PURE server (a „dedicated“ server (= dedicated) (you can NOT play at the same time that is running) then only as a server!), which 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 4 – Modern Warfare \ iw3mp.exe“ + set dedicated 0

Pure LAN -Server:
„C: \ Program Files \ Activision \ Call of Duty 4 – Modern Warfare \ iw3mp.exe“ + set dedicated 1
Pure Internet Server:
„C: \ Program Files \ Activision \ Call of Duty 4 – Modern Warfare \ iw3mp. exe „+ set dedicated 2

PAY ATTENTION TO 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 will do this using a so-called „CFG FILE“ – is nothing more than a simple text file whose extension you change from .txt to .cfg. In this file you write all the settings that you want to give to the game.

I’ll explain in more detail 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 already used the link to start the server, we now simply use it to specify the settings in the CFG file at the same time – we can do this by simply entering the parameter + exec example.cfg

add to the link that has already been set up.

In this example it looks like this:
„C: \ Programs \ Activision \ Call of Duty 4 – Modern Warfare \ iw3mp.exe“ + set dedicated 0 + exec example.cfg

Pure LAN server:
„C: \ Programs \ Activision \ Call of Duty 4 – Modern Warfare \ iw3mp.exe „+ set dedicated 1 + exec example.cfg
Pure Internet server:
“ C: \ Program Files \ Activision \ Call of Duty 4 – Modern Warfare \ iw3mp.exe „+ set dedicated 2 + exec

example.cfg PAY ATTENTION TO THE SPACES !!!

Now another command follows that you have to include so that the server can be started and the map rotation is running:
+ map_rotate

Set this command to your start parameter as well- It ensures that the map rotation , which is stored in the example.cfg, is carried out .

In our example it looks like this:
„C: \ Programs \ Activision \ Call of Duty 4 – Modern Warfare \ iw3mp.exe“ + set dedicated 0 + exec example.cfg + map_rotate

Pure LAN server:
„C: \ Programs \ Activision \ Call of Duty 4 – Modern Warfare \ iw3mp.exe „+ set dedicated 1 + exec example.cfg + map_rotate
Pure Internet server: “ C: \ Program Files
\ Activision \ Call of Duty 4 – Modern Warfare \ iw3mp.exe „+ set dedicated 2 + exec example.cfg + map_rotate

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 still 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, but only intended for a quick and easy start. So I won’t be typing every single command now.

Another „quirk“ I noticed in the CoD 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 for a few other users), however, 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 .:

The killcam is z. B. entered like this:
scr_killcam „1“
and does not work – so try
set scr_killcam „1“
or
seta scr_killcam „1“

4. The server script


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

Below you will find an example.cfg as a template – you can use it with z. B. Open WORDPAD and adjust the settings as you want them to be.

ATTENTION:
Some changes may not be accepted, otherwise you will violate the specifications for a ranked server! We are currently still working on how exactly to create an „unranked server“. A separate manual will appear for this.

The explanations for the individual DVARs are contained in the example.cfg and will be adapted and expanded as required and given the opportunity.

But now a few rough explanations about the example.cfg and its entries:

You see very often the characters // – this is called “ comment out “ – if CoD4 reads the CFG, it noted the calls with the // in front of it not – so you have the possibility for it. B. To take notes.
If you write the // in front of a setting (= DVAR ), CoD4 ignores this setting and simply selects the default value.

The entered values โ€‹โ€‹largely correspond to the standard values โ€‹โ€‹that are displayed in CoD4 in the console. The weapon and class settings were posted by Tally on the IW Nations board – we haven’t experimented with them yet.



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 you need to log on to:

IP number:

Windows 2000 and Windows XP:

Go on
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 , so z. B .:
/ map mp_vacant

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
If you change the game type, you take the command / g_gametype
(or what type of game you want – dm= Death Match – war = Team Death Match – sd = Search & Destroy – koth = Headquarters – dom = Domination, sab = Sabotage)
and then reload the map with the command
/ map_restart

If you have now prepared several scripts and you have one want to activate it, you take 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.



It looks a little different when you 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 if everyone tried to Change settings on the server, at some point nothing would work anymore …

This remote control password is called rcon_password . (rcon for R emote Con trole = Remote Control)

So you’re now on a server whose rcon_password You know, and now so want to make the server a change.

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 response.

So, the rcon_passwordis 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 in front of each command :

If you want to load a certain map, you have to enter the command / rcon map in the console , so z.
For example : / rcon map mp_vacant

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 was
(or what type of game you would like to have – dm = Death Match – was= Team Death Match – sd = Search & Destroy – koth = Headquarters – dom = Domination, sab = Sabotage)
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 You use the command
/ rcon 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.