server.cfg optimal example

server.cfg optimal example

« posted: May 06, 2015, 07:12 AM »
Can you guys show me whats in your server.cfg ? Im saying this because im turning everything upside down to trying to discover whats causing my server to randomly crash and im using a default provided by the server provider and i think i have to many shit on it.

Code: [Select]
//
// server.cfg
//
// comments are written with "//" in front of them.

// NOTE: More parameters and details are available at http://community.bistudio.com/wiki/server.cfg

// STEAM PORTS (not needed anymore, it's +1 +2 to gameport)
// steamPort       = 8766;     // default 8766, needs to be unique if multiple serves on same box
// steamQueryPort  = 27016;    // default 27016, needs to be unique if multiple servers on same box

// GENERAL SETTINGS
hostname       = "***";    // Name of the server displayed in the public server list
// password     = "";      // Password required to join the server (remove // at start of line to enable)
passwordAdmin  = "***";       // Password to login as admin. Open the chat and type: #login password
maxPlayers     = 40;    // Maximum amount of players, including headless clients. Anybody who joins the server is considered a player, regardless of their role or team.
persistent     = 1;     // If set to 1, missions will continue to run after all players have disconnected; required if you want to use the -autoInit startup parameter
reportingIP ="arma3pc.master.gamespy.com";       // This is the default setting. If you change this, your server might not turn up in the public list. Leave empty for private servers

// VOICE CHAT
disableVoN       = 0;     // If set to 1, voice chat will be disabled
vonCodecQuality  = 10;    // Supports range 1-30; 1-10 is 8kHz (narrowband), 11-20 is 16kHz (wideband), 21-30 is 32kHz (ultrawideband); higher = better sound quality, more bandwidth consumption

// VOTING
voteMissionPlayers  = 1;       // Minimum number of players required before displaying the mission selection screen, if you have not already selected a mission in this config
voteThreshold       = 1;    // Percentage (0.00 to 1.00) of players needed to vote something into effect, for example an admin or a new mission. Set to 9999 to prevent random players being voted as admins.



allowedVoteCmds[] =
{
// {type, preinit, postinit, threshold}
{"admin", false, false}, // vote admin
{"kick", false, true, 0.5}, // vote kick
{"missions", false, false}, // mission change
{"mission", false, false}, // mission selection
{"restart", false, false}, // mission restart
{"reassign", false, false} // mission restart with roles unassigned
};

// WELCOME MESSAGE ("message of the day")
// It can be several lines, separated by comma
// Empty messages "" will not be displayed, but can be used to increase the delay before other messages
motd[] =
{
"",
"",
"",
"",
"",
"",
"",
"Welcome to A3Wasteland Stratis",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"Have fun!"
};
motdInterval = 10;    // Number of seconds between each message

// MISSIONS CYCLE
class Missions
{
class Mission1
{
template="A3Wasteland_v1.6.Stratis";
difficulty="Regular"; // "Recruit", "Regular", "Veteran", "Mercenary"
};
};

// LOGGING
timeStampFormat  = "short";                 // Timestamp format used in the server RPT logs. Possible values are "none" (default), "short", "full"
logFile          = "server_console.log";    // Server console output filename

// SECURITY
BattlEye          = 1;    // If set to 1, BattlEye Anti-Cheat will be enabled on the server (default: 1, recommended: 1)
verifySignatures  = 2;    // If set to 2, players with unknown or unsigned mods won't be allowed join (default: 0, recommended: 2)
kickDuplicate     = 1;    // If set to 1, players with an ID that is identical to another player will be kicked (recommended: 1)

