Cubic Odyssey v1.0.2

飒爽师叔 · 2026-06-30 10:02

更新日志

[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/43/download/egg-cubic-odyssey.json"
    },
    "exported_at": "2025-12-25T09:29:43+00:00",
    "name": "Cubic Odyssey",
    "author": "mads@mrnissen.com",
    "description": "冒险、创造与生存正等待着你!\n踏入一个无垠的开放世界,每一颗星球、每一个星系、每一刻都任你塑造。探索一个充满生机、古老谜团与原始之美的宇宙。在挖掘资源、制作工具、武器以及建造载具的过程中,抵御红色黑暗的威胁,这些装备是你星际征程的必需品。与朋友合作,共同对抗巨大的威胁,为银河系带来希望。",
    "features": [
        "steam_disk_space"
    ],
    "docker_images": {
        "Wine Latest": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:wine_latest",
        "Wine Staging": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:wine_staging"
    },
    "file_denylist": [],
    "startup": "wine ./server/CubicOdysseyServer.exe",
    "config": {
        "files": "{\n    \"config/server_config.txt\": {\n        \"parser\": \"file\",\n        \"find\": {\n            \"\\t\\tstartingPort\": \"\\t\\tstartingPort {{env.STARTING_PORT}}\",\n            \"\\t\\tendingPort\": \"\\t\\tendingPort {{env.ENDING_PORT}}\",\n            \"\\t\\tserverName\": \"\\t\\tserverName \\\"{{env.SERVER_NAME}}\\\"\",\n            \"\\t\\tserverPassword\": \"\\t\\tserverPassword \\\"{{env.SERVER_PASSWORD}}\\\"\",\n            \"\\t\\tmaxPlayers\": \"\\t\\tmaxPlayers {{env.MAX_PLAYERS}}\",\n            \"\\t\\tgameMode\": \"\\t\\tgameMode {{env.GAME_MODE}}\",\n            \"\\t\\tprivateServer\": \"\\t\\tprivateServer {{env.PRIVATE_SERVER}}\",\n            \"\\t\\tgalaxySeed\": \"\\t\\tgalaxySeed {{env.GALAXY_SEED}}\",\n            \"\\t\\tenableCrashDumps\": \"\\t\\tenableCrashDumps {{env.ENABLE_CRASH_DUMPS}}\",\n            \"\\t\\tallowRelaying\": \"\\t\\tallowRelaying {{env.ALLOW_RELAYING}}\",\n            \"\\t\\tenableLogging\": \"\\t\\tenableLogging {{env.ENABLE_LOGGING}}\"\n        }\n    }\n}",
        "startup": "{\n    \"done\": \"Lobby Id: \"\n}",
        "logs": "{}",
        "stop": "^C"
    },
    "scripts": {
        "installation": {
            "script": "#!/bin/bash\n# steamcmd Base Installation Script\n#\nclear\nRED='\\\\033[0;31m'\nGREEN='\\\\033[0;32m'\nYELLOW='\\\\033[1;33m'\nBLUE='\\\\033[0;34m'\nNC='\\\\033[0m'\n\necho -e \"${BLUE}-------------------------------------------------${NC}\"\necho -e \"${YELLOW}Cubic Odyssey Installscript${NC}\"\necho -e \"${YELLOW}Egg by MrNissenDK ${NC}\"\necho -e \"${YELLOW}Install script from Enshrouded by gOOvER | https://goover.dev${NC}\"\necho -e \"${BLUE}-------------------------------------------------${NC}\"\n\n#apt -y update\n#apt -y --no-install-recommends install curl lib32gcc-s1 ca-certificates jq dos2unix\n\necho -e \"${BLUE}-------------------------------------------------${NC}\"\necho -e \"${YELLOW}download and install steamcmd. please wait...${NC}\"\necho -e \"${BLUE}-------------------------------------------------${NC}\"\n\n## just in case someone removed the defaults.\nif [[ \"${STEAM_USER}\" == \"\" ]] || [[ \"${STEAM_PASS}\" == \"\" ]]; then\n    echo -e \"steam user is not set.\\\\n\"\n    echo -e \"Using anonymous user.\\\\n\"\n    STEAM_USER=anonymous\n    STEAM_PASS=\"\"\n    STEAM_AUTH=\"\"\nelse\n    echo -e \"user set to ${STEAM_USER}\"\nfi\n\n## download and install steamcmd\ncd /tmp\nmkdir -p /mnt/server/steamcmd\ncurl -sSL -o steamcmd.tar.gz https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz\ntar -xzvf steamcmd.tar.gz -C /mnt/server/steamcmd\nmkdir -p /mnt/server/steamapps # Fix steamcmd disk write error when this folder is missing\ncd /mnt/server/steamcmd\n\n# SteamCMD fails otherwise for some reason, even running as root.\n# This is changed at the end of the install process anyways.\nchown -R root:root /mnt\nexport HOME=/mnt/server\necho -e \"${GREEN}..done..${NC}\"\n\n## install game using steamcmd\necho -e \"${BLUE}-------------------------------------------------${NC}\"\necho -e \"${YELLOW}install game using steamcmd. please wait...${NC}\"\necho -e \"${BLUE}-------------------------------------------------${NC}\"\n\n./steamcmd.sh +force_install_dir /mnt/server +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ \"${WINDOWS_INSTALL}\" == \"1\" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) $( [[ \"${STEAM_SDK}\" == \"1\" ]] && printf %s '+app_update 1007' ) +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s \"-beta ${SRCDS_BETAID}\" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s \"-betapassword ${SRCDS_BETAPASS}\" ) ${INSTALL_FLAGS} validate +quit\necho -e \"${GREEN}..done..${NC}\"\n\n## set up 32 bit libraries\nmkdir -p /mnt/server/.steam/sdk32\ncp -v linux32/steamclient.so ../.steam/sdk32/steamclient.so\n\n## set up 64 bit libraries\nmkdir -p /mnt/server/.steam/sdk64\ncp -v linux64/steamclient.so ../.steam/sdk64/steamclient.so\n\n# add below your custom commands if needed\n\nFILE=$HOME/config/server_config.txt\nif [ -f \"$FILE\" ]; then\n  echo -e \"server_config.txt found.\"\nelse  \n  echo -e \"No server_config.txt found. Moving default...\"\n  cp -f $FILE.sample $FILE\n  echo -e \".done..\"\nfi\n\n## install end\necho -e \"${BLUE}-------------------------------------------------${NC}\"\necho -e \"${GREEN}Installation completed...${NC}\"\necho -e \"${BLUE}-------------------------------------------------${NC}\"",
            "container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
            "entrypoint": "bash"
        }
    },
    "variables": [
        {
            "name": "允许中继",
            "description": "是否应向创作者发送数据",
            "env_variable": "ALLOW_RELAYING",
            "default_value": "FALSE",
            "user_viewable": true,
            "user_editable": true,
            "rules": "in:TRUE,FALSE",
            "field_type": "text"
        },
        {
            "name": "启用崩溃转储",
            "description": "如果服务器崩溃,是否应生成一个信息文件。",
            "env_variable": "ENABLE_CRASH_DUMPS",
            "default_value": "FALSE",
            "user_viewable": true,
            "user_editable": true,
            "rules": "in:TRUE,FALSE",
            "field_type": "text"
        },
        {
            "name": "启用日志记录",
            "description": "如果它应该记录所有内容",
            "env_variable": "ENABLE_LOGGING",
            "default_value": "FALSE",
            "user_viewable": true,
            "user_editable": true,
            "rules": "in:TRUE,FALSE",
            "field_type": "text"
        },
        {
            "name": "结束端口",
            "description": "从端口值开始尝试绑定的最大端口",
            "env_variable": "ENDING_PORT",
            "default_value": "27100",
            "user_viewable": true,
            "user_editable": true,
            "rules": "between:1024,65535|integer",
            "field_type": "text"
        },
        {
            "name": "星系种子",
            "description": "银河之种",
            "env_variable": "GALAXY_SEED",
            "default_value": "21945875634",
            "user_viewable": true,
            "user_editable": true,
            "rules": "numeric",
            "field_type": "text"
        },
        {
            "name": "游戏模式",
            "description": "设置所需的游戏模式,默认为冒险模式。",
            "env_variable": "GAME_MODE",
            "default_value": "ADVENTURE",
            "user_viewable": true,
            "user_editable": true,
            "rules": "in:CREATIVE,ADVENTURE",
            "field_type": "text"
        },
        {
            "name": "最大玩家数",
            "description": "将设置允许的最大玩家数量",
            "env_variable": "MAX_PLAYERS",
            "default_value": "48",
            "user_viewable": true,
            "user_editable": true,
            "rules": "numeric",
            "field_type": "text"
        },
        {
            "name": "私服",
            "description": "如果你不希望它出现在服务器列表中",
            "env_variable": "PRIVATE_SERVER",
            "default_value": "FALSE",
            "user_viewable": true,
            "user_editable": true,
            "rules": "in:TRUE,FALSE",
            "field_type": "text"
        },
        {
            "name": "服务器名称",
            "description": "服务器名称",
            "env_variable": "SERVER_NAME",
            "default_value": "Cubic Odyssey Dedicated Server - Pelican",
            "user_viewable": true,
            "user_editable": true,
            "rules": "string",
            "field_type": "text"
        },
        {
            "name": "服务器密码",
            "description": "人们需要用来加入的代码",
            "env_variable": "SERVER_PASSWORD",
            "default_value": "",
            "user_viewable": true,
            "user_editable": true,
            "rules": "string",
            "field_type": "text"
        },
        {
            "name": "[STEAM] 应用ID",
            "description": "",
            "env_variable": "SRCDS_APPID",
            "default_value": "3858450",
            "user_viewable": false,
            "user_editable": false,
            "rules": "required|string|in:3858450",
            "field_type": "text"
        },
        {
            "name": "起始端口",
            "description": "设置游戏绑定的端口,示例",
            "env_variable": "STARTING_PORT",
            "default_value": "27001",
            "user_viewable": true,
            "user_editable": true,
            "rules": "integer|between:1024,65535",
            "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"
        },
        {
            "name": "[WINE] WINEDEBUG",
            "description": "",
            "env_variable": "WINEDEBUG",
            "default_value": "-all",
            "user_viewable": false,
            "user_editable": false,
            "rules": "required|max:20|string",
            "field_type": "text"
        }
    ]
}