更新日志
[AI翻译] 描述、说明、JSON描述、变量
版本内容
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v2",
"update_url": "https://eggs.pterodactyl.top/eggs/241/download/egg-openttd.json"
},
"exported_at": "2024-10-21T21:46:13+02:00",
"name": "OpenTTD",
"author": "admin@justmyrandomstuff.com",
"description": "OpenTTD 是一款基于 Chris Sawyer 开发的经典 Microprose 游戏《Transport Tycoon Deluxe》的开源模拟游戏。它试图尽可能还原原版游戏,同时通过新功能进行扩展。\n\nOpenTTD 以 Chris Sawyer 的原版《Transport Tycoon》游戏为模型,大幅提升了游戏体验。许多功能灵感来自 TTDPatch,而其他功能则是原创的。",
"features": null,
"docker_images": {
"registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:debian": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:debian"
},
"file_denylist": [],
"startup": "./openttd -D",
"config": {
"files": "{\r\n \"openttd.cfg\": {\r\n \"parser\": \"ini\",\r\n \"find\": {\r\n \"network.server_port\": \"{{server.build.default.port}}\",\r\n \"network.server_name\": \"{{server.build.env.srv_name}}\",\r\n \"network.lan_internet\": 0,\r\n \"network.server_advertise\": \"{{server.build.env.srv_advertise}}\"\r\n }\r\n }\r\n}",
"startup": "{\r\n \"done\": \"Map generated, starting game\"\r\n}",
"logs": "{}",
"stop": "exit"
},
"scripts": {
"installation": {
"script": "#!/bin/ash\r\napk add --no-cache xz curl tar unzip\r\n\r\nmkdir -p /mnt/server\r\ncd /mnt/server\r\n\r\necho -e \"\\ncurl -SsL -o openttd-linux.tar.xz https://cdn.openttd.org/openttd-releases/${OPENTTD_VERSION}/openttd-${OPENTTD_VERSION}-linux-generic-amd64.tar.xz\"\r\ncurl -SsL -o openttd-linux.tar.xz https://cdn.openttd.org/openttd-releases/${OPENTTD_VERSION}/openttd-${OPENTTD_VERSION}-linux-generic-amd64.tar.xz \r\n\r\necho -e \"\\nUnpacking tar\"\r\ntar -xf openttd-linux.tar.xz --strip-components=1\r\nrm openttd-linux.tar.xz\r\nchmod +x openttd\r\n\r\necho -e \"\\nRunning curl -sSL -o opengfx.zip https://cdn.openttd.org/opengfx-releases/${OPENGFX_VERSION}/opengfx-${OPENGFX_VERSION}-all.zip\"\r\ncurl -sSL -o opengfx.zip https://cdn.openttd.org/opengfx-releases/${OPENGFX_VERSION}/opengfx-${OPENGFX_VERSION}-all.zip\r\nunzip opengfx.zip \r\n\r\ntar --strip-components=1 -C baseset/ -xvf opengfx*.tar\r\nrm -fR open*zip open*tar open*gz\r\n\r\n[ -f /home/container/openttd.cfg ] || curl https://raw.githubusercontent.com/parkervcp/eggs/master/game_eggs/tycoon_games/openttd/openttd.cfg > openttd.cfg\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\"",
"container": "alpine:latest",
"entrypoint": "ash"
}
},
"variables": [
{
"name": "服务器名称",
"description": "服务器列表中显示的名称",
"env_variable": "srv_name",
"default_value": "OpenTTD Server",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:20",
"field_type": "text"
},
{
"name": "在主列表中显示?",
"description": "在客户端服务器列表中显示该服务器,启用或禁用",
"env_variable": "srv_advertise",
"default_value": "true",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|in:true,false",
"field_type": "text"
},
{
"name": "OpenTTD 版本",
"description": "OpenTTD的版本,即12.2",
"env_variable": "OPENTTD_VERSION",
"default_value": "13.0-RC2",
"user_viewable": true,
"user_editable": false,
"rules": "required|string|max:20",
"field_type": "text"
},
{
"name": "OpenGFX版本",
"description": "OpenGFX版本即7.1",
"env_variable": "OPENGFX_VERSION",
"default_value": "7.1",
"user_viewable": true,
"user_editable": false,
"rules": "required|string|max:20",
"field_type": "text"
}
]
}