Server Configuration – DayZ

From Bohemia Interactive Community
Jump to navigation Jump to search
m (added 1.08 parameters)
m (Some wiki formatting)
Line 1: Line 1:
[[Category:DayZ:Editing]]
{{SideTOC}}
This article deals with the configuration file which is used to configure various game server settings.


==Introduction==
The name ''server.cfg'' means nothing, and this file can be called anything.
This article deals with the configuration file which is used to configure various game server settings.
The real name is determined by the <tt>[[-config]]</tt> command line option when launching the dedicated server.
There is no default name; when non is specified, the server won't launch due to the mandatory settings.


The name ''server.cfg'' means nothing, and this file can be called anything. The real name is determined by the <tt>[[-config]]</tt> command line option when launching the dedicated server. There is no default name; when non is specified, the server won't launch due to the mandatory settings.


==Server Configurations==
<div style="clear: both"></div>
== Server Configurations ==


=== Main Parameters ===
=== Main Parameters ===
<syntaxhighlight lang="c">
hostname = "EXAMPLE NAME";  // Server name
password = "";              // Password to connect to the server
passwordAdmin = "";        // Password to become a server admin


enableWhitelist = 0;       // Enable/disable whitelist (value 0-1)
<syntaxhighlight lang="cpp">
hostname = "EXAMPLE NAME"; // Server name
password = ""; // Password to connect to the server
passwordAdmin = ""; // Password to become a server admin


maxPlayers = 60;           // Maximum amount of players
enableWhitelist = 0; // Enable/disable whitelist (value 0-1)
verifySignatures = 2;      // Verifies .pbos against .bisign files. (only 2 is supported)


forceSameBuild = 1;         // When enabled, the server will allow the connection only to clients with same the .exe revision as the server (value 0-1)
maxPlayers = 60; // Maximum amount of players
 
disableVoN = 0;             // Enable/disable voice over network (value 0-1)
verifySignatures = 2; // Verifies .pbos against .bisign files. (only 2 is supported)
vonCodecQuality = 20;       // Voice over network codec quality, the higher the better (values 0-30)
 
forceSameBuild = 1; // When enabled, the server will allow the connection only to clients with same the .exe revision as the server (value 0-1)
disable3rdPerson=0;         // Toggles the 3rd person view for players (value 0-1)
 
disableCrosshair=0;         // Toggles the cross-hair (value 0-1)
disableVoN = 0; // Enable/disable voice over network (value 0-1)
vonCodecQuality = 20; // Voice over network codec quality, the higher the better (values 0-30)
serverTime="SystemTime";   // Initial in-game time of the server. "SystemTime" means the local time of the machine. Another possibility is to set the time to some value in "YYYY/MM/DD/HH/MM" format, f.e. "2015/4/8/17/23" .
 
serverTimeAcceleration=1;   // Accelerated Time - The numerical value being a multiplier (0.1-64). Thus, in case it is set to 24, time would move 24 times faster than normal. An entire day would pass in one hour.
disable3rdPerson = 0; // Toggles the 3rd person view for players (value 0-1)
serverNightTimeAcceleration=1;// Accelerated Nigh Time - The numerical value being a multiplier (0.1-64) and also multiplied by serverTimeAcceleration value. Thus, in case it is set to 4 and serverTimeAcceleration is set to 2, night time would move 8 times faster than normal. An entire night would pass in 3 hours.
disableCrosshair = 0; // Toggles the cross-hair (value 0-1)
serverTimePersistent=0;     // Persistent Time (value 0-1)// The actual server time is saved to storage, so when active, the next server start will use the saved time value.
 
