Windows Server Setup: Difference between revisions

From COD Modding & Mapping Wiki
Jump to navigation Jump to search
mNo edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:Server Help]]
=CoD4 Windows Remote Dedicated Server Setup=  
=CoD4 Windows Remote Dedicated Server Setup=  


Line 11: Line 12:
*FTP the ENTIRE installed game to your remote dedicated server. Be certain to maintain the directory structure from the game's ROOT directory on. The game's root directory contains the iw3mp.exe file.  
*FTP the ENTIRE installed game to your remote dedicated server. Be certain to maintain the directory structure from the game's ROOT directory on. The game's root directory contains the iw3mp.exe file.  
   
   
  [[Image:important.png]] Eventually we may find some files are unnecessary, but for now uploading them all is your safest bet.
  [[Image:warning.png]] Eventually we may find some files are unnecessary, but for now uploading them all is your safest bet.


== Creating a shortcut to run your server ==
== Creating a shortcut to run your server ==
Line 23: Line 24:
  +set dedicated 2 +set sv_punkbuster 1 +exec mp-server.cfg +map_rotate
  +set dedicated 2 +set sv_punkbuster 1 +exec mp-server.cfg +map_rotate


  [[Image:important.png]] Make sure there is a '''SPACE''' between "iw3mp.exe" and "+set dedicated 2".
  [[Image:warning.png]] Make sure there is a '''SPACE''' between "iw3mp.exe" and "+set dedicated 2".
   
 
Note 2: I am not sure if the CoD4 server will run on Windows 2000, but if you are trying you will very likely need to enclose the part of your target line that existed BEFORE you changed it in quotation marks. I noticed my Windows 2003 server did not need this, but I always had to have it before when I ran a Windows 2000 server.
 
  [[Image:warning.png]] I am not sure if the CoD4 server will run on Windows 2000, but if you are trying
you will very likely need to enclose the part of your target line that existed BEFORE you changed it in
quotation marks. I noticed my Windows 2003 server did not need this, but I always had to have it before  
when I ran a Windows 2000 server.  
The above command line assumes you intend to use Punkbuster of course. If not, remove that part of the command line. Also, you can obviously change the name of your config file to what ever YOU want to call it.
The above command line assumes you intend to use Punkbuster of course. If not, remove that part of the command line. Also, you can obviously change the name of your config file to what ever YOU want to call it.
   
   
Line 43: Line 47:
*Copy and paste this basic config into your new config:
*Copy and paste this basic config into your new config:
   
   
<pre> seta sv_punkbuster 1  
<pre>
seta sv_punkbuster 1  
wait  
wait  
pb_sv_enable
pb_sv_enable
   
   
// Server name
// Server name
set sv_hostname "My CoD4 Server" //Change this to whatever you want your server to be named in the server browser
set sv_hostname "My CoD4 Server" //Change this to whatever you want your server to be named
   
   
// Server password
// Server password
Line 67: Line 72:
   
   
// Map_rotation
// Map_rotation
set sv_mapRotation "gametype war map mp_backlot gametype war map mp_bloc gametype war map mp_bog gametype war map mp_cargoship gametype war map mp_citystreets gametype war map mp_convoy gametype war map mp_countdown gametype war map mp_crash gametype war map mp_crossfire gametype war map mp_farm gametype war map mp_overgrown gametype war map mp_pipeline gametype war map mp_showdown gametype war map mp_strike gametype war map mp_vacant"
set sv_mapRotation "gametype war map mp_backlot gametype war map mp_bloc gametype war  
map mp_bog gametype war map mp_cargoship gametype war map mp_citystreets gametype war  
map mp_convoy gametype war map mp_countdown gametype war map mp_crash gametype war map  
mp_crossfire gametype war map mp_farm gametype war map mp_overgrown gametype war map  
mp_pipeline gametype war map mp_showdown gametype war map mp_strike gametype war map  
mp_vacant"
   
   
set sv_maprotationcurrent ""</pre>  
set sv_maprotationcurrent ""</pre>
 
[[Image:warning.png]] The above is a VERY basic config, just to get the server up and running.
A more complete config file will be coming.


[[Image:important.png]]Note: The above is a VERY basic config, just to get the server up and running. A more complete config file will be coming.
== DirectX file ==
== DirectX file ==
   
   
Line 87: Line 99:
   
   
*Once you have added your CoD4 server, select/highlight the CoD4 server in the list and click "Check For Updates". This should download a number of files to your CoD4 server directories. You should not have to do anything else.
*Once you have added your CoD4 server, select/highlight the CoD4 server in the list and click "Check For Updates". This should download a number of files to your CoD4 server directories. You should not have to do anything else.
 
