Call of Duty 4: Servers: Difference between revisions

From COD Modding & Mapping Wiki
Jump to navigation Jump to search
(New page: ''By Daevius'' ==Test your map== Save your map in the map editor, be sure that it has to have prefix 'mp_' for multiplayer maps. Now open the CoD4 Compile Tools, go to the Level Compiling...)
 
No edit summary
Line 1: Line 1:
''By Daevius''
PC server admin guide for Call of Duty 4: Modern Warfare


==Test your map==
== General ==
Save your map in the map editor, be sure that it has to have prefix 'mp_' for multiplayer maps. Now open the CoD4 Compile Tools, go to the Level Compiling tab and select your map in the list on the left. Now on the right, untick the Connect Paths if you make a multiplayer map, click the Light Options button, untick Extra and tick the Fast checkbutton.


Now press '1. Compile .BSP', then '2. Compile Reflections'. Then press the 3rd button '3. Build Fast File', if a pop up comes up, press Yes. If the pop-up came up, press the 4th button '4. Update Zone File' and add the example list (replace [mapname] by your map name, for example: 'mp_example') you can find [[Call of Duty 4: Update Zone File|here]], and rebuild the Fast File (button 3).
* Ports in use


Before you press button 5, be sure to tick 'Enable Developer', 'Enable Developer Script' and 'Use Custom Command Line Options' below the map list. In the textbox under 'Use Custom Command Line Options' enter the following:
UDP 20800
UDP 20810
UDP 28960-28970


+set r_fullscreen 1 +set fs_game Mods/customMaps
* Hardware/Bandwidth Requirements


Also, go to '[root]/zone/english/' and copy '[mapname].ff' and '[mapname]_load.ff' into '[root]/usermaps/[mapname]/' (create that directory if it does not yet exist). Also copy the [[Call of Duty 4: .IWD file|.iwd file]] into that directory. You can now press the magical 5th button :P
Bandwidth and server resource usage should be lower than that of COD2 in most situations, but it is not guaranteed. There are some situations where bandwidth usage may spike, and the server will get hit harder than usual. Generally, if you're capable of hosting a COD2 dedicated server you should be just fine for COD4.


==Release your map==
== [[IWD Packaging For Custom Maps]] ==
Follow the steps for 'Test your map', except that you have to tick 'Extra' and untick 'Fast'.


Now create a directory called 'usermaps' on your desktop, and copy past the directory '[root]/usermaps/[mapname]' into your newly created directory. Add some screenshots to your desktop, and a Readme file (on how to install your map and who the author is). Then add all those files to a zip, and call it '[mapname]_v1.zip' for version 1 of your map. Alter '_v1' to what the current version is of your map. You can now upload it to various map center sites.
[[Image:Navbits start.gif]][http://wiki.modsrepository.com/index.php/IWD_Packaging_For_Custom_Maps  Guide]
 
== [[Windows Server Setup]] ==
 
[[Image:Navbits start.gif]][http://wiki.modsrepository.com/index.php/Windows_Server_Setup  Guide]
 
== [[Linux Server Setup]] ==
 
== [[Server Administration]] ==
 
[[Image:Navbits start.gif]][http://wiki.modsrepository.com/index.php/Server_Administration  Guide]
 
== Server commands ==
 
killserver
quit
map_restart
say "my message"
tell [clientnum] "my message to you"
 
== Server Settings (Stock) ==
 
map rotation
 
sv_mapRotation gametype <gametype> map <mapname> gametype <gametype> map <mapname> ...
 
<gametype> is one of:<br>
* "dm"  - free for all deathmatch
* "dom"  - domination
* "koth" - headquarters
* "sab"  - sabotage
* "sd"  - search & destroy
* "war"  - team deathmatch
<br>
{| class="wikitable"
|-
! Parameter
! Value
|-
|sv_hostname  || "my server"
|-
|g_gametype || <gametype>
|-
|sv_maxclients || [1-32]
|-
|g_password || "my password"
|-
|sv_voice || [0-1]
|-
|scr_teambalance | [0-1]
|-
|g_allowvote  || [0-1]
|-
|sv_punkbuster || [0-1]
|-
|sv_minping  || [0-n] (milliseconds)
|-
|sv_maxping || [0-n] (milliseconds)
|-
|sv_connectTimeout || [0-n] (seconds)
|-
|sv_timeout || [0-n] (seconds)
|}
 
== [[Gameplay Options]] ==
 
[[Image:Navbits start.gif]][http://wiki.modsrepository.com/index.php/Gameplay_Options  Guide]

Revision as of 02:24, 16 October 2008

PC server admin guide for Call of Duty 4: Modern Warfare

General

  • Ports in use
UDP 20800
UDP 20810
UDP 28960-28970
  • Hardware/Bandwidth Requirements

Bandwidth and server resource usage should be lower than that of COD2 in most situations, but it is not guaranteed. There are some situations where bandwidth usage may spike, and the server will get hit harder than usual. Generally, if you're capable of hosting a COD2 dedicated server you should be just fine for COD4.

IWD Packaging For Custom Maps

Guide

Windows Server Setup

Guide

Linux Server Setup

Server Administration

Guide

Server commands

killserver
quit
map_restart
say "my message"
tell [clientnum] "my message to you"

Server Settings (Stock)

map rotation

sv_mapRotation gametype <gametype> map <mapname> gametype <gametype> map <mapname> ...

<gametype> is one of:

  • "dm" - free for all deathmatch
  • "dom" - domination
  • "koth" - headquarters
  • "sab" - sabotage
  • "sd" - search & destroy
  • "war" - team deathmatch


Parameter Value
sv_hostname "my server"
g_gametype <gametype>
sv_maxclients [1-32]
g_password "my password"
sv_voice [0-1]
[0-1]
g_allowvote [0-1]
sv_punkbuster [0-1]
sv_minping [0-n] (milliseconds)
sv_maxping [0-n] (milliseconds)
sv_connectTimeout [0-n] (seconds)
sv_timeout [0-n] (seconds)

Gameplay Options

Guide