更新日志
[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/138/download/egg-voyagers-of-nera.json"
},
"exported_at": "2025-11-02T10:25:41+00:00",
"name": "Voyagers of Nera",
"author": "quinten@pelican.dev",
"description": "《奈拉航海者》是一款合作生存建造游戏,你必须在充满迷失灵魂与致命怪物的魔法海洋世界中生存。与最多10名玩家一同航行至遥远岛屿,建造美丽村庄,并在海浪上冲浪前行。",
"features": [
"steam_disk_space"
],
"docker_images": {
"Wine Latest": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:wine_latest"
},
"file_denylist": [],
"startup": "wine BoatGame/Binaries/Win64/BoatGameServer-Win64-Shipping.exe -log -port={{SERVER_PORT}} & BG_PID=$!; tail -c0 -F ./BoatGame/Saved/Logs/BoatGame.log --pid=$BG_PID",
"config": {
"files": "{\n \"Saved/PersistedData/CustomConfig/CustomHostServerUserSettings.ini\": {\n \"parser\": \"file\",\n \"find\": {\n \"HostServerDisplayName=\": \"HostServerDisplayName={{server.build.env.DISPLAY_NAME}}\",\n \"HostServerPassword=\": \"HostServerPassword={{server.build.env.SERVER_PASSWORD}}\",\n \"MaxPlayers=\": \"MaxPlayers={{server.build.env.MAX_PLAYERS}}\",\n \"AutosaveTimerSeconds=\": \"AutosaveTimerSeconds={{server.build.env.{AUTO_SAVE_TIMER_SECONDS}}\"\n }\n }\n}",
"startup": "{\n \"done\": \"Game Server API initialized\"\n}",
"logs": "{}",
"stop": "^C"
},
"scripts": {
"installation": {
"script": "#!/bin/bash\r\n# steamcmd Base Installation Script\r\n#\r\n# Server Files: /mnt/server\r\n\r\n\r\n## just in case someone removed the defaults.\r\nif [[ \"${STEAM_USER}\" == \"\" ]] || [[ \"${STEAM_PASS}\" == \"\" ]]; then\r\n echo -e \"steam user is not set.\\n\"\r\n echo -e \"Using anonymous user.\\n\"\r\n STEAM_USER=anonymous\r\n STEAM_PASS=\"\"\r\n STEAM_AUTH=\"\"\r\nelse\r\n echo -e \"user set to ${STEAM_USER}\"\r\nfi\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\nmkdir -p /mnt/server/steamapps # Fix steamcmd disk write error when this folder is missing\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 +force_install_dir /mnt/server +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ \"${WINDOWS_INSTALL}\" == \"1\" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s \"-beta ${SRCDS_BETAID}\" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s \"-betapassword ${SRCDS_BETAPASS}\" ) ${INSTALL_FLAGS} validate +quit ## other flags may be needed depending on install. looking at you cs 1.6\r\n\r\n#They need it here ..\r\n./steamcmd.sh +force_install_dir /mnt/server/BoatGame/Binaries/Win64/ +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ \"${WINDOWS_INSTALL}\" == \"1\" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update 1007 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## add below your custom commands if needed\r\n\r\n# Define the file path\r\nFILE=\"/mnt/server/BoatGame/Saved/PersistedData/CustomConfig/CustomHostServerUserSettings.ini\"\r\n\r\n# Create the directory if it doesn't exist\r\nDIR=$(dirname \"$FILE\")\r\nif [ ! -d \"$DIR\" ]; then\r\n echo \"Directory $DIR not found. Creating it...\"\r\n mkdir -p \"$DIR\"\r\nfi\r\n\r\n# Check if the file exists\r\nif [ ! -f \"$FILE\" ]; then\r\n echo \"File not found. Creating $FILE...\"\r\n\r\n cat <<EOF > \"$FILE\"\r\n[/Script/BoatGame.BGCustomHostServerSettings]\r\nHostServerDisplayName=${DISPLAY_NAME}\r\nHostServerPassword=${SERVER_PASSWORD}\r\nMaxPlayers=${MAX_PLAYERS}\r\nAutosaveTimerSeconds=${AUTO_SAVE_TIMER_SECONDS}\r\nEOF\r\n\r\n echo \"File created and settings written to $FILE.\"\r\nelse\r\n echo \"File already exists: $FILE\"\r\nfi\r\n\r\nif [ ! -f \"/mnt/server/BoatGame/Binaries/Win64/steam_appid.txt\" ]; then\r\n echo \"3937860\" > /mnt/server/BoatGame/Binaries/Win64/steam_appid.txt\r\nfi\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\"",
"container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
"entrypoint": "bash"
}
},
"variables": [
{
"name": "自动保存计时器秒数",
"description": "服务器自动保存的频率。除非有特定原因,否则不建议调整此设置。",
"env_variable": "AUTO_SAVE_TIMER_SECONDS",
"default_value": "300",
"user_viewable": true,
"user_editable": true,
"rules": "required|int|between:10,900",
"field_type": "text"
},
{
"name": "自动更新",
"description": "在启动时自动更新服务器",
"env_variable": "AUTO_UPDATE",
"default_value": "1",
"user_viewable": true,
"user_editable": true,
"rules": "boolean",
"field_type": "text"
},
{
"name": "显示名称",
"description": "你的服务器在玩家浏览服务器列表时显示的公开名称。",
"env_variable": "DISPLAY_NAME",
"default_value": "My_Super_Cool_Server",
"user_viewable": true,
"user_editable": true,
"rules": "required|alpha_dash|max:30",
"field_type": "text"
},
{
"name": "最大玩家数",
"description": "服务器允许同时连接的最大玩家数量。",
"env_variable": "MAX_PLAYERS",
"default_value": "10",
"user_viewable": true,
"user_editable": true,
"rules": "required|int|between:0,10",
"field_type": "text"
},
{
"name": "服务器密码",
"description": "玩家加入你的游戏所需的密码。\n\n留空表示服务器将不设密码保护,任何玩家均可加入。",
"env_variable": "SERVER_PASSWORD",
"default_value": "noonewilleverguessthis",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|alpha_dash",
"field_type": "text"
},
{
"name": "应用ID",
"description": "",
"env_variable": "SRCDS_APPID",
"default_value": "3937860",
"user_viewable": false,
"user_editable": false,
"rules": "required|in:3937860",
"field_type": "text"
},
{
"name": "Windows 安装程序",
"description": "",
"env_variable": "WINDOWS_INSTALL",
"default_value": "1",
"user_viewable": false,
"user_editable": false,
"rules": "boolean|in:1",
"field_type": "text"
}
]
}