Update server.cfg

- Cleaned up informational comments.
- Reorganized the list of settings to be more readable and grouped related settings. More advanced (less touched) settings were moved to the bottom of the file.
- Changed some default values to better ones.
- Added some missing, yet common, settings.
This commit is contained in:
Red-Thirten 2021-01-26 14:32:33 -08:00 committed by GitHub
parent 9a94845c4b
commit dc0c565824
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,17 +1,16 @@
// **************************************************************************** // ****************************************************************************
// * // *
// Arma 3 - server.cfg * // ArmA 3 Server Config File - server.cfg *
// Version 060117 * // *
// More info about parameters: *
// https://community.bistudio.com/wiki/server.cfg *
// * // *
// **************************************************************************** // ****************************************************************************
// ArmA 3 Server Config File // Some settings are not listed here; see link above for extensive list.
// // Some settings are disabled (commented out). Remove the // to enable them.
// More info about parameters:
// https://community.bistudio.com/wiki/server.cfg
// === GLOBAL SETTINGS ===
// GENERAL SETTINGS
// Hostname for server. // Hostname for server.
hostname = "Arma 3 Server"; hostname = "Arma 3 Server";
@ -22,45 +21,16 @@ hostname = "Arma 3 Server";
// Admin Password // Admin Password
//passwordAdmin = "ADMINPASSWORD"; //passwordAdmin = "ADMINPASSWORD";
// Auto-admin // Whitelisted Admins - Clients that do not need a password to login.
admins[] = {"<UID>"}; //admins[] = { "UID OR steamID64", "0123456789", "9876543210" };
// Server Slots // Server Command Password - for scripting and certain mods.
maxPlayers = 32; //serverCommandPassword = "COMMANDPASSWORD";
// Logfile // Log File
logFile = "arma3server.log"; logFile = "server_console.log";
// RPT File Timestamp Format - none | short | full
// Minimum Required Client Build timeStampFormat = "short";
//requiredBuild = 95691
class Missions
{
class Mission1
{
template = ;
difficulty = "Regular";
class Params {};
};
class Mission2
{
template = ;
difficulty = "Regular";
class Params {};
};
class Mission3
{
template = ;
difficulty = "Regular";
class Params {};
};
class Mission4
{
template = ;
difficulty = "Regular";
class Params {};
};
};
// Message of the Day (MOTD) // Message of the Day (MOTD)
motd[] = { motd[] = {
@ -68,91 +38,129 @@ motd[] = {
"TS3 Server: teamspeak.somewhere.com", "TS3 Server: teamspeak.somewhere.com",
"Web: www.example.com" "Web: www.example.com"
}; };
// MOTD Interval - Seconds between each message.
motdInterval = 5;
// MOTD Interval (Seconds) // Missions Cycle
motdInterval = 30; class Missions
{
class Mission1
{
template = MP_ZGM_m11.Altis;
difficulty = "Regular";
class Params {};
};
class Mission2
{
template = MP_ZGM_m12.Stratis;
difficulty = "Recruit";
class Params {};
};
};
// Whitelisted Missions - Only these missions can be selected on the mission select screen.
//missionWhitelist[] = { "MP_ZGM_m11.Altis", "MP_ZGM_m12.Stratis" };
// VOTING // === JOINING RULES ===
// Server Mission Start // Server Slots
// minimum number of clients before server starts mission maxPlayers = 32;
voteMissionPlayers = 1;
// Accepted Vote Threshold // Enable BattlEye
// 0.33 = 33% clients. BattlEye = 1;
voteThreshold = 0.33;
// INGAME SETTINGS // Addon Signature Verification - Verifies .pbos against .bisign files - 0 = Disabled | 2 = Enabled (v2)
verifySignatures = 2;
// Disable Voice over Net (VoN) // Kick Duplicate Player IDs - 0 = No | 1 = Yes
// 0 = voice enabled. kickDuplicate = 1;
// 1 = voice disabled. // Allow File Patching - 0 = No Clients | 1 = Headless Clients only | 2 = All Clients
allowedFilePatching = 0;
// Minimum Required Client Version
//requiredBuild = 999999999;
// LAN Mode
loopback = 0;
// UPNP Router Mode
upnp = 0;
// Headless Client IP Whitelists
headlessClients[] = { "127.0.0.1" };
localClient[] = { "127.0.0.1" };
// === INGAME SETTINGS ===
// Advanced Flight Model Enforcement - 0 = Up to player | 1 = Advanced model enforced | 2 = Simple model enforced
forceRotorLibSimulation = 0;
// Disable In-Game Voice Chat (Voice over Network)
disableVoN = 0; disableVoN = 0;
// VoN Codec - 0 = older SPEEX codec | 1 = newer IETF standard OPUS codec
vonCodec = 1;
// VoN Codec Quality // VoN Codec Quality
// 0-10 = 8kHz (narrowband). // 0-10 = 8kHz (narrowband).
// 11-20 = 16kHz (wideband). // 11-20 = 16kHz (wideband).
// 21-30 = 32kHz (ultrawideband). // 21-30 = 32kHz (ultrawideband).
vonCodecQuality = 3; vonCodecQuality = 10;
// Persistent Battlefield // Persistent Mission - Keeps mission running when all players disconnect.
// 0 = disable. persistent = 0;
// 1 = enable.
persistent = 1;
// Time Stamp Format // Allow Drawing in Map
// none, short, full drawingInMap = 1;
timeStampFormat = "short";
// Server Statistics // Enforce Difficulty - Use "Custom" for ServerProfile-defined custom difficulty
// Set this to 0 to opt-out! More info: https://community.bistudio.com/wiki/Arma_3_Analytics forcedDifficulty = "regular";
statisticsEnabled = 1;
// SERVER SECURITY/ANTI HACK
// Verify Signitures for Client Addons // === VOTING ===
// 0 = off.
// 1 = weak protection (depricated).
// 2 = full protection.
verifySignatures = 2;
// Secure Player ID // Allowed Vote Commands - Un-comment this to prevent voted commands (like vote-kick)
// 1 = Server warning message. //allowedVoteCmds[] = {};
// 2 = Kick client.
requiredSecureId = 2;
// Kick Duplicate Player IDs // Start mission-voting when X number of players connect.
kickDuplicate = 1; voteMissionPlayers = 1;
// BattlEye Anti-Cheat // Vote Threshold - Percentage of votes needed to confirm a vote.
// 0 = disable voteThreshold = 0.33;
// 1 = enable
BattlEye = 1;
// Allowed File Extentions
allowedLoadFileExtensions[] = {"hpp","sqs","sqf","fsm","cpp","paa","txt","xml","inc","ext","sqm","ods","fxy","lip","csv","kb","bik","bikb","html","htm","biedi"};
allowedPreprocessFileExtensions[] = {"hpp","sqs","sqf","fsm","cpp","paa","txt","xml","inc","ext","sqm","ods","fxy","lip","csv","kb","bik","bikb","html","htm","biedi"};
allowedHTMLLoadExtensions[] = {"htm","html","xml","txt"};
// SCRIPTING ISSUES // === CLIENT NETWORK HEALTH ===
// Seconds to wait before disconnecting a user which temporarily lost connection.
disconnectTimeout = 90;
// Max Desync Value
maxdesync = 150;
// Max Ping (ms)
maxping = 200;
// Max Packet Loss
maxpacketloss = 50;
// Action to Take on Slow Network (defined above)
// Defines if {<MaxPing>, <MaxPacketLoss>, <MaxDesync>, <DisconnectTimeout>} will be logged (0) or kicked (1)
kickClientsOnSlowNetwork[] = { 1, 1, 0, 1 };
// Kick Duration (temp-ban) on Network Kick
// Options {<manual kick>, <connectivity kick>, <BattlEye kick>, <harmless kick>} -- Timeout {>0 seconds; -1 until missionEnd; -2 until serverRestart}
kickTimeout[] = { {0, -1},{1, 1},{2, 5},{3, 1} };
// === SERVER SIDE SCRIPTING ===
// See https://community.bistudio.com/wiki/ArmA:_Server_Side_Scripting
onUserConnected = ""; onUserConnected = "";
onUserDisconnected = ""; onUserDisconnected = "";
doubleIdDetected = ""; doubleIdDetected = "";
// SIGNATURE VERIFICATION
// kick = kick (_this select 0)
// ban = ban (_this select 0)
onUnsignedData = "kick (_this select 0)"; onUnsignedData = "kick (_this select 0)";
onHackedData = "kick (_this select 0)"; onHackedData = "kick (_this select 0)";
onDifferentData = ""; onDifferentData = "";
// HEADLESS CLIENT SUPPORT // Only allow files with these extensions to be loaded via loadFile command
// specify ip-adresses of allowed headless clients allowedLoadFileExtensions[] = {"hpp","sqs","sqf","fsm","cpp","paa","txt","xml","inc","ext","sqm","ods","fxy","lip","csv","kb","bik","bikb","html","htm","biedi"};
headlessClients[] = {"127.0.0.1", "172.18.0.1"}; // Only allow files with these extensions to be loaded via preprocessFile/preprocessFileLineNumber commands
localClient[] = {"127.0.0.1", "172.18.0.1"}; allowedPreprocessFileExtensions[] = {"hpp","sqs","sqf","fsm","cpp","paa","txt","xml","inc","ext","sqm","ods","fxy","lip","csv","kb","bik","bikb","html","htm","biedi"};
// Only allow files with these extensions to be loaded via HTMLLoad command
// BattlEye Anti-Cheat License allowedHTMLLoadExtensions[] = {"htm","html","xml","txt"};
// 0 = decline // Leave commented to let missions/campaigns/addons decide what URIs are supported. Un-comment to define server-level restrictions for URIs
// 1 = accept //allowedHTMLLoadURIs = {};
battleyeLicense = 1;