Installation Guide

From Dconwiki

Jump to: navigation, search

Contents

Installation Instructions

  1. You must acquire Battlefield 2 before attempting to play the Desert-Conflict Mod. Also, the latest version of Battlefield 2 is required and it's recommended that your copy of BF2 is working without crashing and without displaying intermittent problems. You can download the BF2 1.41 patch directly from EA's FTP - this file is 549 MB.
  2. Download and then install the latest Desert Conflict installation files from the Desert Conflict Forum.
  3. You're now ready to play!


Finding Desert-Conflict Servers and Players

  1. Open Desert-Conflict using the shortcut on your Windows Desktop labeled "Desert-Conflict" (not the standard "BF2" shortcut)
  2. Login to your BF2 account as normal
  3. Click the Multiplayer button at the top of the screen
  4. Click the "Same Mod" and "Same Version" boxes so that an X is present in both boxes. Uncheck all other Internet Filters for maximum results.
  5. In the upper right corner of the Multiplayer window, click the drop-down labeled "Game Mode" and select "All". You'll select All to find all Desert Conflict servers. If you're looking for a specific Game Mode, select either, Conquest, Capture The Flag, Domination or Objective. Keep in mind that some servers will run more than 1 Game Mode. For more information on Game Modes, visit our GamePlay Modes wiki
  6. Click the "Update Server List" button to ensure you have the latest list of servers
  7. Double-click a server to join
  8. Alternatively, you can click the following link to open a search for all servers running the DCon mod-> Game-Monitor.com (Occasionally this link is slow or unavailable). You can use the BF2 Protocol to join servers directly from Game-Monitor.com by following the instructions within the "Using the BF2 Protocol to join servers" thread within the Desert-Conflict forum.


Installation Instructions: Server

Use the following instructions if you intend to host the Desert-Conflict Mod on your game server (Server Admins only).

Port Forwarding

At the least, you need to forward the following ports in order to get your Desert Conflict server to appear in the BF2 server browser...

  • Battlefield 2 server 16567 UDP
  • GameSpy 29900 UDP

Optional

  • Voice over IP 55123-55125 UDP
  • BF2CC rcon 6711 TCP
  • BF2CC daemon 6712 TCP

For help with port forwarding, either hit Google.com or review your router manual.


Install BattleField 2 Server Files - Windows

  1. If this is a fresh installation of both Battlefield 2 and the Desert-Conflict Mod, you must first download the Battlefield_2_Server.exe - 311MB.
  2. Once the download is complete, double-click the Battlefield_2_Server.exe to install. We strongly recommend installing the BF2 Server software to its default location (C:\Program Files\EA Games\Battlefield 2 Server\).
  3. Download and then install the DCon Server file from the Server Downloads page within the Desert Conflict Forum. You do not need to install the client component of Desert Conflict on a dedicated server. (A server can be an XP machine).
  4. The installer will install the Desert Conflict server files to your BF2 installation folder within /mods/dcon/.
  5. Once the install is completed, it is recommended that you copy the settings folder from the %install path%\mods\bf2\ folder to the \mods\dcon\ folder so the server settings can be changed manipulated with BFStarter
  6. For information on starting and manipulating the Desert Conflict server, see the BFStarter and BF2CC sections below.

Install BattleField 2 Server Files - Linux

  1. Download and then install the DCon Server file from the Server Downloads page within the Desert Conflict Forum.
  2. Extract (unzip) the dcon directory to the /mods/ folder
  3. Make sure it has the same rights as the user who bf2 runs under, recursively

Starting and Editing without a server manager

  1. If you do not use a server manager app on linux the easiest way to run the server is to edit the maplist and serversettings con files via text editor, find them in /settings
  2. then for execution, duplicate the start.sh file in the bf2 root to dcon.sh, and edit in on the exec line at the bottom to make it look like this:
  3. exec $BINARY_DIR/bf2 "+modPath mods/dcon"

If Multi-core or Multi-CPU Server then this may help also!

  1. Replace the previously stated line with the following:
  2. nice --adjustment=-20 $BINARY_DIR/bf2 "+modPath mods/dcon"

Additional Linux Notes

  1. Change in Putty to the bf2- folder
  2. For Linux Debian you can start the server with this:
  • screen -A -d -m -S bf2 ./start.sh +modPath mods/dcon
  1. If you are running screen in background in auto style, you have you can type it without screen commando.
  1. To stop the server, just kill the process!