serverTime = "SystemTime"; // Initial in-game time of the server. "SystemTime" means the local time of the machine. Another possibility is to set the time to some value in "YYYY/MM/DD/HH/MM" format, e.g "2015/4/8/17/23".
guaranteedUpdates=1;       // Communication protocol used with game server (use only number 1)
serverTimeAcceleration = 1; // Accelerated Time - The numerical value being a multiplier (0.1-64). Thus, in case it is set to 24, time would move 24 times faster than normal. An entire day would pass in one hour.
serverNightTimeAcceleration = 1;// Accelerated Nigh Time - The numerical value being a multiplier (0.1-64) and also multiplied by serverTimeAcceleration value.
loginQueueConcurrentPlayers=5; // The number of players concurrently processed during the login process. Should prevent massive performance drop during connection when a lot of people are connecting at the same time.
// Thus, in case it is set to 4 and serverTimeAcceleration is set to 2, night time would move 8 times faster than normal.
loginQueueMaxPlayers=500;       // The maximum number of players that can wait in login queue
// An entire night would pass in 3 hours.
serverTimePersistent = 0; // Persistent Time (value 0-1)// The actual server time is saved to storage, so when active, the next server start will use the saved time value.
instanceId = 1;             // DayZ server instance id, to identify the number of instances per box and their storage folders with persistence files
 
guaranteedUpdates = 1; // Communication protocol used with game server (use only number 1)
 
loginQueueConcurrentPlayers = 5; // The number of players concurrently processed during the login process. Should prevent massive performance drop during connection when a lot of people are connecting at the same time.
loginQueueMaxPlayers = 500; // The maximum number of players that can wait in login queue
 
instanceId = 1; // DayZ server instance id, to identify the number of instances per box and their storage folders with persistence files


storeHouseStateDisabled = false;// Disable houses/doors persistence (value true/false), usable in case of problems with persistence
storeHouseStateDisabled = false;// Disable houses/doors persistence (value true/false), usable in case of problems with persistence
storageAutoFix = 1;         // Checks if the persistence files are corrupted and replaces corrupted ones with empty ones (value 0-1)
storageAutoFix = 1; // Checks if the persistence files are corrupted and replaces corrupted ones with empty ones (value 0-1)
 


class Missions
class Missions
{
{
    class DayZ
class DayZ
    {
{
        template="dayzOffline.chernarusplus"; // Mission to load on server startup. <MissionName>.<TerrainName>
template = "dayzOffline.chernarusplus"; // Mission to load on server startup. <MissionName>.<TerrainName>
    };
};
};
};
</syntaxhighlight>
</syntaxhighlight>


=== Additional Parameters ===
=== Additional Parameters ===
<syntaxhighlight lang="c">
respawnTime = 5;            // Sets the respawn delay (in seconds) before the player is able to get a new character on the server, when the previous one is dead
motd[] = {"line1","line2"}; // Message of the day displayed in the in-game chat
motdInterval = 1;          // Time interval (in seconds) between each message
maxPing= 200;              // Max ping value until server kick the user (value in milliseconds)
timeStampFormat = "Short";  // Format for timestamps in the .rpt file (value Full/Short)
logAverageFps = 1;          // Logs the average server FPS (value in seconds), needs to have ''-doLogs'' launch parameter active
logMemory = 1;              // Logs the server memory usage (value in seconds), needs to have the ''-doLogs'' launch parameter active
logPlayers = 1;            // Logs the count of currently connected players (value in seconds), needs to have the ''-doLogs'' launch parameter active
logFile = "server_console.log";// Saves the server console log to a file in the folder with the other server logs


adminLogPlayerHitsOnly = 0;             //1 - log player hits only / 0 - log all hits ( animals/infected )
<syntaxhighlight lang="cpp">
adminLogPlacement = 0;                 //1 - log placement action ( traps, tents )
respawnTime = 5; // Sets the respawn delay (in seconds) before the player is able to get a new character on the server, when the previous one is dead
adminLogBuildActions = 0;               // 1 - log basebuilding actions ( build, dismantle, destroy )
 
adminLogPlayerList = 0;                 // 1 - log periodic player list with position every 5 minutes
motd[] = { "line1","line2" }; // Message of the day displayed in the in-game chat
motdInterval = 1; // Time interval (in seconds) between each message
 
maxPing= 200; // Max ping value until server kick the user (value in milliseconds)
 
