Server config - Mission header
A very interesting parameter allows the mod and scenario to be modified directly from your configuration file.
This feature is used, for example, by the ACE Medical mod, which lets you configure certain ACE parameters for your server.
It is also used by vanilla servers to configure a scenario without publishing a separate mod.
The problem is that it is poorly explained https://community.bistudio.com/wiki/Arma_Reforger:Server_Config
A typical server config can look like this:
{
"bindAddress": "0.0.0.0",
"bindPort": 2001,
"publicAddress": "192.168.9.10",
"publicPort": 2001,
"a2s": {
"address": "192.168.9.10",
"port": 17777
},
"rcon": {
"address": "192.168.9.10",
"port": 19999,
"password": "changeme_withoutspaces",
"permission": "monitor",
"blacklist": [],
"whitelist": []
},
"game": {
"name": "Server Name - Mission Name",
"password": "",
"passwordAdmin": "changeme",
"admins" : [
"76561198200329058"
],
"scenarioId": "{ECC61978EDCC2B5A}Missions/23_Campaign.conf",
"maxPlayers": 32,
"visible": true,
"crossPlatform": true,
"supportedPlatforms": [
"PLATFORM_PC",
"PLATFORM_XBL"
],
"gameProperties": {
"serverMaxViewDistance": 2500,
"serverMinGrassDistance": 50,
"networkViewDistance": 1000,
"disableThirdPerson": true,
"fastValidation": true,
"battlEye": true,
"VONDisableUI": true,
"VONDisableDirectSpeechUI": true,
"missionHeader": {
"m_iPlayerCount": 40,
"m_eEditableGameFlags": 6,
"m_eDefaultGameFlags": 6,
"other": "values"
}
},
"mods": [
{
"modId": "59727DAE364DEADB",
"name": "WeaponSwitching",
"version": "1.0.1"
},
{
"modId": "59727DAE32981C7D",
"name": "Explosive Goats beta",
"version": "0.5.42"
}
]
},
"operating": {
"lobbyPlayerSynchronise": true,
"joinQueue" : {
"maxSize" : 12
},
"disableNavmeshStreaming": [
"Soldiers",
"BTRlike"
]
}
}
The part mission header is the part to use to customise these parameters.
Here is the list of values you can set in your Mission Header along with their meaning:
General Mission Information:
- m_sName (string) - The name of the mission.
- m_sAuthor (string) - The author of the mission.
- m_sPath (string) - The file path to the mission.
- m_sDescription (string) - A brief description of the mission.
- m_sDetails (string) - A detailed description, including rules and objectives.
Appearance and UI:
- m_sIcon (ResourceName) - The icon displayed in menus.
- m_sLoadingScreen (ResourceName) - The image displayed when the mission is loading.
- m_sPreviewImage (ResourceName) - The preview image of the mission.
Game Settings:
- m_sGameMode (string) - The game mode used (e.g., "Sandbox", "CTF", "Survival").
- m_iPlayerCount (int) - The number of players supported in the mission.
- m_eEditableGameFlags (EGameFlags) - Game flags that can be modified by the player.
- m_eDefaultGameFlags (EGameFlags) - Default game flags.
Save and Configuration Settings:
- m_bIsSavingEnabled (bool) - Enables or disables mission state saving.
- m_sSaveFileName (string) - The name of the save file (if empty, the associated world file name is used).
- m_sBriefingConfig (ResourceName) - Path to the briefing configuration file.
Time and Weather Management:
- m_bOverrideScenarioTimeAndWeather (bool) - If enabled, the scenario's time and weather will be overridden by the values below.
- m_iStartingHours (int) - The starting hour of the mission (0-23).
- m_iStartingMinutes (int) - The starting minutes of the mission (0-59).
- m_bRandomStartingDaytime (bool) - If enabled, the starting time will be randomized.
- m_fDayTimeAcceleration (float) - Time acceleration during the day (1 = normal speed, 2 = twice as fast, etc.).
- m_fNightTimeAcceleration (float) - Time acceleration during the night.
- m_bRandomStartingWeather (bool) - If enabled, the starting weather will be randomized.
- m_bRandomWeatherChanges (bool) - If enabled, weather will dynamically change during gameplay.
XP and Interaction Settings:
- m_fXpMultiplier (float) - Experience multiplier (1 = normal, 2 = double XP, etc.).
- m_bMapMarkerEnableDeleteByAnyone (bool) - If enabled, any player within the faction can delete map markers.
- m_iMapMarkerLimitPerPlayer (int) - Maximum number of map markers a player can place at a time.
Other Settings:
- m_bLoadOnStart (bool) - Determines whether the mission loads at startup.
- m_sOwner (string) - The owner of the mission.
Additional Notes:
- Multiplayer: A mission is considered multiplayer if
m_iPlayerCount > 1. - Save File Name: If
m_sSaveFileNameis empty, it will be automatically generated based on the world file name.
You can adjust these values based on the type of mission you are creating to enhance the player experience. 🚀