mirror of
https://github.com/parkervcp/eggs.git
synced 2024-11-30 19:22:53 +08:00
65645401e5
- Updated to latest Pterodactyl egg format - Made startup command a little more robust, and added a server binary variable to allow for the choice of 32-bit, 64-bit, and profiling binaries to be run within the same egg (as opposed to a bunch of separate eggs). - Install script was adjusted slightly: No longer does missing username check, because "anonymous" user cannot be used to download Arma 3. Also adds 64-bit libraries. Lastly, allows for extra steam flags to be passed to allow beta builds to be downloaded. -- Variables -- - Changed game ID to be numeric only. Also hidden from end-user for cleanliness. - Added more verbose descriptions for Steam username and password fields to make it more clear what is required, and what is visible to the end-user. - Added server binary field to allow flexibility. - Removed Steam Auth Code field because it isn't really practical. - Cleaned up Connect IP, Connect Password, Mods, and ServerMods fields. - Added server update and mods download/update fields. - Added "Set Mods to Lowercase" field incase the user manually uploads a mod, which likely has uppercase files/folders. The Linux Arma 3 server does not like to load any files/folders with uppercase characters.
150 lines
7.7 KiB
JSON
150 lines
7.7 KiB
JSON
{
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
|
"meta": {
|
|
"version": "PTDL_v1",
|
|
"update_url": null
|
|
},
|
|
"exported_at": "2021-01-26T21:54:10+00:00",
|
|
"name": "Arma 3 Headless Client",
|
|
"author": "rehlmgaming@gmail.com",
|
|
"description": "Headless Clients are used to offload AI calculations from the Arma 3 Server.",
|
|
"features": null,
|
|
"images": [
|
|
"quay.io\/parkervcp\/pterodactyl-images:game_arma3"
|
|
],
|
|
"file_denylist": "",
|
|
"startup": ".\/{{SERVER_BINARY}} -client -connect={{CONNECT_IP}} -port={{CONNECT_PORT}} -password=\"{{CONNECT_PASSWORD}}\" -profiles=.\/serverprofile -bepath=.\/battleye {{STARTUP_PARAMS}} -mod=\"{{MODS}}\"",
|
|
"config": {
|
|
"files": "{}",
|
|
"startup": "{\r\n \"done\": \"Client connected\",\r\n \"userInteraction\": []\r\n}",
|
|
"logs": "{\r\n \"custom\": true,\r\n \"location\": \"latest.log\"\r\n}",
|
|
"stop": "^C"
|
|
},
|
|
"scripts": {
|
|
"installation": {
|
|
"script": "#!\/bin\/bash\r\napt -y update\r\napt -y --no-install-recommends install curl lib32gcc1 ca-certificates\r\n\r\n## download and install steamcmd\r\ncd \/tmp\r\nmkdir -p \/mnt\/server\/steamcmd\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 \/mnt\/server\/steamcmd\r\ncd \/mnt\/server\/steamcmd\r\n\r\n# SteamCMD fails otherwise for some reason, even running as root.\r\n# This is changed at the end of the install process anyways.\r\nchown -R root:root \/mnt\r\nexport HOME=\/mnt\/server\r\n\r\n## install game using steamcmd\r\n.\/steamcmd.sh +login ${STEAM_USER} ${STEAM_PASS} +force_install_dir \/mnt\/server +app_update ${STEAMCMD_APPID} ${STEAMCMD_EXTRA_FLAGS} validate +quit\r\n\r\n## set up 32 bit libraries\r\nmkdir -p \/mnt\/server\/.steam\/sdk32\r\ncp -v linux32\/steamclient.so ..\/.steam\/sdk32\/steamclient.so\r\n\r\n## set up 64 bit libraries\r\nmkdir -p \/mnt\/server\/.steam\/sdk64\r\ncp -v linux64\/steamclient.so ..\/.steam\/sdk64\/steamclient.so\r\n\r\n## ARMA III specific setup\r\ncd \/mnt\/server\/\r\n\r\nmkdir -p \"\/mnt\/server\/.local\/share\/Arma 3\" \"\/mnt\/server\/.local\/share\/Arma 3 - Other Profiles\"",
|
|
"container": "debian:buster-slim",
|
|
"entrypoint": "bash"
|
|
}
|
|
},
|
|
"variables": [
|
|
{
|
|
"name": "Arma 3 Dedicated Server App ID",
|
|
"description": "Used for installation and updates.",
|
|
"env_variable": "STEAMCMD_APPID",
|
|
"default_value": "233780",
|
|
"user_viewable": false,
|
|
"user_editable": false,
|
|
"rules": "required|numeric"
|
|
},
|
|
{
|
|
"name": "Steam Username",
|
|
"description": "Used for installation and updates. Account does not need to own Arma 3, but must be a valid Steam account (anonymous login cannot be used). For security reasons it is recommended that you create a new Steam account just for your dedicated servers. *This info is not visible to the server owner.*",
|
|
"env_variable": "STEAM_USER",
|
|
"default_value": "your_steam_username",
|
|
"user_viewable": false,
|
|
"user_editable": false,
|
|
"rules": "required|string"
|
|
},
|
|
{
|
|
"name": "Steam Password",
|
|
"description": "Used for installation and updates. Steam Guard must be TURNED OFF for install to complete successfully. *This info is not visible to the server owner.*",
|
|
"env_variable": "STEAM_PASS",
|
|
"default_value": "your_steam_password",
|
|
"user_viewable": false,
|
|
"user_editable": false,
|
|
"rules": "required|string"
|
|
},
|
|
{
|
|
"name": "Server Binary",
|
|
"description": "Server binary to call on server start. (32-bit: arma3server | 64-bit: arma3server_x64)",
|
|
"env_variable": "SERVER_BINARY",
|
|
"default_value": "arma3server_x64",
|
|
"user_viewable": true,
|
|
"user_editable": true,
|
|
"rules": "required|string"
|
|
},
|
|
{
|
|
"name": "Connect IP",
|
|
"description": "IP address of the server to connect to.",
|
|
"env_variable": "CONNECT_IP",
|
|
"default_value": "127.0.0.1",
|
|
"user_viewable": true,
|
|
"user_editable": true,
|
|
"rules": "required|ip"
|
|
},
|
|
{
|
|
"name": "Connect Port",
|
|
"description": "Open port of the server to connect to.",
|
|
"env_variable": "CONNECT_PORT",
|
|
"default_value": "2302",
|
|
"user_viewable": true,
|
|
"user_editable": true,
|
|
"rules": "required|numeric"
|
|
},
|
|
{
|
|
"name": "Connect Password",
|
|
"description": "If the server you are connecting to has a password, enter it here.",
|
|
"env_variable": "CONNECT_PASSWORD",
|
|
"default_value": "",
|
|
"user_viewable": true,
|
|
"user_editable": true,
|
|
"rules": "nullable|string"
|
|
},
|
|
{
|
|
"name": "Mods",
|
|
"description": "Mod folders to be used with the -mods startup option. NO capital letters, spaces, or folders starting with a number! Each folder must be followed with a semicolon (ex. @123456789;@987654321;etc;)",
|
|
"env_variable": "MODS",
|
|
"default_value": "",
|
|
"user_viewable": true,
|
|
"user_editable": true,
|
|
"rules": "nullable|string"
|
|
},
|
|
{
|
|
"name": "Extra Startup Parameters",
|
|
"description": "See https:\/\/community.bistudio.com\/wiki\/Arma_3_Startup_Parameters for more info.",
|
|
"env_variable": "STARTUP_PARAMS",
|
|
"default_value": "",
|
|
"user_viewable": true,
|
|
"user_editable": true,
|
|
"rules": "nullable|string"
|
|
},
|
|
{
|
|
"name": "Extra Flags for SteamCMD",
|
|
"description": "Only used when checking for server updates, and typically used for grabbing beta builds.\r\nExample: -beta profiling -betapassword CautionSpecialProfilingAndTestingBranchArma3",
|
|
"env_variable": "STEAMCMD_EXTRA_FLAGS",
|
|
"default_value": "",
|
|
"user_viewable": true,
|
|
"user_editable": true,
|
|
"rules": "nullable|string"
|
|
},
|
|
{
|
|
"name": "Check for Server Updates",
|
|
"description": "Check for server updates on server start.\r\n1 True | 0 False",
|
|
"env_variable": "UPDATE_SERVER",
|
|
"default_value": "0",
|
|
"user_viewable": true,
|
|
"user_editable": true,
|
|
"rules": "boolean"
|
|
},
|
|
{
|
|
"name": "Steam Workshop Mods to Download\/Update",
|
|
"description": "[*Only works if the host owns Arma 3] Comma separated list of Steam Workshop mod IDs to download\\\/update on server start. (ex. 450814997,463939057) Each mod will be downloaded to the root directory with the folder format: @ModIdNumber",
|
|
"env_variable": "UPDATE_WORKSHOP",
|
|
"default_value": "",
|
|
"user_viewable": true,
|
|
"user_editable": true,
|
|
"rules": "nullable|string"
|
|
},
|
|
{
|
|
"name": "Set Mods to Lowercase",
|
|
"description": "On server start, goes through all the mod folders listed in \"Mods\" & \"Server Mods\", and makes sure every folder and file is lowercase (to prevent errors). This is particularly useful to run ONCE after copying a mod from a Windows machine to the server, or if mods seem to not be loading.",
|
|
"env_variable": "MODS_LOWERCASE",
|
|
"default_value": "0",
|
|
"user_viewable": true,
|
|
"user_editable": true,
|
|
"rules": "boolean"
|
|
}
|
|
]
|
|
}
|