timeStampFormat = "Short"; // Format for timestamps in the .rpt file (value Full/Short)
logAverageFps = 1; // Logs the average server FPS (value in seconds), needs to have ''-doLogs'' launch parameter active
logMemory = 1; // Logs the server memory usage (value in seconds), needs to have the ''-doLogs'' launch parameter active
logPlayers = 1; // Logs the count of currently connected players (value in seconds), needs to have the ''-doLogs'' launch parameter active
logFile = "server_console.log"; // Saves the server console log to a file in the folder with the other server logs
 
adminLogPlayerHitsOnly = 0; // 1 - log player hits only / 0 - log all hits ( animals/infected )
adminLogPlacement = 0; // 1 - log placement action ( traps, tents )
adminLogBuildActions = 0; // 1 - log basebuilding actions ( build, dismantle, destroy )
adminLogPlayerList = 0; // 1 - log periodic player list with position every 5 minutes


enableDebugMonitor = 1;     //shows info about the character using a debug window in a corner of the screen (value 0-1)
enableDebugMonitor = 1; // shows info about the character using a debug window in a corner of the screen (value 0-1)


steamQueryPort = 2305;     // defines Steam query port, should fix the issue with server not being visible in client server browser
steamQueryPort = 2305; // defines Steam query port, should fix the issue with server not being visible in client server browser


allowFilePatching = 1;     // if set to 1 it will enable connection of clients with "-filePatching" launch parameter enabled
allowFilePatching = 1; // if set to 1 it will enable connection of clients with "-filePatching" launch parameter enabled


simulatedPlayersBatch = 20;   // Set limit of how much players can be simulated per frame (for server performance gain)
simulatedPlayersBatch = 20; // Set limit of how much players can be simulated per frame (for server performance gain)


multithreadedReplication = 1; // enables multi-threaded processing of server's replication system - number of worker threads is derived by settings of jobsystem in dayzSettings.xml by "maxcores" and "reservedcores" parameters (value 0-1)
multithreadedReplication = 1; // enables multi-threaded processing of server's replication system
// number of worker threads is derived by settings of jobsystem in dayzSettings.xml by "maxcores" and "reservedcores" parameters (value 0-1)


networkRangeClose = 20;     // network bubble distance for spawn of close objects with items in them (f.i. backpacks), set in meters, default value if not set is 20
networkRangeClose = 20; // network bubble distance for spawn of close objects with items in them (f.i. backpacks), set in meters, default value if not set is 20
networkRangeNear = 150;     // network bubble distance for spawn (despawn +10%) of near inventory items objects, set in meters, default value if not set is 150
networkRangeNear = 150; // network bubble distance for spawn (despawn +10%) of near inventory items objects, set in meters, default value if not set is 150
networkRangeFar = 1000;     // network bubble distance for spawn (despawn +10%) of far objects (other than inventory items), set in meters, default value if not set is 1000
networkRangeFar = 1000; // network bubble distance for spawn (despawn +10%) of far objects (other than inventory items), set in meters, default value if not set is 1000
networkRangeDistantEffect = 4000; // network bubble distance for spawn of effects (currently only sound effects), set in meters, default value if not set is 4000
networkRangeDistantEffect = 4000; // network bubble distance for spawn of effects (currently only sound effects), set in meters, default value if not set is 4000


defaultVisibility=1375; // highest terrain render distance on server (if higher than "viewDistance=" in DayZ client profile, clientside parameter applies)
defaultVisibility=1375; // highest terrain render distance on server (if higher than "viewDistance=" in DayZ client profile, clientside parameter applies)
defaultObjectViewDistance=1375; // highest object render distance on server (if higher than "preferredObjectViewDistance=" in DayZ client profile, clientside parameter applies)
defaultObjectViewDistance=1375; // highest object render distance on server (if higher than "preferredObjectViewDistance=" in DayZ client profile, clientside parameter applies)


lightingConfig = 0;       // 0 for brighter night, 1 for darker night
lightingConfig = 0; // 0 for brighter night, 1 for darker night
disablePersonalLight = 1; // disables personal light for all clients connected to server
disablePersonalLight = 1; // disables personal light for all clients connected to server


