Explorar o código

Re wrote the ArmA 3 Default config

The default config was messy at best.
I have re written the config to make it more readable and simple.
Daniel Gibbs %!s(int64=11) %!d(string=hai) anos
pai
achega
0db3ee72ad
Modificáronse 1 ficheiros con 95 adicións e 39 borrados
  1. 95 39
      Arma3/cfg/lgsm-default.cfg

+ 95 - 39
Arma3/cfg/lgsm-default.cfg

@@ -1,59 +1,113 @@
+// ArmA 3 Server Config File
 //
-// server.cfg
-//
-// comments are written with "//" in front of them.
-// dont change any of the line numbers, the script *might* break
+// More info about parameters:
+// https://community.bistudio.com/wiki/server.cfg
+
 
 // PORTS
-//default 2302, needs to be unique if multiple servers on same box
-//ignore how the line is commented, it is still interprited by the main script
-//serverport=2302
-//default 2304, needs to be unique if multiple servers on same box (master port)
+
+// Server Port
+//  default: 2302.
+serverport=2302;
+
+// Steam Master Port
+//  default: 2304.
 steamport=2304;
-//default 2303, needs to be unique if multiple servers on same box (query port)
+
+// Steam Query Port
+//  default: 2303.
 steamqueryport=2303;
 
-// GLOBAL SETTINGS
-// The name of the server that shall be displayed in the public server list
+
+// GENERAL SETTINGS
+
+// Server Name
 hostname = "arma3server";
-// Password for joining, eg connecting to the server
-//password = "ServerAccessPassword";
-// Password to become server admin. When you're in Arma MP and connected to the server, type '#login xyz'
-passwordAdmin = "AdminPassword";
+
+// Server Password
+//password = "arma3pass";
+
+// Admin Password
+passwordAdmin = "arma3adminpass";
+
+// Server Slots
+maxPlayers = 32;
+
+// Logfile
 logFile = "arma3server.log";
-verifySignatures = 2;
-//kick if data/mods are not equal
-equalModRequired = 0;
-//was used to define type of secureID
-requiredSecureId = 2;
 
-// WELCOME MESSAGE ("message of the day")
-// It can be several lines, separated by comma
-// Empty messages "" will not be displayed at all but are only for increasing the interval
+// Minimum Required Client Build
+//requiredBuild = 95691
+
+// Message of the Day (MOTD)
 motd[]={
     "Welcome to My Arma 3 Server",
     "TS3 Server:     teamspeak.somewhere.com",
     "Web:            www.example.com"
 };
-motdInterval 		= 30;            		// Time interval (in seconds) between each message
 
-// JOINING RULES
-maxPlayers		= 40;				// Maximum amount of players. Civilians and watchers, beholder, bystanders and so on also count as player.
-kickDuplicate = 1;					// Each ArmA version has its own ID. If kickDuplicate is set to 1, a player will be kicked
-//requiredBuild = 12345					// Require clients joining to have at least build 12345 of game, preventing obsolete clients to connect
+// MOTD Interval (Seconds)
+motdInterval = 30;
+
 
 // VOTING
-voteMissionPlayers	= 1;        			// Tells the server how many people must connect so that it displays the mission selection screen.
-voteThreshold		= 0.33;     			// 33% or more players need to vote for something, for example an admin or a new map, to become effective
-//voteMissionPlayers	= 0;
+
+// Server Mission Start
+//  minimum number of clients before server starts mission
+voteMissionPlayers = 1;
+
+// Accepted Vote Threshold
+//  0.33 = 33% clients.
+voteThreshold = 0.33;
 
 // INGAME SETTINGS
-disableVoN = 1;						// If set to 1, Voice over Net will not be available
-vonCodecQuality = 0;					// supports range 1-30 //8kHz is 0-10 (narrowband), 16kHz is 11-20 (wideband), 32kHz is 21-30 (ultrawideband)
-persistent = 1;						// If 1, missions still run on even after the last player disconnected.
-timeStampFormat = "short";				// Set the timestamp format used on each report line in server-side RPT file. Possible values are "none" (default),"short","full".
-BattlEye = 1;                                           // Server to use BattlEye system
-allowedLoadFileExtensions[] = {"hpp","txt"}; // only allow files with those extensions to be loaded via loadFile command (since Arma 3 build 1.19.124216)
+
+// Disable Voice over Net (VoN)
+//  0 = voice enabled.
+//  1 = voice disabled.
+disableVoN = 0;
+
+// VoN Codec Quality
+//  0-10 = 8kHz (narrowband).
+//  11-20 = 16kHz (wideband).
+//  21-30 = 32kHz (ultrawideband).
+vonCodecQuality = 3;
+
+//Persistent Battlefield
+//  0 = disable.
+//  1 = enable.
+persistent = 1;
+
+// Time Stamp Format
+//  none, short, full
+timeStampFormat = "short";
+
+
+// SERVER SECURITY/ANTI HACK
+
+// Verify Signitures for Client Addons
+//  0 = off.
+//  1 = weak protection (depricated).
+//  2 = full protection.
+verifySignatures = 2;
+
+// Secure Player ID
+//  1 = Server warning message.
+//  2 = Kick client.
+requiredSecureId = 2;
+
+// Kick Duplicate Player IDs
+kickDuplicate = 1;
+
+// BattlEye Anti-Cheat
+//  0 = disable
+//  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
 onUserConnected = "";					//
@@ -61,6 +115,8 @@ onUserDisconnected = "";				//
 doubleIdDetected = "";					//
 
 // SIGNATURE VERIFICATION
-onUnsignedData = "kick (_this select 0)";		// unsigned data detected
-onHackedData = 	"kick (_this select 0)";	//"ban (_this select 0)";			// tampering of the signature detected
+// kick = kick (_this select 0)
+// ban = ban (_this select 0)
+onUnsignedData = "kick (_this select 0)";
+onHackedData = 	"kick (_this select 0)";
 onDifferentData = "";