Arma Reforger
gamesExperience authentic Cold War combat and join friends in the struggle for a sprawling, 51 km² mid-Atlantic island — or take on the role of Game Master and create your very own scenarios for others to enjoy.
README
Arma Reforger
Server version currently marked as early access by the Arma developers! Check back often for egg updates as more features are added to the server software.
Authors / Contributors
Game Description
From Bohemia Interactive's Website:
Experience authentic Cold War combat and join friends in the struggle for a sprawling, 51 km² mid-Atlantic island — or take on the role of Game Master and create your very own scenarios for others to enjoy.
Egg Capabilities
- Configurable to automatically check for server updates on start via SteamCMD. Forcing validation is also configurable.
- Able to download and load Arma Reforger Workshop mods on startup (requires manual editing of the
config.jsonfile). - Configuration of multiple common settings in the
config.jsonfile via Startup Parameters:- Server Name, Passwords, Scenario ID, Disable Third Person, Max FPS, and more...
- Max Players is configurable and able to be host enforced (*see Recommended Egg Modifications).
- WHMCS compatible.
Server Ports
| Port | Default | Protocol | Required | Notes |
|---|---|---|---|---|
| Game | 2001 | UDP | Yes | Primary port in Panel |
| A2S | 17777 | UDP | No | Steam Query / Requires additional configuration in config.json |
| RCON | 19999 | UDP | No | Requires additional configuration in config.json |
Installation/System Requirements
| Bare Minimum | Recommended | |
|---|---|---|
| Processor | Recent x86/64 (AMD/Intel) processor. No ARM support. | Can use up to 300-600% CPU under load with uncapped FPS (set Max FPS to prevent). |
| RAM | 3328 MiB | 6144-8192 MiB |
| Storage | 5 GB | 7-10 GB (or more, depending on number of mods downloaded) |
| Network | If node is behind a NAT, will require Egg Modification (*see Define Host Registered Bind Address | Wings Node is not behind a NAT |
| Game Ownership | Not required to start or download mods. | ---- |
How to Add Mods
Currently, adding mods to your server is tricky because there is very little documentation and it is difficult to find mod IDs. Hopefully this will change in the future, but following these steps will get it to work:
- Open up a client copy of Arma Reforger and subscribe/download any mods you want to add to the server (at this time, I do not know of a way to find mod IDs without requiring use of the game).
- Once done, close the game and navigate to this folder on your computer:
My Documents\My Games\ArmaReforger\addons\ - Aimlessly open each folder to find which mods you want to add and open each of their
ServerData.jsonfiles in a text editor. - Then, on your server panel, open the
config.jsonfile for editing. - Find
"mods": []and replace it with the following:
"mods": [
{
"modId": "591AF5BDA9F7CE8B",
"name": "Capture & Hold",
"version": "1.0.0"
},
{
"modId": "9A51598BACFBFDE7",
"name": "Explosive Goats Beta",
"version": "0.5.42"
}
]
- Change
modIdto equal theidvalue found at the top of theServerData.jsonfile you found. - Change
nameto equal thenamevalue found at the top of theServerData.jsonfile you found. - Change
versionto equal theversionvalue found at the top of theServerData.jsonfile you found. - Repeat for each mod you want to add by copy/pasting the
{}sections like shown above. Make sure each{}section has a,after it, except for the last item.
The server will automatically download and run the mods you specify on startup. For mods that add scenarios, you can find the Scenario IDs listed as gameId in the ServerData.json file. Lastly, if a mod updates, you will likely have to change the version value to match it's new version. You may also have to delete the mod folder in the addons/ directory to have it re-download (reports on this have been mixed).
Recommended Egg Modifications
The following are highly recommended variable modifications you can make to the egg after importing it to your panel.
Define Host Registered Bind Address
Due to a current behavior of the Panel, SERVER_IP will not return the node's public IP address if it is behind a NAT; it will return its private IP address. Unfortunately at this time, Arma Reforger requires the server's public IP address to be strictly defined within config.json. If you know your node is behind a NAT (or you are finding your node's private IP address being added to config.json), you will need to edit this egg after importing it by following these steps:
- As a panel admin, find and open the egg within your Nests tab.
- On the first tab "Configuration", find the "Configuration Files" box under the "Process Management" section.
- Carefully (as to not touch anything else), find
{{server.build.default.ip}}and replace it with your node's public IP address. If done correctly, the line should now look something like this:
"publicAddress": "123.4.56.789",
Restrict Max Players
If you would like to restrict the maximum number of players that can join your client's server, you can change the permissions of the "Max Players" variable so that clients can only view this value (and not edit it). It's default value can also be changed, or the value can be changed on a server-by-server basis as desired.
Docker Images (1)
| Name | Image |
|---|---|
ghcr.io/ptero-eggs/steamcmd:debian | ghcr.io/ptero-eggs/steamcmd:debian |
Startup Command
sed -i 's/"true"/true/g; s/"false"/false/g' config.json; ./ArmaReforgerServer -gproj ./addons/data/ArmaReforger.gproj -config ./config.json -profile ./profile -backendlog -nothrow -listScenarios -logStats $(({{LOG_INTERVAL}}*1000)) -maxFPS {{MAX_FPS}} -addonTempDir ./tmp Variables (15)
Automatic Updates
Quickly checks for any server or mod updates on startup, and updates if necessary.
- Environment:
AUTO_UPDATE- Default:
1- User Viewable:
- ❌
- User Editable:
- ❌
- Rules:
boolean
Server Region
Region listed in the server browser. ISO 3166-1 alpha-2 codes can be used in this field.
- Environment:
REGION- Default:
US- User Viewable:
- ❌
- User Editable:
- ❌
- Rules:
required|string|in:AD,AE,AF,AG,AI,AL,AM,AO,AQ,AR,AS,AT,AU,AW,AX,AZ,BA,BB,BD,BE,BF,BG,BH,BI,BJ,BL,BM,BN,BO,BQ,BR,BS,BT,BV,BW,BY,BZ,CA,CC,CD,CF,CG,CH,CI,CK,CL,CM,CN,CO,CR,CU,CV,CW,CX,CY,CZ,DE,DJ,DK,DM,DO,DZ,EC,EE,EG,EH,ER,ES,ET,EU,FI,FJ,FK,FM,FO,FR,GA,GB,GD,GE,GF,GG,GH,GI,GL,GM,GN,GP,GQ,GR,GS,GT,GU,GW,GY,HK,HM,HN,HR,HT,HU,ID,IE,IL,IM,IN,IO,IQ,IR,IS,IT,JE,JM,JO,JP,KE,KG,KH,KI,KM,KN,KP,KR,KW,KY,KZ,LA,LB,LC,LI,LK,LR,LS,LT,LU,LV,LY,MA,MC,MD,ME,MF,MG,MH,MK,ML,MM,MN,MO,MP,MQ,MR,MS,MT,MU,MV,MW,MX,MY,MZ,NA,NC,NE,NF,NG,NI,NL,NO,NP,NR,NU,NZ,OM,PA,PE,PF,PG,PH,PK,PL,PM,PN,PR,PS,PT,PW,PY,QA,RE,RO,RS,RU,RW,SA,SB,SC,SD,SE,SG,SH,SI,SJ,SK,SL,SM,SN,SO,SR,SS,ST,SV,SX,SY,SZ,TC,TD,TF,TG,TH,TJ,TK,TL,TM,TN,TO,TR,TT,TV,TW,TZ,UA,UG,UM,US,UY,UZ,VA,VC,VE,VG,VI,VN,VU,WF,WS,YE,YT,ZA,ZM,ZW
Server Name
Name displayed in the server browser.
- Environment:
SERVER_NAME- Default:
Arma Reforger Server- User Viewable:
- ❌
- User Editable:
- ❌
- Rules:
required|string|max:255
Max Players
Maximum number of players allowed to join the server.
- Environment:
MAX_PLAYERS- Default:
32- User Viewable:
- ❌
- User Editable:
- ❌
- Rules:
required|integer|between:1,256
Server Password
Password required for clients to enter before they can join the server. Leave empty to have no password.
- Environment:
SERVER_PASS- Default:
None- User Viewable:
- ❌
- User Editable:
- ❌
- Rules:
nullable|string|max:32
Admin Password
- Environment:
ADMIN_PASS- Default:
None- User Viewable:
- ❌
- User Editable:
- ❌
- Rules:
nullable|string|max:32
Scenario ID
ID of scenario to run/play. Valid IDs can be viewed in the console upon startup of the server.
- Environment:
SCENARIO_ID- Default:
{ECC61978EDCC2B5A}Missions/23_Campaign.conf- User Viewable:
- ❌
- User Editable:
- ❌
- Rules:
required|string
Auto Joinable
Set if the session can be selected through the auto join feature.
- Environment:
AUTO_JOINABLE- Default:
true- User Viewable:
- ❌
- User Editable:
- ❌
- Rules:
required|string|in:true,false
Visible in Server Browser
Set the visibility of the server in the Server Browser.
- Environment:
VISIBLE- Default:
true- User Viewable:
- ❌
- User Editable:
- ❌
- Rules:
required|string|in:true,false
Enable BattlEye
Enables the anti-cheat engine on the server and requires all clients to be running it.
- Environment:
BATTLEYE- Default:
true- User Viewable:
- ❌
- User Editable:
- ❌
- Rules:
required|string|in:true,false
Disable Third Person
- Environment:
DISABLE_THIRD- Default:
false- User Viewable:
- ❌
- User Editable:
- ❌
- Rules:
required|string|in:true,false
[Advanced] Max FPS
Sets a maximum FPS limit for the server, saving performance in some cases. Leave empty for no limit.
- Environment:
MAX_FPS- Default:
120- User Viewable:
- ❌
- User Editable:
- ❌
- Rules:
nullable|integer|gt:0
[Advanced] Log FPS Interval
How often (in seconds) to log the FPS and other debug stats to the console. Set to 0 to disable.
- Environment:
LOG_INTERVAL- Default:
0- User Viewable:
- ❌
- User Editable:
- ❌
- Rules:
required|integer|min:0
[Repair] Validate Server Files
"true" to enable; empty to disable. Validates all server files when Automatic Updates is enabled. Note: This will significantly increase server startup times, so it is recommended to only enable this when needed.
- Environment:
VALIDATE- Default:
None- User Viewable:
- ❌
- User Editable:
- ❌
- Rules:
nullable|string
[Advanced] Arma Reforger Dedicated Server App ID
Used for installation and updates. Rarely needs to be changed.
- Environment:
SRCDS_APPID- Default:
1874900- User Viewable:
- ❌
- User Editable:
- ❌
- Rules:
required|integer
Installation Script
ghcr.io/ptero-eggs/installers:debian/bin/bash#!/bin/bash
## File: Pterodactyl Arma Reforger Egg - egg-pterodactyl-arma-reforger.json
## Author: David Wolfe (Red-Thirten)
## Date: 2024/07/03
## License: MIT License
## Image to install with is 'ghcr.io/ptero-eggs/installers:debian'
## Download and install SteamCMD
export HOME=/mnt/server
cd /tmp
mkdir -p $HOME/steamcmd $HOME/steamapps
curl -sSL -o steamcmd.tar.gz https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
tar -xzvf steamcmd.tar.gz -C $HOME/steamcmd
cd $HOME/steamcmd
# SteamCMD fails otherwise for some reason, even running as root.
chown -R root:root /mnt
# Install/Verify game server using SteamCMD
./steamcmd.sh +force_install_dir $HOME +login anonymous $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} +app_update 1007 $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) validate +quit
# Set up 32 and 64 bit libraries
mkdir -p /mnt/server/.steam/sdk{32,64}
cp -v linux32/steamclient.so /mnt/server/.steam/sdk32/steamclient.so
cp -v linux64/steamclient.so /mnt/server/.steam/sdk64/steamclient.so
## Arma Reforger setup
# Check for successful installation
if [[ ! -f $HOME/ArmaReforgerServer ]]; then
echo -e "\n\nSteamCMD failed to install the Arma Reforger Dedicated Server!"
echo -e "\tTry reinstalling the server again.\n"
exit 1
fi
mkdir -p $HOME/profile $HOME/tmp
echo -e 'Creating default "config.json" configuration file...'
cat > $HOME/config.json << EOF
{
"bindAddress": "0.0.0.0",
"bindPort": ${SERVER_PORT},
"publicAddress": "${SERVER_IP}",
"publicPort": ${SERVER_PORT},
"game": {
"name": "${SERVER_NAME}",
"password": "${SERVER_PASS}",
"passwordAdmin": "${ADMIN_PASS}",
"admins" : [],
"scenarioId": "${SCENARIO_ID}",
"maxPlayers": ${MAX_PLAYERS},
"visible": ${VISIBLE},
"gameProperties": {
"serverMaxViewDistance": 2500,
"serverMinGrassDistance": 50,
"networkViewDistance": 1000,
"disableThirdPerson": ${DISABLE_THIRD},
"fastValidation": true,
"battlEye": ${BATTLEYE},
"VONDisableUI": false,
"VONDisableDirectSpeechUI": false
},
"mods": []
}
}
EOF
echo -e "\nArma Reforger Dedicated Server successfully installed!\n"