// FILE EXTENSIONS
allowedLoadFileExtensions[] =       {"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 those extensions to be loaded via loadFile command (since Arma 3 v1.19.124216)
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 those extensions to be loaded via preprocessFile/preprocessFileLineNumber commands (since Arma 3 v1.19.124323)
allowedHTMLLoadExtensions[] =       {"htm","html","xml","txt"}; // only allow files with those extensions to be loaded via HTMLLoad command (since Arma 3 v1.27.126715)

// EVENT SCRIPTS (see http://community.bistudio.com/wiki/ArmA:_Server_Side_Scripting)
onUserConnected     = "";    // command to run when a player connects
onUserDisconnected  = "";    // command to run when a player disconnects
regularCheck="";
doubleIdDetected    = "";    // command to run if a player has the same ID as another player in the server
onUnsignedData      = "kick (_this select 0)";    // command to run if a player has unsigned files
onHackedData        = "kick (_this select 0)";    // command to run if a player has tampered files

// HEADLESS CLIENT
headlessClients[]  = {};    // list of IP addresses allowed to connect using headless clients; example: {"127.0.0.1", "192.168.1.100"};
localClient[]      = {};    // list of IP addresses to which are granted unlimited bandwidth; example: {"127.0.0.1", "192.168.1.100"};

language="English";
adapter=-1;
3D_Performance=8021.000000;
Resolution_W=160;
Resolution_H=120;
Resolution_Bpp=32;
viewDistance=10000;
terrainGrid=10.000000;
MinBandwidth = 15000000;
MaxBandwidth = 100000000;
MaxMsgSend = 1024;
MaxSizeGuaranteed = 1024;
MaxSizeNonguaranteed = 64;
MinErrorToSend = 0.0025;
MaxCustomFileSize=0;


//-----------BIS Suggestions------------

//MinBandwidth = 320000;
//* 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 = 10000000000;
//*Bandwidth the server is guaranteed to never have. This value helps the server to estimate bandwidth available.

//MaxMsgSend = 256;
//* Maximum number of messages that can be sent in one simulation cycle. Increasing this value can decrease lag on high upload bandwidth servers. Default: 128

//MaxSizeGuaranteed = 1024;
//*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. Default: 512

//MaxSizeNonguaranteed = 64;
//*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. Default: 256

//MinErrorToSend = 0.005;
//*Minimal error to send updates across network. Using a smaller value can make units observed by binoculars or sniper rifle to move smoother. Default: 0.01

//MaxCustomFileSize = 0;
//*Users with custom face or custom sound larger than this size are kicked when trying to connect.
  • Offline LouD
  • Silent but deadly ;)
  • Moderator
  • Veteran
  • ******
  • Posts: 1415

Re: server.cfg optimal example

« Reply #1 posted: May 06, 2015, 10:00 AM »
server.cfg:
Code: [Select]
hostName = "[NL/EU] NLU #1 Altis Wasteland [MARKSMEN|MISSIONS+|HIVE|$2.5k]";
password = "";
passwordAdmin = "LikeIWouldTellYouThis";
logFile = "a3_prod_console.log";

motd[] = {
"",
"**** Please read our rules. You can find them on the top left side after opening the map. They are under Server Rules. ****",
"",
"**** TEAMSPEAK: TS.NL-UNITED.NL ****"
};
motdInterval = 10;

upnp=0;

maxPlayers = 70;
kickduplicate = 1;
verifySignatures = 2;
requiredSecureId = 2;

voteMissionPlayers = 5;
voteThreshold = 1;

allowedVoteCmds[] = {
{"missions", false, false},
{"mission", false, false},
{"admin", false, false},
{"kick", false, true, 0.5},
{"restart", false, false},
{"reassign", false, false}
};

allowedVotedAdminCmds[] = {
{"mission", false, false},
{"missions", false, false},
{"restart", true, true},
{"reassign", true, true},
{"kick", true, true}
};

disableVoN = 0;
vonCodecQuality = 10;
persistent = 1;
timeStampFormat = "full";
BattlEye = 1;

allowedLoadFileExtensions[] = {"hpp","h","sqs","sqf","fsm","cpp","paa","wav","txt","xml","inc","ext","sqm","ods","fxy","lip","csv","kb","bik","bikb","html","htm","biedi"};
allowedPreprocessFileExtensions[] = {"hpp","h","sqs","sqf","fsm","cpp","paa","wav","txt","xml","inc","ext","sqm","ods","fxy","lip","csv","kb","bik","bikb","html","htm","biedi"};
allowedHTMLLoadExtensions[] = {"htm","html","xml","txt"};


