Dedicated Server – Operation Flashpoint

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "y[ _]*\|[ _]*ofp[ _]*\|[ _]+" to "y|ofp|")
 
(8 intermediate revisions by 2 users not shown)
Line 14: Line 14:
  "OFPR_Server.exe -config=server.cfg -netlog  -nomap -port=2302 -mod=hisky"
  "OFPR_Server.exe -config=server.cfg -netlog  -nomap -port=2302 -mod=hisky"


  -config= <---- Specifies the config file to use. See [[server.cfg]]
  -config= <---- Specifies the config file to use. See [[Operation Flashpoint: Server Config File]]
  -mod=    <---- Extra command to run folder mods
  -mod=    <---- Extra command to run folder mods
  -nomap  <---- Command to run default addons and only run extra addons when mission is Exe
  -nomap  <---- Command to run default addons and only run extra addons when mission is Exe
Line 25: Line 25:
== Performance Tuning Options ==
== Performance Tuning Options ==


There are also some parameters that can be used to fine-tune network performance. You can add following entries to Flashpoint.cfg (the main Flashpoint configuration file)
There are also some parameters that can be used to fine-tune network performance. You can add the following entries to the Flashpoint.cfg / ColdWarAssault.cfg (the main Flashpoint configuration file)


MaxMsgSend=<limit>;
{| class="wikitable"
Maximum number of messages that can be sent in one simulation cycle. Increasing this value can decrease lag on   high upload bandwidth servers.
|-
! Property !! Default !! Description
Default: 128 
|-
MaxSizeGuaranteed=<limit>;
| MaxMsgSend || 128 || Maximum number of messages that can be sent in one simulation cycle. Increasing this value can decrease lag on high upload bandwidth servers.
Maximum size of guaranteed packet in bytes (without headers). Small messages are packed to larger frames.
|-
| MaxSizeGuaranteed || 512 || Maximum size of guaranteed packet in bytes (without headers). Small messages are packed to larger frames. Guaranteed messages are used for non-repetitive events like shooting.
Guaranteed messages are used for non-repetitive events like shooting.
|-
Default: 512 
| MaxSizeNonguaranteed || 256 || Maximum size of non-guaranteed packet in bytes (without headers). Non-guaranteed messages are used  for repetitive updates like soldier or vehicle position. Increasing this value may improve bandwidth requirement, but it may increase lag.
|-
MaxSizeNonguaranteed =<limit>;
| MinBandwidth || 131072 || Bandwidth the server is guaranteed to have (in bps). This value helps server to estimate bandwidth available. Increasing it to too optimistic values can increase lag and CPU load, as too many messages will be sent but discarded.
|-
Maximum size of non-guaranteed packet in bytes (without headers). Non-guaranteed messages are used  for repetitive updates like soldier or vehicle position.
| MaxBandwidth || 2147483647 || Bandwidth the server is guaranteed to never have. This value helps server to estimate bandwidth available.
|-
Increasing this value may improve bandwidth requirement, but it may increase lag.
| MinErrorToSend || 0.01 || Minimal error to send updates across network. Using smaller values can make units observed by binoculars or sniper rifle to move smoother.
|-
Default: 256 
| MaxCustomFileSize || 131072 || Users with custom face or custom sound larger than this size are kicked when trying to connect. Although the default is 128 KB the game will ignore faces larger than 100 KB and sounds larger than 50 KB.
|}
MinBandwidth =<bottom_limit>;
Bandwidth the server is guaranteed to have (in bps). This value helps server to estimate bandwidth available. Increasing it to too optimistic values can increase lag and CPU load, as too many messages will be sent but discarded.
Default: 131072 
MaxBandwidth=<top_limit> Bandwidth the server is guaranteed to never have. This value helps server to estimate bandwidth available.
MinErrorToSend=<limit> Minimal error to send updates across network. Default value is 0.01. Using smaller value can make units observed by binoculars or sniper rifle to move smoother.
MaxCustomFileSize=<size_in_bytes> Users with custom face or custom sound larger than this size are kicked when trying to connect.