disableBaseDamage = 0; // set to 1 to disable damage/destruction of fence and watchtower
disableBaseDamage = 0; // set to 1 to disable damage/destruction of fence and watchtower
disableContainerDamage = 0; // set to 1 to disable damage/destruction of tents, barrels, wooden crate and seachest
disableContainerDamage = 0; // set to 1 to disable damage/destruction of tents, barrels, wooden crate and seachest
</syntaxhighlight>
</syntaxhighlight>


==Server Configurations==
 
== Server Configurations ==


=== dayzsettings.xml ===
=== dayzsettings.xml ===
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<jobsystem globalqueue="4096" threadqueue="1024">
<jobsystem globalqueue="4096" threadqueue="1024">
    <pc maxcores="4" reservedcores="1" /> <!--maxcores - maximum number of CPU cores which will be used for jobsystem; reservedcores - number of CPU cores which will be used for other threads; number of worker threads is then "maxcores - reservedcores", but still at least one worker thread is allocated -->
<pc maxcores="4" reservedcores="1" />
<!--
maxcores - maximum number of CPU cores which will be used for jobsystem
reservedcores - number of CPU cores which will be used for other threads
number of worker threads is then "maxcores - reservedcores", but still at least one worker thread is allocated
-->
</jobsystem>
</jobsystem>
</syntaxhighlight>
</syntaxhighlight>


== BattlEye Configuration ==
== BattlEye Configuration ==
The config file '''BEServer_x64.cfg''' needs to be in the same folder as BEServer_x64.dll. The location of this folder can be customized via the startup parameters ''-bePath'' and ''-profiles''.
 
The config file '''BEServer_x64.cfg''' needs to be in the same folder as BEServer_x64.dll.
The location of this folder can be customized via the startup parameters ''-bePath'' and ''-profiles''.


Supported parameters:
Supported parameters:
* '''RConPassword MyPassword''' - Sets the password for the connection of the RCon tool (remote connection admin tool like BEC/Dart)
* '''RConPassword MyPassword''' - Sets the password for the connection of the RCon tool (remote connection admin tool like BEC/Dart)
* '''RestrictRCon 1''' - Enables/Disables RCon functions (kick/ban/connection restrictions)  
* '''RestrictRCon 1''' - Enables/Disables RCon functions (kick/ban/connection restrictions)  


== Launch Parameters ==
== Launch Parameters ==
Run the DayZServer_x64.exe via the batch file, shortcut with parameters or other options.
Run the DayZServer_x64.exe via the batch file, shortcut with parameters or other options.


Line 129: Line 149:
* '''-cpuCount=''' - Sets the number of logical CPU cores to use for parallel tasks processing. It should be less or equal than the numbers of available cores.
* '''-cpuCount=''' - Sets the number of logical CPU cores to use for parallel tasks processing. It should be less or equal than the numbers of available cores.
* '''-limitFPS=''' - Limits server FPS to specified value (current max is 200) to lower CPU usage of low population servers.
* '''-limitFPS=''' - Limits server FPS to specified value (current max is 200) to lower CPU usage of low population servers.


== Priority Queuing ==
== Priority Queuing ==
Specified users can be prioritized in the login queue, they will get on the first position, before the non-prioritized users.
Specified users can be prioritized in the login queue, they will get on the first position, before the non-prioritized users.


Flagged users simply need to added to a ''priority.txt'' file, located in the root directory of the server install.
Flagged users simply need to added to a ''priority.txt'' file, located in the root directory of the server install.
<syntaxhighlight lang="c">
<syntaxhighlight lang="cpp">
SteamId;SteamId;01234567890123456;01234567890123456
SteamId;SteamId;01234567890123456;01234567890123456
</syntaxhighlight>
</syntaxhighlight>


[[Category:DayZ]][[Category:DayZ:Server]]
 
[[Category:DayZ]]
[[Category:DayZ:Server]]
[[Category:DayZ:Editing]]

Revision as of 18:40, 22 June 2020

Template:SideTOC This article deals with the configuration file which is used to configure various game server settings.