Using the Desert Conflict Server Manager - "BFStarter"

  1. .NET Framework 1.1
  2. .NET Framework 1.1 - Service Pack 1

The BFStarter Admin Tool is a tool designed by Kiff & Harry of the Desert Conflict staff. This tool was designed to better serve admin's who are running the Desert Conflict Mod. In order to run this tool, be sure you've installed the Desert Conflict Server files as listed above and .NET Framework 1.1, or you will get an error message "failed to initialize application" when you try to launch it.

The instructions below explain how to use BFStarter.

  1. Navigate to the "C:\Program Files\EA Games\Battlefield 2 Server\mods\dcon\tools\"
  2. Open "BFStarter.exe"
  3. Click the "Settings" tab and select the "dcon" Mod
  4. Edit the remaining tabs and fields as you would any other BF2 server admin tool, then be sure to "Save" the settings. The main settings are the "Server Config" tab and the "Maplist" tab.
  5. Once you've configured the server, click "Start server" under the "Server" tab. Once you have successfully launched the server from the GUI, you can create a desktop shortcut with the following path (assuming the default install paths were used) to run the Desert Conflict Server quickly and easily.

"C:\Program Files\EA Games\Battlefield 2 Server\bf2_w32ded.exe" +modPath mods/dcon

BF2CC

The BF2CC Server Manager is an alternative server admin tool for Desert Conflict. One advantage to using this tool is the ability to utilize their remote client software. This allows a server admin to monitor the server from any location and also provides different levels of user administration. However, we don't directly support the BF2CC software. For help with the BF2CC software please visit the BF2CC Forum.

It's important to note that the BF2CC Server Daemon is a program that starts and stops the BF2 Server (bf2_w32ded.exe) and configures the server's settings with a GUI. When you start the BF2CC Server Daemon, you're not necessarily starting the BF2 server until you tell BF2CC to start the BF2 server. Think of the BF2CC Server Daemon as an easy-to-talk-to middle man between you and the BF2 server.

BF2CC Requirements

  1. .NET Framework 1.1
  2. .NET Framework 1.1 - Service Pack 1
  3. If you're installing BF2CC on a Linux server, the .NET framework is emulated with the Mono Project
  4. Port Forward - BF2CC requires Port 4712 to be open on your server. If you are a client connecting to the server, you do not have to modify any ports on your system; although, you may be prompted by your firewall software of an outgoing communication. You would "Allow" or "Unblock" this communication.

Installing BF2CC

  1. For best results when installing the BF2CC software, install a fresh copy on both the server and the client. If you've installed BF2CC previously and are managing other servers with it, be sure to make a complete backup of your server and client BF2CC directories before continuing.
  2. Download the latest BF2CC software from the BF2CC Download section. Be sure that your client and server use the same version. If you're connecting to a server that's already been configured to run BF2CC, skip the "BF2CC Server Daemon Installation" instructions and start with the "Client Installation" instructions.
    • BF2CC Server Daemon Installation
    1. Extract the BF2CC files to the specified locations within their readme.txt file.
    2. Start the BF2CC.exe. When prompted, type an admin account password. Make a note of this password as you'll need it to login via the client. You can keep the remaining fields at their defaults as long as BF2CC is locating the BF2 Server file and directory properly.
    • Client Installation
    1. Extract the BF2CC files to the specified locations within their readme.txt file. e.g. C:\Program Files\BF2CC\
    2. Start the BF2CC.exe.
    3. When prompted, click the "+" to add a new server.
    4. Select the "BF2CCDaemon" option.
    5. Type the IP Address for your server, e.g. 55.55.44.333
    6. Change the "Port" to 4712.
    7. If this is the first time anyone has logged into the BF2CC Server Daemon, leave the Username as "admin" and type the password your created in the previous step. Otherwise, if an admin has granted you access to the server, enter the username and password they provided.
    8. Click the "Login" button.