The greatest level of optimization can be achieved by setting the MaxMsgSend and MinBandwidth parameters. For a server with 1024kbps we recommend the following values:
The greatest level of optimization can be achieved by setting the MaxMsgSend and MinBandwidth parameters. For a server with 1024kbps we recommend the following values:
Line 65: Line 54:
To install and use the dedicated server on Linux, you'll need the following:
To install and use the dedicated server on Linux, you'll need the following:
* Game data from a Windows installation of OFP.  
* Game data from a Windows installation of OFP.  
* The server executable installer [ftp://www.flashpoint1985.com/flashpoint/patches/linux/ofp-server-1.96.shar.gz archive]
* The server executable installer {{Link|ftp://www.flashpoint1985.com/flashpoint/patches/linux/ofp-server-1.96.shar.gz|archive}}
* The <tt>gunzip</tt> compression program from the <tt>gzip</tt> package.
* The {{hl|gunzip}} compression program from the {{hl|gzip}} package.
* The <tt>gcc</tt> C compiler package.
* The {{hl|gcc}} C compiler package.
* The "uudecode" program from the <tt>sharutils</tt> package.
* The "uudecode" program from the {{hl|sharutils}} package.


=== Getting the game data ===
=== Getting the game data ===
In order to run a dedicated linux server, you won't need ''all'' the OFP files that are installed on your Windows machine. Community member Kegetys has made a useful script that will create an archive with just the files you need. Visit his [http://www.kegetys.net/ofp/index.php?p=others OFP page] and download and use the [http://www.kegetys.net/ofp/linuxarch10.zip Linuxarch10.zip] script to create a minimal set of files needed. Then, upload the resulting archive to your server.
In order to run a dedicated linux server, you won't need ''all'' the OFP files that are installed on your Windows machine. Community member Kegetys has made a useful script that will create an archive with just the files you need. Visit his [http://www.kegetys.net/ofp/index.php?p{{=}}others OFP page] and download and use the {{Link|http://www.kegetys.net/ofp/linuxarch10.zip|Linuxarch10.zip}} script to create a minimal set of files needed. Then, upload the resulting archive to your server.


=== Installation ===
=== Installation ===
There's a post on the BI forums describing the installation: {{ExternalLink|link= http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=10976f29bf6a3c9d51bca9ca92a241ec;act=ST;f=2;t=38678|text=  Linux server setup howto}}  
There's a post on the BI forums describing the installation: {{Link|link= http://www.flashpoint1985.com/cgi-bin/ikonboard311/ikonboard.cgi?s=10976f29bf6a3c9d51bca9ca92a241ec;act=ST;f=2;t=38678|text=  Linux server setup howto}}  


   
   
Line 80: Line 69:
== Downloads ==
== Downloads ==


The Windows OFP Dedicated server can be found [ftp://www.flashpoint1985.com/flashpoint/patches/OFPServer_196b.zip here]
The Windows OFP Dedicated server can be found {{Link|ftp://www.flashpoint1985.com/flashpoint/patches/OFPServer_196b.zip|here}}


The Linux OFP dedicated server is [ftp://www.flashpoint1985.com/flashpoint/patches/linux/ofp-server-1.96.shar.gz here]
The Linux OFP dedicated server is {{Link|ftp://www.flashpoint1985.com/flashpoint/patches/linux/ofp-server-1.96.shar.gz|here}}


== See Also ==
== See Also ==


[[server.cfg]]  
* [[Operation Flashpoint: Server Config File]]


[[In Game Server Commands]]
[[In Game Server Commands]]

Latest revision as of 17:27, 26 July 2024


Introduction

This article covers some of the aspects of the dedicated server for Operation Flashpoint. Please feel free to update this article with any related information.


Startup Options

Example

"OFPR_Server.exe -config=server.cfg -netlog  -nomap -port=2302 -mod=hisky"
-config= <---- Specifies the config file to use. See Operation Flashpoint: Server Config File
-mod=    <---- Extra command to run folder mods
-nomap   <---- Command to run default addons and only run extra addons when mission is Exe
-netlog  <---- Command to Record IP address to find id changers and cheaters
-restart <---- Restarts the server if it is crashed/shutdown
-port=   <---- Port for the server to listen on.
-dplay   <---- In OFP this specifies Direct Play networking option


Performance Tuning Options

There are also some parameters that can be used to fine-tune network performance. You can add the following entries to the Flashpoint.cfg / ColdWarAssault.cfg (the main Flashpoint configuration file)

Property Default Description
MaxMsgSend 128 Maximum number of messages that can be sent in one simulation cycle. Increasing this value can decrease lag on high upload bandwidth servers.
MaxSizeGuaranteed 512 Maximum size of guaranteed packet in bytes (without headers). Small messages are packed to larger frames. Guaranteed messages are used for non-repetitive events like shooting.
MaxSizeNonguaranteed 256 Maximum size of non-guaranteed packet in bytes (without headers). Non-guaranteed messages are used for repetitive updates like soldier or vehicle position. Increasing this value may improve bandwidth requirement, but it may increase lag.
MinBandwidth 131072 Bandwidth the server is guaranteed to have (in bps). This value helps server to estimate bandwidth available. Increasing it to too optimistic values can increase lag and CPU load, as too many messages will be sent but discarded.
MaxBandwidth 2147483647 Bandwidth the server is guaranteed to never have. This value helps server to estimate bandwidth available.
MinErrorToSend 0.01 Minimal error to send updates across network. Using smaller values can make units observed by binoculars or sniper rifle to move smoother.
MaxCustomFileSize 131072 Users with custom face or custom sound larger than this size are kicked when trying to connect. Although the default is 128 KB the game will ignore faces larger than 100 KB and sounds larger than 50 KB.

The greatest level of optimization can be achieved by setting the MaxMsgSend and MinBandwidth parameters. For a server with 1024kbps we recommend the following values:

MaxMsgSend = 256;
MinBandwidth = 768000;

Linux

To install and use the dedicated server on Linux, you'll need the following:

  • Game data from a Windows installation of OFP.
  • The server executable installer archive (dead link)
  • The gunzip compression program from the gzip package.
  • The gcc C compiler package.
  • The "uudecode" program from the sharutils package.

Getting the game data

In order to run a dedicated linux server, you won't need all the OFP files that are installed on your Windows machine. Community member Kegetys has made a useful script that will create an archive with just the files you need. Visit his OFP page and download and use the Linuxarch10.zip script to create a minimal set of files needed. Then, upload the resulting archive to your server.

Installation

There's a post on the BI forums describing the installation: Linux server setup howto (dead link)


Downloads

The Windows OFP Dedicated server can be found here (dead link)

The Linux OFP dedicated server is here (dead link)

See Also

In Game Server Commands