guaranteedUpdates = false;
// guaranteedUpdates = true;

doubleIdDetected = "";
onUserConnected = "";
onUserDisconnected = "";
onHackedData = "kick (_this select 0)";
onDifferentData = "";
onUnsignedData = "kick (_this select 0)";
regularCheck = "";

//HC
headlessClients[]={"127.0.0.1","10.99.100.78"};
localClient[]={127.0.0.1,10.99.100.78};


class Missions
{
class Mission_1
{

template = "A3Wasteland_NLUnited.Altis";
difficulty = "Regular";
};
};

basic.cfg:
Code: [Select]
// BASIC CONFIG

// BANDWIDTH SETTINGS

MinBandwidth = 131072;
MaxBandwidth = 104857600;

MaxMsgSend = 256;
MaxSizeGuaranteed = 696;
MaxSizeNonguaranteed=232;
class sockets{maxPacketSize = 1400;};

// SMOOTHNESS SETTINGS

//MinErrorToSend = 0.001;
//MinErrorToSend=0.001500000;
//MinErrorToSendNear = 0.01;
//MinErrorToSendNear=0.015000000;

//Change due to 1.42 bandwith problems
MinErrorToSendNear=0.04;
MinErrorToSend=0.004;

// MISC

MaxCustomFileSize = 524288;
language="English";
adapter=-1;
3D_Performance=1.000000;
Resolution_W=0;
Resolution_H=0;
Resolution_Bpp=32;

Profile settings:
Code: [Select]
class Difficulties
{
class Recruit
{
class Flags
{
3rdPersonView=1;
Armor=1;
AutoAim=0;
AutoGuideAT=1;
AutoSpot=1;
CameraShake=1;
ClockIndicator=1;
DeathMessages=1;
EnemyTag=0;
FriendlyTag=1;
Hud=1;
HudGroupInfo=1;
HudPerm=1;
HudWp=1;
HudWpPerm=1;
Map=1;
NetStats=1;
Tracers=1;
UltraAI=0;
UnlimitedSaves=1;
VonID=1;
WeaponCursor=1;
MineTag=1;
ExtendetInfoType=1;
};
skillFriendly=0.64999998;
precisionFriendly=0.37;
skillEnemy=0.40000001;
precisionEnemy=0.1;
};
class Regular
{
class Flags
{
3rdPersonView=1;
armor=1;
autoAim=0;
autoGuideAT=1;
autoSpot=1;
cameraShake=1;
clockIndicator=1;
deathMessages=1;
enemyTag=0;
friendlyTag=0;
hud=1;
hudGroupInfo=1;
hudPerm=1;
hudWp=1;
hudWpPerm=1;
map=0;
netStats=1;
tracers=1;
ultraAI=0;
unlimitedSaves=1;
vonID=1;
weaponCursor=0;
ExtendetInfoType=0;
MineTag=0;
};
skillFriendly=0.75;
precisionFriendly=0.55000001;
skillEnemy=0.60000002;
precisionEnemy=0.28;
};
class Veteran
{
class Flags
{
3rdPersonView=1;
armor=0;
autoAim=0;
autoGuideAT=0;
autoSpot=0;
cameraShake=1;
clockIndicator=0;
deathMessages=1;
enemyTag=0;
friendlyTag=0;
hud=1;
hudGroupInfo=0;
hudPerm=0;
hudWp=1;
hudWpPerm=0;
map=0;
netStats=1;
tracers=0;
ultraAI=0;
unlimitedSaves=0;
vonID=1;
weaponCursor=1;
ExtendetInfoType=0;
MineTag=0;
};
skillFriendly=0.85000002;
precisionFriendly=0.73000002;
skillEnemy=0.85000002;
precisionEnemy=0.73000002;
};
class Mercenary
{
class Flags
{
3rdPersonView=0;
armor=0;
autoAim=0;
autoGuideAT=0;
autoSpot=0;
cameraShake=1;
clockIndicator=0;
deathMessages=0;
enemyTag=0;
friendlyTag=0;
hud=0;
hudGroupInfo=0;
hudPerm=0;
hudWp=0;
hudWpPerm=0;
map=0;
netStats=0;
tracers=0;
ultraAI=0;
unlimitedSaves=0;
vonID=0;
weaponCursor=0;
ExtendetInfoType=0;
MineTag=0;
};
skillFriendly=1;
precisionFriendly=1;
skillEnemy=0.85000002;
precisionEnemy=0.73000002;
};
};
difficulty="Regular";
singleVoice=0;
maxSamplesPlayed=96;
sceneComplexity=1000000;
shadowZDistance=100;
viewDistance=3200;
preferredObjectViewDistance=3300;
terrainGrid=25;
volumeCD=10;
volumeFX=10;
volumeSpeech=10;
volumeVoN=10;
vonRecThreshold=0.029999999;

