Arma 3 server.cfg & basic.cfg Explained
The most important settings in the Arma 3 server.cfg and basic.cfg explained: passwords, slots, security, mission rotation and network values.
Quick answer: Arma 3 uses two files: server.cfg (name, passwords, security, missions) is loaded with -config=, basic.cfg (network bandwidth) with -cfg=. Without -config= the server loads no server.cfg at all. After changes, restart the server or type #init as admin.
Where are the files?
The file names are up to you – what counts is the start command. On your rented server you see it in the panel under Startup, for example:
-port=2302 -config=server.cfg -cfg=basic.cfg -name=server
Edit the files in the panel's file manager or via SFTP. Important: words like class must be lowercase, and every line ends with ;.
server.cfg: name, passwords, slots
hostname = "My Arma 3 Server";
password = ""; // join password, empty = open
passwordAdmin = "SecretAdminPW"; // for #login
serverCommandPassword = "EvenMoreSecret";
maxPlayers = 40;
motd[] = { "Welcome!", "Discord: ..." };
motdInterval = 5;
admins[] = { "76561198000000000" };
hostname– name in the server browser.password– password to join. Empty = anyone can join.passwordAdmin– password for admin login with#login. Always set it.serverCommandPassword– password for theserverCommandscript command (e.g. for admin tools in missions). Case-sensitive.maxPlayers– maximum players. The lower of this value and the mission's slots applies. Headless clients count as players.motd[]– welcome message, lines separated by commas.motdInterval= seconds between lines (default 5).admins[]– Steam UIDs that may log in as admin with#loginwithout a password.
server.cfg: security
The Bohemia wiki recommends this baseline for public servers:
BattlEye = 1;
verifySignatures = 2;
allowedFilePatching = 0;
kickDuplicate = 1;
BattlEye– anti-cheat on (1) or off (0). Default 1.verifySignatures– checks mod signatures.2= strict (recommended),0= off. A value of 1 is treated as 2. Each mod's.bikeymust be in thekeys/folder.allowedFilePatching– whether clients may load unpacked files:0= nobody,1= headless clients only,2= everyone.kickDuplicate– kicks a second player with the same ID.filePatchingExceptions[]– Steam UIDs exempt fromallowedFilePatchingandverifySignatures.
server.cfg: voting
voteThreshold– share of votes needed for a vote to pass (default 0.5). The wiki names9999to disable voting.voteMissionPlayers– number of players at which mission voting starts (default 1).allowedVoteCmds[] = {};– disables all votes.allowedVotedAdminCmds[] = {};– a voted-in admin may then not use any commands.
server.cfg: voice, logs, behaviour
disableVoN–1turns off in-game voice chat.vonCodecQuality– voice quality 1–30 (default 3).persistent–1: the mission keeps running when all players have left (only for missions with respawn).timeStampFormat– timestamps in the log:"none","short"or"full".logFile– also writes the server console to a text file, e.g."server_console.log".forcedDifficulty– forces a difficulty:"Recruit","Regular","Veteran"or"Custom".missionWhitelist[]– missions admins and players may choose from.disconnectTimeout– seconds until a player with a lost connection is dropped (default 15).maxPing,maxPacketLoss,maxDesync– limits for automatic kicks (default -1 = off).kickClientsOnSlowNetwork[]decides whether to only log (0) or kick (1).upnp– leave at0on a rented server. According to the wiki,1can delay start-up by up to 600 seconds.
server.cfg: mission rotation
With class Missions the server starts missions automatically. template (missionname.map) and difficulty are required:
class Missions
{
class Mission1
{
template = "MyMission.Altis";
difficulty = "Regular";
};
};
The mission (.pbo) must be in the mpmissions folder. Other useful keys:
autoSelectMission = true;– automatically starts the next mission in the rotation.randomMissionOrder = true;– random order (goes outsideclass Missions).missionsToServerRestart = 8;– restarts the server process after 8 finished missions.
basic.cfg: network and bandwidth
basic.cfg controls how much data the server sends. Defaults according to the Bohemia wiki:
MaxMsgSend = 128;
MaxSizeGuaranteed = 512;
MaxSizeNonguaranteed = 256;
MinBandwidth = 131072;
MinErrorToSend = 0.001;
MinErrorToSendNear = 0.01;
class sockets { maxPacketSize = 1400; };
MaxMsgSend– maximum packets per simulation cycle. Higher values can reduce lag on servers with plenty of upload bandwidth.MaxSizeGuaranteed– maximum size of guaranteed packets in bytes (e.g. shots).MaxSizeNonguaranteed– maximum size of non-guaranteed packets (e.g. position updates).MinBandwidth/MaxBandwidth– bandwidth in bit/s the server is guaranteed to have / will never reach. Overly optimistic values increase lag and CPU load.MinErrorToSend/MinErrorToSendNear– deviation at which updates are sent for distant / near units. Smaller values = smoother movement, more traffic. Values that are too large make units "warp".MaxCustomFileSize– players whose custom faces/sounds are larger (in bytes) get kicked.maxPacketSize– only change it if your connection forces smaller packets.
As an example for a 1024 kbps server the wiki gives MaxMsgSend = 256; and MinBandwidth = 768000;. Change values step by step and use #monitor to check whether things improve. The server runs at no more than 50 FPS; below 20 FPS it counts as overloaded.
Important start parameters
-port=2302– game port. Arma 3 also uses the next four ports (e.g. 2303–2306), all UDP. On a rented server the port is assigned.-config=/-cfg=– server.cfg and basic.cfg.-name=– profile name.-mod=/-serverMod=– mods for everyone / for the server only. See Installing mods.-world=empty– loads no default map, so the server starts faster.-loadMissionToMemory– keeps the mission in memory after the first download.-limitFPS=– server FPS limit (default 50).
Common mistakes
- Server ignores server.cfg:
-config=is missing from the start command or the file name is wrong. - Parse error at start-up: missing
;, missing bracket orClassinstead ofclass. - Players kicked for signatures: the mod's
.bikeyis missing fromkeys/or the mod versions differ.
Related guides
Source: Bohemia Interactive Community Wiki (Server Config File, Basic Server Config File, Startup Parameters) · Rent a server: Arma 3 server at NexoraHost