Battlefield 2 Command and Control Daemon (BF2CCD) is used to launch and remotely control the Battlefield 2 Dedicated Server. BF2CCD can be run as a Windows Service using FireDaemon Pro for additional resiliency. For information on using the Battlefield 2 Command and Control Client please refer to the BF2CC website. You can also use FireDaemon Fusion to manage FireDaemon and other Windows services via a web browser. This is how to set it up.
Battlefield 2 Command and Control Daemon Setup
Download and install Battlefield 2 Dedicated Server
Please refer to our Battlefield 2 Dedicated Server setup guide, which includes basic server setup.
Download and install Battlefield 2 Command and Control Daemon
Download and unpack BF2CCD in the directory of your choice, e.g. C:\Program Files\BF2CCD. Unpack the ModManager Admin scripts found in this directory into the top level of your dedicated server installation directory, typically C:\Program Files\EA Games\Battlefield 2 Server.
Launch the BF2CCD GUI
Double click on bf2ccd.exe. The GUI will launch as follows:
An additional dialogue box will be displayed asking you to configure BF2CCD. Fill out the dialogue as per your dedicated server configuration: executables, paths, arguments and so forth.
Make sure you BF2DS launches correctly under BF2CCD before attempting to run it as a service with FireDaemon. This configuration dialog creates an XML file called config.xml in your BF2CCD installation directory.
BF2CCD Setup Under FireDaemon
Download and install FireDaemon Pro into the directory of your choice, typically C:\Program Files\FireDaemon.
Next start the FireDaemon GUI from the desktop shortcut. Click on the "Create a new service definition" button in the toolbar (or type Ctrl+N) and enter the information into the fields as you see below. Adjust the paths to suit your installation. Note the required parameters.
Executable: The path to your bf2ccd.exe file. For the purposes of this HOWTO, the path is C:\Program Files\BF2CC\bf2ccd.exe.
Working Directory: The directory containing your bf2ccd.exe file. For the purposes of this HOWTO, the path is C:\Program Files\BF2CC.
The most important field on the tab is the Parameters. The Parameters defines which BF2CCD configuration profile to launch.
The "-autostart" parameter by itself will start your BF2DS server with the default.profile. You can specify a different profile with "-autostart myprofile.profile". The BF2CC daemon saves all settings profiles using "*.profile" rather than "*.xml" (even though the files are xml).
Now click on the Settings tab. If you want to see BF2CCD running, check the Interact with Desktop check box. You can optionally run BF2CCD as the user you installed it as. In the Logon Account field type your username (e.g. Administrator) and then enter the user's password twice in the Password and Confirm fields. You can change the Process Priority to allocate more CPU time to the dedicated server or specify which CPU the dedicated server will run on (in the case of multi-processor, hyperthreaded or multi-core CPUs).
Now click on the OK button to finish setup and start BF2CCD!