2021-10-01 04:54:16 +08:00
|
|
|
{
|
|
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
|
|
|
"meta": {
|
2023-08-01 22:54:25 +08:00
|
|
|
"version": "PTDL_v2",
|
2021-10-01 04:54:16 +08:00
|
|
|
"update_url": null
|
|
|
|
},
|
2023-08-01 22:54:25 +08:00
|
|
|
"exported_at": "2023-08-01T16:53:44+02:00",
|
2021-10-01 04:54:16 +08:00
|
|
|
"name": "mohaa",
|
|
|
|
"author": "th3dilli@gmx.at",
|
2023-08-01 22:54:25 +08:00
|
|
|
"description": "Medal of Honor: Allied Assault",
|
2021-10-01 04:54:16 +08:00
|
|
|
"features": null,
|
2023-08-01 22:54:25 +08:00
|
|
|
"docker_images": {
|
|
|
|
"Mohaa": "ghcr.io\/parkervcp\/games:mohaa"
|
|
|
|
},
|
2021-10-01 04:54:16 +08:00
|
|
|
"file_denylist": [],
|
|
|
|
"startup": ".\/mohaa_lnxded +set sv_punkbuster 0 +set fs_basepath {{BASE_PATH}} +set fs_outputpath {{LOG_DIR}} +set dedicated 2 +set sv_maxclients {{SERVER_MAXCLIENTS}} +set net_ip 0.0.0.0 +set net_port {{SERVER_PORT}} +exec server.cfg",
|
|
|
|
"config": {
|
|
|
|
"files": "{\r\n \"main\/server.cfg\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"seta sv_hostname\": \"seta sv_hostname \\\"{{env.SERVER_NAME}}\\\"\",\r\n \"seta sv_maxClients\": \"seta sv_maxClients \\\"{{env.SERVER_MAXCLIENTS}}\\\"\",\r\n \"seta rconPassword\": \"seta rconPassword \\\"{{env.RCON_PASSWORD}}\\\"\",\r\n \"seta g_password\": \"seta g_password \\\"{{env.SERVER_PASSWORD}}\\\"\",\r\n \"Map\": \"Map {{env.SERVER_MAP}}\"\r\n }\r\n }\r\n}",
|
2023-08-01 22:54:25 +08:00
|
|
|
"startup": "{\r\n \"done\": \"------ Server Initialization Complete ------\"\r\n}",
|
2021-10-01 04:54:16 +08:00
|
|
|
"logs": "{}",
|
|
|
|
"stop": "quit"
|
|
|
|
},
|
|
|
|
"scripts": {
|
|
|
|
"installation": {
|
2023-08-01 22:54:25 +08:00
|
|
|
"script": "#!\/bin\/ash\r\n\r\napk --no-cache add curl\r\n\r\nif [[ ! -d \/mnt\/server\/ ]]; then\r\n mkdir -p \/mnt\/server\/\r\nfi\r\n\r\ncd \/mnt\/server\/\r\n\r\nDOWNLOAD_URL=http:\/\/linuxgsm.download\/MedalofHonorAlliedAssault\/moh_revival_v1.12_RC3.5.1.tar.xz\r\n\r\nif [ ! -z \"${DOWNLOAD_URL}\" ]; then \r\n if curl --output \/dev\/null --silent --head --fail ${DOWNLOAD_URL}; then\r\n echo -e \"link is valid. setting download link to ${DOWNLOAD_URL}\"\r\n DOWNLOAD_LINK=${DOWNLOAD_URL}\r\n else \r\n echo -e \"link is invalid closing out\"\r\n exit 2\r\n fi\r\nfi\r\n\r\necho -e \"running 'curl -sSL ${DOWNLOAD_LINK} -o mohaaserver.tar.xz'\" \r\ncurl -sSL ${DOWNLOAD_LINK} -o mohaaserver.tar.xz\r\n\r\necho -e \"Unpacking server files\"\r\ntar xvf mohaaserver.tar.xz\r\n\r\nrm mohaaserver.tar.xz\r\n\r\necho -e \"checking for default server.cfg\"\r\n[[ -f main\/server.cfg ]] || curl -sSL ${CONFIG_URL} -o main\/server.cfg\r\n\r\necho -e \"running 'chmod +x .\/mohaa_lnxded'\"\r\nchmod +x .\/mohaa_lnxded\r\n\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\"",
|
|
|
|
"container": "alpine:latest",
|
2021-10-01 04:54:16 +08:00
|
|
|
"entrypoint": "ash"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"variables": [
|
|
|
|
{
|
2023-08-01 22:54:25 +08:00
|
|
|
"name": "Max clients",
|
2021-10-01 04:54:16 +08:00
|
|
|
"description": "",
|
|
|
|
"env_variable": "SERVER_MAXCLIENTS",
|
|
|
|
"default_value": "14",
|
|
|
|
"user_viewable": true,
|
|
|
|
"user_editable": true,
|
2023-08-01 22:54:25 +08:00
|
|
|
"rules": "required|integer",
|
|
|
|
"field_type": "text"
|
2021-10-01 04:54:16 +08:00
|
|
|
},
|
|
|
|
{
|
2023-08-01 22:54:25 +08:00
|
|
|
"name": "Config URL",
|
2021-10-01 04:54:16 +08:00
|
|
|
"description": "URL from where to get the initial server.cfg",
|
|
|
|
"env_variable": "CONFIG_URL",
|
2022-03-13 18:42:55 +08:00
|
|
|
"default_value": "https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/mohaa\/game_eggs\/mohaa\/server.cfg",
|
2023-08-01 22:54:25 +08:00
|
|
|
"user_viewable": false,
|
|
|
|
"user_editable": false,
|
|
|
|
"rules": "required|string",
|
|
|
|
"field_type": "text"
|
2021-10-01 04:54:16 +08:00
|
|
|
},
|
|
|
|
{
|
2023-08-01 22:54:25 +08:00
|
|
|
"name": "Server name",
|
2021-10-01 04:54:16 +08:00
|
|
|
"description": "The name of the server",
|
|
|
|
"env_variable": "SERVER_NAME",
|
|
|
|
"default_value": "MOHAA Server running on Pterodactyl",
|
|
|
|
"user_viewable": true,
|
|
|
|
"user_editable": true,
|
2023-08-01 22:54:25 +08:00
|
|
|
"rules": "required|string",
|
|
|
|
"field_type": "text"
|
2021-10-01 04:54:16 +08:00
|
|
|
},
|
|
|
|
{
|
2023-08-01 22:54:25 +08:00
|
|
|
"name": "Rcon password",
|
2021-10-01 04:54:16 +08:00
|
|
|
"description": "Admin password for rcon",
|
|
|
|
"env_variable": "RCON_PASSWORD",
|
2023-08-01 22:54:25 +08:00
|
|
|
"default_value": "",
|
2021-10-01 04:54:16 +08:00
|
|
|
"user_viewable": true,
|
|
|
|
"user_editable": true,
|
2023-08-01 22:54:25 +08:00
|
|
|
"rules": "required|string",
|
|
|
|
"field_type": "text"
|
2021-10-01 04:54:16 +08:00
|
|
|
},
|
|
|
|
{
|
2023-08-01 22:54:25 +08:00
|
|
|
"name": "Server map",
|
|
|
|
"description": "Select the map",
|
2021-10-01 04:54:16 +08:00
|
|
|
"env_variable": "SERVER_MAP",
|
|
|
|
"default_value": "dm\/mohdm7",
|
|
|
|
"user_viewable": true,
|
|
|
|
"user_editable": true,
|
2023-08-01 22:54:25 +08:00
|
|
|
"rules": "required|string|in:obj\/obj_team2,dm\/mohdm7,dm\/mohdm1,dm\/mohdm3,dm\/mohdm2,dm\/mohdm6",
|
|
|
|
"field_type": "text"
|
2021-10-01 04:54:16 +08:00
|
|
|
},
|
|
|
|
{
|
2023-08-01 22:54:25 +08:00
|
|
|
"name": "Logs dir",
|
2021-10-01 04:54:16 +08:00
|
|
|
"description": "",
|
|
|
|
"env_variable": "LOG_DIR",
|
|
|
|
"default_value": "\/home\/container\/Logs",
|
|
|
|
"user_viewable": true,
|
2023-08-01 22:54:25 +08:00
|
|
|
"user_editable": false,
|
|
|
|
"rules": "required|string",
|
|
|
|
"field_type": "text"
|
2021-10-01 04:54:16 +08:00
|
|
|
},
|
|
|
|
{
|
2023-08-01 22:54:25 +08:00
|
|
|
"name": "Base PATH",
|
2021-10-01 04:54:16 +08:00
|
|
|
"description": "",
|
|
|
|
"env_variable": "BASE_PATH",
|
|
|
|
"default_value": "\/home\/container",
|
|
|
|
"user_viewable": true,
|
2023-08-01 22:54:25 +08:00
|
|
|
"user_editable": false,
|
|
|
|
"rules": "required|string",
|
|
|
|
"field_type": "text"
|
2021-10-01 04:54:16 +08:00
|
|
|
},
|
|
|
|
{
|
2023-08-01 22:54:25 +08:00
|
|
|
"name": "Server password",
|
2021-10-01 04:54:16 +08:00
|
|
|
"description": "",
|
|
|
|
"env_variable": "SERVER_PASSWORD",
|
|
|
|
"default_value": "",
|
|
|
|
"user_viewable": true,
|
|
|
|
"user_editable": true,
|
2023-08-01 22:54:25 +08:00
|
|
|
"rules": "required|string",
|
|
|
|
"field_type": "text"
|
2021-10-01 04:54:16 +08:00
|
|
|
}
|
|
|
|
]
|
2023-08-01 22:54:25 +08:00
|
|
|
}
|