How can I set up a standalone dedicated server?

As of OFP version 1.20, you can now run a dedicated server. A dedicated server means that you can host OFP MP games on the server computer but you cannot play OFP on that computer. This keeps resource utilization on the server computer to a minimum in order to improve MP gameplay for everyone connecting to your server.

The instructions currently supplied with OFP to setup a dedicated server are minimal, to say the least. 

OFP player Red Phive posted the following useful notes and sample template:

Please take this with the understanding that there is very little documentation on this and that I am speaking directly from experience. Some of this info may be incorrect... but it all works for me. 

This is the SERVER.CFG file that I am using right now. Some things changed for obvious reasons. "//" denotes comments.

//password = yyyyy; //a password for protecting the server 
passwordAdmin = xxxxx; // password for the server admin 

class Missions // list of missions that will be played in cyclic order 

class Mission01 // First mission 

template = 1-8_D_FLAGFIGHT.ABEL; 
cadetMode = 1; 
param1 = 1800; 
param2 = 50; 
class Mission02 // Second mission, etc 

template = 1-6_C_COOPERATIVE.EDEN; 
cadetMode = 1; 
class Mission03 

template = 2-8_T_CaptureTheFlag.EDEN; 
cadetMode = 1; 

If you look in OFP's TEMPLATES directory, you will see the following subdirectories:


Each directory contains all of the missions in the template form. Within each subdirectory there is a file called DESCRIPTION.EXT. As an example, here is the DESCRIPTION.EXT file in the 1-8_D_FLAGFIGHT.ABEL subdirectory:

titleParam1 = $STRD_08; 
valuesParam1[] = {10000, 300, 600, 900, 1200, 1500, 1800, 2700, 3600, 7200}; 
defValueParam1 = 1800; 
textsParam1[] = {$STRD_12, $STRD_T005, $STRD_T010, $STRD_T015, $STRD_T020, $STRD_T025, $STRD_T030, $STRD_T045, $STRD_T060, $STRD_T120}; 

titleParam2 = $STRD_09; 
valuesParam2[] = {10000, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 120, 140, 160, 180, 200, 250, 300}; 
defValueParam2 = 50; 
textsParam2[] = {$STRD_12, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 120, 140, 160, 180, 200, 250, 300};

The "param1" and "param2" settings in the SERVER.CFG file for 1-8_D_FLAGFIGHT.ABEL (Mission01) respectively correspond to "defValueParam1" and "defValueParam2" in the above  DESCRIPTION.EXT file. You can modify any of the parameters in the DESCRIPTION.EXT file by specifying them in the mission's definition in the SERVER.CFG file. 

From what I can gather, any of the templates can be used to define a mission object in the SERVER.CFG file. You can, however, use the "#missions" directive when connecting to the dedicated server to change to a mission that is running on the server. 

To do this, at the mission start screen where people are joining sides, activate the chat window and type "#login password" where password is the one you specified in your SERVER.CFG file with the "passwordAdmin" declaration. It will say something like "Login as Admin". Then, you can the type "#missions" to pull up a listing of the available missions. 

There is also a file called README.CHM in the OFP directory that has some useful information.

Recently, OFP Network has put together a comprehensive dedicated server FAQ for your assistance.