The name server.cfg means nothing, and this file can be called anything. The real name is determined by the -config command line option when launching the dedicated server. There is no default name; when non is specified, the server won't launch due to the mandatory settings.


Server Configurations

Main Parameters

hostname = "EXAMPLE NAME";	// Server name
password = "";				// Password to connect to the server
passwordAdmin = "";			// Password to become a server admin

enableWhitelist = 0;		// Enable/disable whitelist (value 0-1)

maxPlayers = 60;			// Maximum amount of players

verifySignatures = 2;		// Verifies .pbos against .bisign files. (only 2 is supported)

forceSameBuild = 1;			// When enabled, the server will allow the connection only to clients with same the .exe revision as the server (value 0-1)

disableVoN = 0;				// Enable/disable voice over network (value 0-1)
vonCodecQuality = 20;		// Voice over network codec quality, the higher the better (values 0-30)

disable3rdPerson = 0;		// Toggles the 3rd person view for players (value 0-1)
disableCrosshair = 0;		// Toggles the cross-hair (value 0-1)

serverTime = "SystemTime";	// Initial in-game time of the server. "SystemTime" means the local time of the machine. Another possibility is to set the time to some value in "YYYY/MM/DD/HH/MM" format, e.g "2015/4/8/17/23".
serverTimeAcceleration = 1;	// Accelerated Time - The numerical value being a multiplier (0.1-64). Thus, in case it is set to 24, time would move 24 times faster than normal. An entire day would pass in one hour.
serverNightTimeAcceleration = 1;// Accelerated Nigh Time - The numerical value being a multiplier (0.1-64) and also multiplied by serverTimeAcceleration value.
								// Thus, in case it is set to 4 and serverTimeAcceleration is set to 2, night time would move 8 times faster than normal.
								// An entire night would pass in 3 hours.
serverTimePersistent = 0;	// Persistent Time (value 0-1)// The actual server time is saved to storage, so when active, the next server start will use the saved time value.

guaranteedUpdates = 1;		// Communication protocol used with game server (use only number 1)

loginQueueConcurrentPlayers = 5;	// The number of players concurrently processed during the login process. Should prevent massive performance drop during connection when a lot of people are connecting at the same time.
loginQueueMaxPlayers = 500;			// The maximum number of players that can wait in login queue

instanceId = 1;				// DayZ server instance id, to identify the number of instances per box and their storage folders with persistence files

storeHouseStateDisabled = false;// Disable houses/doors persistence (value true/false), usable in case of problems with persistence
storageAutoFix = 1;			// Checks if the persistence files are corrupted and replaces corrupted ones with empty ones (value 0-1)


class Missions
{
	class DayZ
	{
		template = "dayzOffline.chernarusplus"; // Mission to load on server startup. <MissionName>.<TerrainName>
	};
};

Additional Parameters

respawnTime = 5;				// Sets the respawn delay (in seconds) before the player is able to get a new character on the server, when the previous one is dead

motd[] = { "line1","line2" };	// Message of the day displayed in the in-game chat
motdInterval = 1;				// Time interval (in seconds) between each message

maxPing= 200;					// Max ping value until server kick the user (value in milliseconds)

timeStampFormat = "Short";		// Format for timestamps in the .rpt file (value Full/Short)
logAverageFps = 1;				// Logs the average server FPS (value in seconds), needs to have ''-doLogs'' launch parameter active
logMemory = 1;					// Logs the server memory usage (value in seconds), needs to have the ''-doLogs'' launch parameter active
logPlayers = 1;					// Logs the count of currently connected players (value in seconds), needs to have the ''-doLogs'' launch parameter active
logFile = "server_console.log";	// Saves the server console log to a file in the folder with the other server logs

adminLogPlayerHitsOnly = 0;		// 1 - log player hits only / 0 - log all hits ( animals/infected )
adminLogPlacement = 0;			// 1 - log placement action ( traps, tents )
adminLogBuildActions = 0;		// 1 - log basebuilding actions ( build, dismantle, destroy )
adminLogPlayerList = 0;			// 1 - log periodic player list with position every 5 minutes

