|
1
|
|
{
|
|
2
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
|
3
|
|
"meta": {
|
|
展开 158 行未改动
|
|
4
|
|
"version": "PTDL_v2",
|
|
5
|
|
"update_url": "https://eggs.pterodactyl.top/eggs/23/download/egg-arma-reforger.json"
|
|
6
|
|
},
|
|
7
|
|
"exported_at": "2025-08-22T11:47:36+00:00",
|
|
8
|
|
"name": "Arma Reforger",
|
|
9
|
|
"author": "red_thirten@yahoo.com",
|
|
10
|
|
"description": "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.",
|
|
11
|
|
"features": [
|
|
12
|
|
"steam_disk_space"
|
|
13
|
|
],
|
|
14
|
|
"docker_images": {
|
|
15
|
|
"registry.cn-shanghai.aliyuncs.com/pterodactyl-images/steamcmd:debian": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/steamcmd:debian"
|
|
16
|
|
},
|
|
17
|
|
"file_denylist": [],
|
|
18
|
|
"startup": "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",
|
|
19
|
|
"config": {
|
|
20
|
|
"files": "{\n \"config.json\": {\n \"parser\": \"json\",\n \"find\": {\n \"bindAddress\": \"0.0.0.0\",\n \"bindPort\": \"{{server.build.default.port}}\",\n \"publicAddress\": \"{{server.build.default.ip}}\",\n \"publicPort\": \"{{server.build.default.port}}\",\n \"game.name\": \"{{server.build.env.SERVER_NAME}}\",\n \"game.password\": \"{{server.build.env.SERVER_PASS}}\",\n \"game.passwordAdmin\": \"{{server.build.env.ADMIN_PASS}}\",\n \"game.scenarioId\": \"{{server.build.env.SCENARIO_ID}}\",\n \"game.maxPlayers\": \"{{server.build.env.MAX_PLAYERS}}\",\n \"game.visible\": \"{{server.build.env.VISIBLE}}\",\n \"game.gameProperties.disableThirdPerson\": \"{{server.build.env.DISABLE_THIRD}}\",\n \"game.gameProperties.fastValidation\": true,\n \"game.gameProperties.battlEye\": \"{{server.build.env.BATTLEYE}}\"\n }\n }\n}",
|
|
21
|
|
"startup": "{\n \"done\": \"Starting RPL server\"\n}",
|
|
22
|
|
"logs": "{}",
|
|
23
|
|
"stop": "^C"
|
|
24
|
|
},
|
|
25
|
|
"scripts": {
|
|
26
|
|
"installation": {
|
|
27
|
|
"script": "#!/bin/bash\r\n\r\n## File: Pelican Arma Reforger Egg - egg-arma-reforger.json\r\n## Author: David Wolfe (Red-Thirten)\r\n## Date: 2024/11/28\r\n## License: MIT License\r\n## Image to install with is 'registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian'\r\n\r\n## Download and install SteamCMD\r\nexport HOME=/mnt/server\r\ncd /tmp\r\nmkdir -p $HOME/steamcmd $HOME/steamapps\r\ncurl -sSL -o steamcmd.tar.gz https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz\r\ntar -xzvf steamcmd.tar.gz -C $HOME/steamcmd\r\ncd $HOME/steamcmd\r\n\r\n# Workaround for experimental\r\nif [[ \"${SRCDS_APPID}\" == \"1890870\" ]]; then\r\n WINDOWS_INSTALL=\"1\"\r\nfi\r\n\r\n# SteamCMD fails otherwise for some reason, even running as root.\r\nchown -R root:root /mnt\r\n\r\n# Install/Verify game server using SteamCMD\r\n./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\r\n\r\n# Set up 32 and 64 bit libraries\r\nmkdir -p /mnt/server/.steam/sdk{32,64}\r\ncp -v linux32/steamclient.so /mnt/server/.steam/sdk32/steamclient.so\r\ncp -v linux64/steamclient.so /mnt/server/.steam/sdk64/steamclient.so\r\n\r\n## Arma Reforger setup\r\n# Check for successful installation\r\nif [[ ! -f \"$HOME/ArmaReforgerServer\" && ! -f \"$HOME/ArmaReforgerServer.exe\" ]]; then\r\n echo -e \"\\n\\nSteamCMD failed to install the Arma Reforger Dedicated Server!\"\r\n echo -e \"\\tTry reinstalling the server again.\\n\"\r\n exit 1\r\nfi\r\n\r\nmkdir -p $HOME/profile $HOME/tmp\r\n\r\necho -e 'Creating default \"config.json\" configuration file...'\r\ncat > $HOME/config.json << EOF\r\n{\r\n\t\"bindAddress\": \"0.0.0.0\",\r\n\t\"bindPort\": ${SERVER_PORT},\r\n\t\"publicAddress\": \"${SERVER_IP}\",\r\n\t\"publicPort\": ${SERVER_PORT},\r\n\t\"game\": {\r\n\t\t\"name\": \"${SERVER_NAME}\",\r\n\t\t\"password\": \"${SERVER_PASS}\",\r\n\t\t\"passwordAdmin\": \"${ADMIN_PASS}\",\r\n\t\t\"admins\" : [],\r\n\t\t\"scenarioId\": \"${SCENARIO_ID}\",\r\n\t\t\"maxPlayers\": ${MAX_PLAYERS},\r\n\t\t\"visible\": ${VISIBLE},\r\n\t\t\"gameProperties\": {\r\n\t\t\t\"serverMaxViewDistance\": 1600,\r\n\t\t\t\"serverMinGrassDistance\": 50,\r\n\t\t\t\"networkViewDistance\": 1500,\r\n\t\t\t\"disableThirdPerson\": ${DISABLE_THIRD},\r\n\t\t\t\"fastValidation\": true,\r\n\t\t\t\"battlEye\": ${BATTLEYE},\r\n\t\t\t\"VONDisableUI\": false,\r\n\t\t\t\"VONDisableDirectSpeechUI\": false\r\n\t\t},\r\n\t\t\"mods\": []\r\n\t}\r\n}\r\nEOF\r\n\r\necho -e \"\\nArma Reforger Dedicated Server successfully installed!\\n\"",
|
|
28
|
|
"container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
|
|
29
|
|
"entrypoint": "/bin/bash"
|
|
30
|
|
}
|
|
31
|
|
},
|
|
32
|
|
"variables": [
|
|
33
|
|
{
|
|
34
|
|
"name": "Admin Password",
|
|
35
|
|
"description": "",
|
|
36
|
|
"env_variable": "ADMIN_PASS",
|
|
37
|
|
"default_value": "",
|
|
38
|
|
"user_viewable": true,
|
|
39
|
|
"user_editable": true,
|
|
40
|
|
"rules": "nullable|string|max:32",
|
|
41
|
|
"field_type": "text"
|
|
42
|
|
},
|
|
43
|
|
{
|
|
44
|
|
"name": "Automatic Updates",
|
|
45
|
|
"description": "Quickly checks for any server or mod updates on startup, and updates if necessary.",
|
|
46
|
|
"env_variable": "AUTO_UPDATE",
|
|
47
|
|
"default_value": "1",
|
|
48
|
|
"user_viewable": true,
|
|
49
|
|
"user_editable": true,
|
|
50
|
|
"rules": "boolean",
|
|
51
|
|
"field_type": "text"
|
|
52
|
|
},
|
|
53
|
|
{
|
|
54
|
|
"name": "Disable Third Person",
|
|
55
|
|
"description": "",
|
|
56
|
|
"env_variable": "DISABLE_THIRD",
|
|
57
|
|
"default_value": "false",
|
|
58
|
|
"user_viewable": true,
|
|
59
|
|
"user_editable": true,
|
|
60
|
|
"rules": "required|string|in:true,false",
|
|
61
|
|
"field_type": "text"
|
|
62
|
|
},
|
|
63
|
|
{
|
|
64
|
|
"name": "Enable BattlEye",
|
|
65
|
|
"description": "Enables the anti-cheat engine on the server and requires all clients to be running it.",
|
|
66
|
|
"env_variable": "BATTLEYE",
|
|
67
|
|
"default_value": "true",
|
|
68
|
|
"user_viewable": true,
|
|
69
|
|
"user_editable": true,
|
|
70
|
|
"rules": "required|string|in:true,false",
|
|
71
|
|
"field_type": "text"
|
|
72
|
|
},
|
|
73
|
|
{
|
|
74
|
|
"name": "Max Players",
|
|
75
|
|
"description": "Maximum number of players allowed to join the server.",
|
|
76
|
|
"env_variable": "MAX_PLAYERS",
|
|
77
|
|
"default_value": "32",
|
|
78
|
|
"user_viewable": true,
|
|
79
|
|
"user_editable": true,
|
|
80
|
|
"rules": "required|integer|between:1,256",
|
|
81
|
|
"field_type": "text"
|
|
82
|
|
},
|
|
83
|
|
{
|
|
84
|
|
"name": "Scenario ID",
|
|
85
|
|
"description": "ID of scenario to run/play. Valid IDs can be viewed in the console upon startup of the server.",
|
|
86
|
|
"env_variable": "SCENARIO_ID",
|
|
87
|
|
"default_value": "{ECC61978EDCC2B5A}Missions/23_Campaign.conf",
|
|
88
|
|
"user_viewable": true,
|
|
89
|
|
"user_editable": true,
|
|
90
|
|
"rules": "required|string",
|
|
91
|
|
"field_type": "text"
|
|
92
|
|
},
|
|
93
|
|
{
|
|
94
|
|
"name": "Server Name",
|
|
95
|
|
"description": "Name displayed in the server browser.",
|
|
96
|
|
"env_variable": "SERVER_NAME",
|
|
97
|
|
"default_value": "Arma Reforger Server",
|
|
98
|
|
"user_viewable": true,
|
|
99
|
|
"user_editable": true,
|
|
100
|
|
"rules": "required|string|max:255",
|
|
101
|
|
"field_type": "text"
|
|
102
|
|
},
|
|
103
|
|
{
|
|
104
|
|
"name": "Server Password",
|
|
105
|
|
"description": "Password required for clients to enter before they can join the server. Leave empty to have no password.",
|
|
106
|
|
"env_variable": "SERVER_PASS",
|
|
107
|
|
"default_value": "",
|
|
108
|
|
"user_viewable": true,
|
|
109
|
|
"user_editable": true,
|
|
110
|
|
"rules": "nullable|string|max:32",
|
|
111
|
|
"field_type": "text"
|
|
112
|
|
},
|
|
113
|
|
{
|
|
114
|
|
"name": "Visible in Server Browser",
|
|
115
|
|
"description": "Set the visibility of the server in the Server Browser.",
|
|
116
|
|
"env_variable": "VISIBLE",
|
|
117
|
|
"default_value": "true",
|
|
118
|
|
"user_viewable": true,
|
|
119
|
|
"user_editable": true,
|
|
120
|
|
"rules": "required|string|in:true,false",
|
|
121
|
|
"field_type": "text"
|
|
122
|
|
},
|
|
123
|
|
{
|
|
124
|
|
"name": "[Advanced] Arma Reforger Dedicated Server App ID",
|
|
125
|
|
"description": "Used for installation and updates. Rarely needs to be changed.",
|
|
126
|
|
"env_variable": "SRCDS_APPID",
|
|
127
|
|
"default_value": "1874900",
|
|
128
|
|
"user_viewable": false,
|
|
129
|
|
"user_editable": false,
|
|
130
|
|
"rules": "required|integer",
|
|
131
|
|
"field_type": "text"
|
|
132
|
|
},
|
|
133
|
|
{
|
|
134
|
|
"name": "[Advanced] Log FPS Interval",
|
|
135
|
|
"description": "How often (in seconds) to log the FPS and other debug stats to the console. Set to 0 to disable.",
|
|
136
|
|
"env_variable": "LOG_INTERVAL",
|
|
137
|
|
"default_value": "0",
|
|
138
|
|
"user_viewable": true,
|
|
139
|
|
"user_editable": true,
|
|
140
|
|
"rules": "required|integer|min:0",
|
|
141
|
|
"field_type": "text"
|
|
142
|
|
},
|
|
143
|
|
{
|
|
144
|
|
"name": "[Advanced] Max FPS",
|
|
145
|
|
"description": "Sets a maximum FPS limit for the server, saving performance in some cases. Leave empty for no limit.",
|
|
146
|
|
"env_variable": "MAX_FPS",
|
|
147
|
|
"default_value": "120",
|
|
148
|
|
"user_viewable": true,
|
|
149
|
|
"user_editable": true,
|
|
150
|
|
"rules": "nullable|integer|gt:0",
|
|
151
|
|
"field_type": "text"
|
|
152
|
|
},
|
|
153
|
|
{
|
|
154
|
|
"name": "[Repair] Validate Server Files",
|
|
155
|
|
"description": "\"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.",
|
|
156
|
|
"env_variable": "VALIDATE",
|
|
157
|
|
"default_value": "",
|
|
158
|
|
"user_viewable": true,
|
|
159
|
|
"user_editable": true,
|
|
160
|
|
"rules": "nullable|string",
|
|
161
|
|
"field_type": "text"
|
|
162
|
|
}
|
|
163
|
|
]
|
|
164
|
|
}
|