Finally you are there! Simply use the shortcut you made on the server's desktop to start your server.
 
'''Finally you are there! Simply use the shortcut you made on the server's desktop to start your server.'''

Latest revision as of 14:45, 30 October 2008

CoD4 Windows Remote Dedicated Server Setup

From Worm;

This guide is intended for server admins wanting to set up a dedicated server at a remote data center. It is based on a Windows 2003 server setup, which is the only type of server I have. Hopefully someone knowledgeable about the Linux server setup (when it comes out) can add that information when it comes available.

Getting the files to the server

  • Buy and install the game on your home computer.
  • FTP the ENTIRE installed game to your remote dedicated server. Be certain to maintain the directory structure from the game's ROOT directory on. The game's root directory contains the iw3mp.exe file.
 Eventually we may find some files are unnecessary, but for now uploading them all is your safest bet.

Creating a shortcut to run your server

  • On your dedicated server, RIGHT click on the iw3mp.exe file found in the CoD4 server's ROOT directory and DRAG it to the desktop. Have the server create a SHORTCUT. Be sure you only created a shortcut and did not actually MOVE the file.
  • Right click on the new shortcut you just created and go to its properties.
  • Find the TARGET field and add the following to the END of the existing target, do not DELETE any of the existing target!
+set dedicated 2 +set sv_punkbuster 1 +exec mp-server.cfg +map_rotate
 Make sure there is a SPACE between "iw3mp.exe" and "+set dedicated 2".


 I am not sure if the CoD4 server will run on Windows 2000, but if you are trying
you will very likely need to enclose the part of your target line that existed BEFORE you changed it in
quotation marks. I noticed my Windows 2003 server did not need this, but I always had to have it before 
when I ran a Windows 2000 server. 

The above command line assumes you intend to use Punkbuster of course. If not, remove that part of the command line. Also, you can obviously change the name of your config file to what ever YOU want to call it.

Other optional commandline items:

+set net_ip xxx.xxx.xxx.xxx
+set net_port xxxxx
+set fs_game mods/modwarfare

Creating your config file

  • On your remote server, browse to CoD4's main/ directory. You should see many .IWD files in this directory. Create a new text file and rename it to mp-server.cfg. (The name of this config file MUST match what you put in the server's command line)
  • Open your newly created config file with a text editor (such as notepad).
  • Copy and paste this basic config into your new config:
seta sv_punkbuster 1 
wait 
pb_sv_enable
 
// Server name
set sv_hostname "My CoD4 Server" //Change this to whatever you want your server to be named
 
// Server password
set g_password "" // blank means NO password
 
// Rconpassword
set rcon_password "change_me" // Change this to your rcon password!
 
// Maximum Clients
set sv_maxclients "32"
set sv_privateclients "6"
 
// Max Ping
set sv_maxping "225"
 
// Rate
set sv_maxRate "25000"
 
// Map_rotation
set sv_mapRotation "gametype war map mp_backlot gametype war map mp_bloc gametype war 
map mp_bog gametype war map mp_cargoship gametype war map mp_citystreets gametype war 
map mp_convoy gametype war map mp_countdown gametype war map mp_crash gametype war map 
mp_crossfire gametype war map mp_farm gametype war map mp_overgrown gametype war map 
mp_pipeline gametype war map mp_showdown gametype war map mp_strike gametype war map 
mp_vacant"
 
set sv_maprotationcurrent ""
 The above is a VERY basic config, just to get the server up and running. 
A more complete config file will be coming.

DirectX file

  • Download the attached directX file in this post
  • Upload the d3dx10_34.dll file to your Window's Servers system32 directory (Mine was in C:\WINDOWS\system32).

PunkBuster files

  • Download pbsetup.exe from evenbalance.com here
  • Upload pbsetup.exe to your server. It does NOT need to be in the CoD4 directories, in fact it is probably best if you treat this as a stand-alone application (it can update ALL PB servers from one application).
  • Run pbsetup.exe and click "Add a Game". Choose a CoD4 server. You will likely need to browse to the iw3mp.exe file so that pbsetup knows where your CoD4 server is located.
  • Once you have added your CoD4 server, select/highlight the CoD4 server in the list and click "Check For Updates". This should download a number of files to your CoD4 server directories. You should not have to do anything else.


Finally you are there! Simply use the shortcut you made on the server's desktop to start your server.