enableDebugMonitor = 1;			// shows info about the character using a debug window in a corner of the screen (value 0-1)

steamQueryPort = 2305;			// defines Steam query port, should fix the issue with server not being visible in client server browser

allowFilePatching = 1;			// if set to 1 it will enable connection of clients with "-filePatching" launch parameter enabled

simulatedPlayersBatch = 20;		// Set limit of how much players can be simulated per frame (for server performance gain)

multithreadedReplication = 1;	// enables multi-threaded processing of server's replication system
								// number of worker threads is derived by settings of jobsystem in dayzSettings.xml by "maxcores" and "reservedcores" parameters (value 0-1)

networkRangeClose = 20;			// network bubble distance for spawn of close objects with items in them (f.i. backpacks), set in meters, default value if not set is 20
networkRangeNear = 150;			// network bubble distance for spawn (despawn +10%) of near inventory items objects, set in meters, default value if not set is 150
networkRangeFar = 1000;			// network bubble distance for spawn (despawn +10%) of far objects (other than inventory items), set in meters, default value if not set is 1000
networkRangeDistantEffect = 4000; // network bubble distance for spawn of effects (currently only sound effects), set in meters, default value if not set is 4000

defaultVisibility=1375;			// highest terrain render distance on server (if higher than "viewDistance=" in DayZ client profile, clientside parameter applies)
defaultObjectViewDistance=1375;	// highest object render distance on server (if higher than "preferredObjectViewDistance=" in DayZ client profile, clientside parameter applies)

lightingConfig = 0;				// 0 for brighter night, 1 for darker night
disablePersonalLight = 1;		// disables personal light for all clients connected to server

disableBaseDamage = 0;			// set to 1 to disable damage/destruction of fence and watchtower
disableContainerDamage = 0;		// set to 1 to disable damage/destruction of tents, barrels, wooden crate and seachest


Server Configurations

dayzsettings.xml

<jobsystem globalqueue="4096" threadqueue="1024">
	<pc maxcores="4" reservedcores="1" />
	<!--
		maxcores - maximum number of CPU cores which will be used for jobsystem
		reservedcores - number of CPU cores which will be used for other threads
		
		number of worker threads is then "maxcores - reservedcores", but still at least one worker thread is allocated
	-->
</jobsystem>


BattlEye Configuration

The config file BEServer_x64.cfg needs to be in the same folder as BEServer_x64.dll. The location of this folder can be customized via the startup parameters -bePath and -profiles.

Supported parameters:

  • RConPassword MyPassword - Sets the password for the connection of the RCon tool (remote connection admin tool like BEC/Dart)
  • RestrictRCon 1 - Enables/Disables RCon functions (kick/ban/connection restrictions)


Launch Parameters

Run the DayZServer_x64.exe via the batch file, shortcut with parameters or other options.

Supported parameters:

  • -config=serverDZ.cfg - Selects the Server Config File
  • -port=2302 - Port to have dedicated server listen on
  • -profiles=C:\Users\%USER%\Documents\DayZServer – Path to the folder containing server profile. By default, server logs are written to server profile folder. Logs/dumps/etc will be created there, along with BattlEye/BEC/Rcon related files. Windows Environment variables are supported (E.g. %userprofile%).
  • -doLogs - Enables all log messages in the server RPT file
  • -adminLog - Enables the admin log
  • -netLog - Enables the network traffic logging
  • -freezeCheck - Stops the server when frozen for more than 5 min and create a dump file
  • -filePatching - Ensures that only PBOs are loaded and NO unpacked data.
  • -BEpath= - Sets a custom path to the Battleye files
  • -cpuCount= - Sets the number of logical CPU cores to use for parallel tasks processing. It should be less or equal than the numbers of available cores.
  • -limitFPS= - Limits server FPS to specified value (current max is 200) to lower CPU usage of low population servers.


Priority Queuing

Specified users can be prioritized in the login queue, they will get on the first position, before the non-prioritized users.

Flagged users simply need to added to a priority.txt file, located in the root directory of the server install.

SteamId;SteamId;01234567890123456;01234567890123456