Configuring BF2CC

  1. If you've successfully logged in, you can now modify your Desert Conflict server settings.
  2. If the server has already been configured and the Desert Conflict server is running, i.e. players can play on the server, then most likely you'll want to click the "Players" or "Maplist" buttons on the toolbar to monitor player activity or change maps, respectively.
  3. If this is the first time anyone has logged into the BF2CC Server Daemon, you need to configure a few items before you start the server.
  4. First, "Add a new Profile" by clicking the "+" button at the bottom of the screen.
  5. Configure the Server Name, TK settings, VOIP settings and Auto Admin settings.
  6. Select the Maplist screen and then configure the Maplist by selecting the "dcon" option within the "mod" dropdown. Then select the proper Mode and then add the map to the list using the ">>" button. It's important to note that the "Max Players" setting of each map must match the max players information listed under the "GameModes Supported" column next to each map. For example, if you select 64 players for DCon 73 Eastings, it won't work because DCon 73 Eastings is a 32 player map size. This doesn't mean that only 32 players can play on the server, it means that the mapsize is based on 32 players. See the Sample Map Rotation below for a sample map list.
  7. Once you've configured the server to your liking, click the "Save changes to current profile" button. You should be prompted with a "successfully saved" msg.
  8. Start the server using the "Start/Restart BF2 Server" button either at the top or the bottom of the screen.
  9. Your server will be ready for game play shortly and you're all set to go!
  10. For more in-depth documentation of how to configure your client and server, visit the BF2CC Help page.


Editing Domination & Other GamePlay Modes

In order to manipulate the Desert Conflict Game Modes, edit the .py files within your server's "C:\Program Files\EA Games\Battlefield 2 Server\mods\dcon\python\game\gamemodes" directory. For example, to edit the number of rounds required to win in Domination mode, edit the gpm_dom.py file's "DOM_MISSIONS_TO_WIN" variable.


  • Sample Domination GamePlay Mode Config
Download the Sample Domination Config File. Right-Click this link and then click "Save Target As" or "Save Link As", otherwise your browser may display the contents of the file.


Sample Map Rotation & Import Instructions

The following lists can be used as sample Map Rotations for your server.

TIP: The "Full" Map Rotation below contains every GameMode and Mapsize Desert Conflict offers. Use the Full Map Rotation to add maps to your server, and then remove the maps you don't want. This is the quickest way to ensure that you are running the correct Gamemode and Mapsize for any map Desert Conflict offers.


  • Fan Favorites
Download the Fan Favorites Map Rotation. Right-Click this link and then click "Save Target As" or "Save Link As", otherwise your browser may display the contents of the file.
  • Domination Only
Download the Domination Only Map Rotation. Right-Click this link and then click "Save Target As" or "Save Link As", otherwise your browser may display the contents of the file.
  • Capture The Flag Full Map Rotation
This contains every mapsize for Capture The Flag; be sure to remove the mapsizes you don't want.
Download the Capture The Flag Full Map Rotation. Right-Click this link and then click "Save Target As" or "Save Link As", otherwise your browser may display the contents of the file.
  • Full Map Rotation
Download the Full Map Rotation. Right-Click this link and then click "Save Target As" or "Save Link As", otherwise your browser may display the contents of the file.


  • Adding these Maplists to BFStarter
These instructions explain how to add a custom Map list (.con) file to Desert Conflict's BFStarter tool.
  1. Open BFStarter
  2. Stop the server if it's running
  3. Click the "Settings" tab
  4. Click the "Server Config" tab
  5. Within the "Available mods" section select "dcon"
  6. Click the "Maplist" tab
  7. Click the "load maplist" button and select the file you just created.


  • Adding these Maplists to BF2CC
These instructions explain how to add a custom Map list (.con) file to BF2CC.
  1. Connect to your BF2CC daemon
  2. Stop the server if it's running
  3. Click the "File" menu
  4. Click the "Import .con File (settings or maps)" option
  5. Select your .con file
  6. Click the "Save" button


Selecting the correct Mapsize

If you're not using the sample map rotations above, please visit our Maps page to correctly select the Mapsize for each map of Desert Conflict.


FireDaemon

If you'd like to run the BF2 Server, BFStarter or the BF2CC Daemon as a Service so that you don't have to be logged in to your Windows server to maintain a game instance, we recommend the FireDaemon product. FireDaemon is a tool you must pay for; but it's well worth the money as this tool can be utilized in many ways. Click here for instructions on controlling the standard BF2 Server or click here for instructions on running the 3rd party tool, BF2CC. Don't try to follow the instructions within both links listed; run either the BF2 Server or BF2CC. The BF2CC instructions describe how to run BF2CC as a service in order to obtain more control over the BF2 Server, and the BF2 Server instructions are for use only if you are not using BF2CC. If you'd like to run BFStarter as a Daemon, follow the instructions for BF2CC and replace FireDaemon's "Executable" field with "C:\Program Files\EA Games\Battlefield 2 Server\mods\dcon\tools\BFStarter.exe"; making sure that when you configure BFStarter, the "Restart on unexpected shutdown" box is unchecked.

Personal tools