Re: server.cfg optimal example

« Reply #2 posted: May 06, 2015, 08:38 PM »
LouD now that im checking your basic.cfg im noticing you have this

Quote
// MISC

MaxCustomFileSize = 524288;
language="English";
adapter=-1;
3D_Performance=1.000000;
Resolution_W=0;
Resolution_H=0;

Resolution_Bpp=32;

And i have this on mine:

Quote
language="English";
adapter=-1;
3D_Performance=8021.000000;
Resolution_W=160;
Resolution_H=120;

Resolution_Bpp=32;


And when my server crashs i have this:


Quote
=======================================================
-------------------------------------------------------
Exception code: C0000005 ACCESS_VIOLATION at 00516146
graphics:  No
resolution:  160x120x32

...
...
Mods: dlcbundle
Extensions:
  extDB2 (.\extDB2.dll) [] []
Distribution: 0
Version 1.44.130654
Fault time: 2015/05/06 01:47:15
Fault address:  020F6A9C 01:00DE5A9C C:\TCAFiles\Users\***\***\arma3server.exe
file:     A51Wasteland_v1.6 (__cur_mp)
world:    Stratis
Prev. code bytes: 8B 44 8E F4 89 44 8F F4 8B 44 8E F8 89 44 8F F8
Fault code bytes: 8B 44 8E FC 89 44 8F FC 8D 04 8D 00 00 00 00 03

Registers:
EAX:00000004 EBX:00000000
ECX:00000001 EDX:00000000
ESI:00000000 EDI:009EB638
CS:EIP:0023:020F6A9C
SS:ESP:002B:009EB5E8  EBP:00000001
DS:002B  ES:002B  FS:0053  GS:002B
Flags:00010297

Could it be the reason for the crashes ? Wait to good to be true that i finally found the reason but ill try that immediately!

Do you maintain the basic.cfg separated from the server.cfg ? I have mine inside the server.cfg hum

Re: server.cfg optimal example

« Reply #3 posted: May 28, 2015, 04:51 AM »
The basic.cfg file, does it apply to rented servers? I searched everywhere and cant find the file on ours.

Re: server.cfg optimal example

« Reply #4 posted: May 28, 2015, 05:02 AM »
basic.cfg is included on the end of the server.cfg i think you dont need to have 2 separate files look at mine
  • Offline LouD
  • Silent but deadly ;)
  • Moderator
  • Veteran
  • ******
  • Posts: 1415

Re: server.cfg optimal example

« Reply #5 posted: May 28, 2015, 03:31 PM »
basic.cfg is included on the end of the server.cfg i think you dont need to have 2 separate files look at mine
Afaik you definatly need two different files.

https://community.bistudio.com/wiki/Arma_3_Startup_Parameters states:
Code: [Select]
-cfg=<filename> Selects the Server Basic Config file. Config file for server specific settings like network performance tuning.
-config=<filename> Selects the Server Config File. Config file for server specific settings like admin password and mission selection.

Re: server.cfg optimal example

« Reply #6 posted: May 28, 2015, 05:50 PM »
wait what ? really ? .... oh god im using basic inside server.cfg since the early days because the game provider where i host my game when you reinstall the server the system automatically creates a server.cfg with everything inside lol

i bet the basic config then its not even optimized to their machines ... how can i even configure it without knowing a shit about their machine lol