更新日志
[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/68/download/egg-the-lord-of-the-rings-return-to-moria.json"
},
"exported_at": "2025-02-18T13:43:53+00:00",
"name": "The Lord of the Rings: Return to Moria",
"author": "eggs@goover.dev",
"description": "唯一一款设定在中土™第四纪元的生存制作游戏。踏上史诗般的旅程,夺回矮人故土摩瑞亚,在程序生成的广阔世界中探索、制作与建造。既可独自冒险,也可与最多8位好友联机合作游玩。",
"features": [
"steam_disk_space"
],
"docker_images": {
"registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:wine_staging": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:wine_staging"
},
"file_denylist": [],
"startup": "xvfb-run wine ./Moria/Binaries/Win64/MoriaServer-Win64-Shipping.exe & MS_PID=$! ; tail -c0 -F ./Moria/Saved/Logs/Moria.log --pid=$MS_PID",
"config": {
"files": "{\r\n \"MoriaServerConfig.ini\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"OptionalPassword=\": \"OptionalPassword={{env.SRV_PW}}\",\r\n \"ListenPort=\": \"ListenPort={{server.build.default.port}}\",\r\n \"AdvertiseAddress=\": \"AdvertiseAddress={{server.build.default.ip}}\",\r\n \"AdvertisePort=\": \"AdvertisePort=-1\",\r\n \"Name=\": \"Name=\\\"{{env.SRV_NAME}}\\\"\",\r\n \"Difficulty.Preset=\": \"Difficulty.Preset={{env.WORLD_DIFF}}\"\r\n }\r\n }\r\n}",
"startup": "{\r\n \"done\": \"LogOnline: Warning: OSS: Unable to AutoLogin user\"\r\n}",
"logs": "{}",
"stop": "^C"
},
"scripts": {
"installation": {
"script": "#!/bin/bash\r\n# THIS EGG IS LICENCED UNDER AGPLv3\r\n#\r\nclear\r\nRED='\\033[0;31m'\r\nGREEN='\\033[0;32m'\r\nYELLOW='\\033[1;33m'\r\nBLUE='\\033[0;34m'\r\nNC='\\033[0m'\r\n\r\necho -e \"${BLUE}-------------------------------------------------${NC}\"\r\necho -e \"${YELLOW}The Lord of the Rings: Return to Moria™ Installscript${NC}\"\r\necho -e \"${YELLOW} Licence: AGPLv3${NC}\"\r\necho -e \"${BLUE}-------------------------------------------------${NC}\"\r\n\r\n# Setup Envs\r\nchown -R root:root /mnt\r\nexport HOME=/mnt/server\r\n\r\n## check is steamuser is set\r\nif [ \"${STEAM_USER}\" == \"\" ]; 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\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\r\n## install game using steamcmd\r\necho -e \"${BLUE}-------------------------------------------------${NC}\"\r\necho -e \"${YELLOW}install game using steamcmd. please wait...${NC}\"\r\necho -e \"${BLUE}-------------------------------------------------${NC}\"\r\n\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\r\necho -e \"${GREEN}..done..${NC}\"\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\r\n## add below your custom commands if needed\r\n\r\nFILE=\"$HOME/MoriaServerConfig.ini\"\r\nif [ -f \"$FILE\" ]; then\r\n echo -e \"${BLUE}-------------------------------------------------${NC}\"\r\n echo -e \"${GREEN} $FILE found.${NC}\"\r\n echo -e \"${BLUE}-------------------------------------------------${NC}\"\r\nelse \r\n echo -e \"${BLUE}-------------------------------------------------${NC}\"\r\n echo -e \"${RED} $FILE not found. Downloading default...${NC}\"\r\n echo -e \"${BLUE}-------------------------------------------------${NC}\"\r\n cd $HOME\r\n curl -sSL -o \"MoriaServerConfig.ini\" https://raw.githubusercontent.com/pelican-eggs/games-steamcmd/refs/heads/main/lotr_moria/MoriaServerConfig.ini\r\n echo -e \"${GREEN}..done..${NC}\"\r\nfi\r\n\r\necho -e \"${GREEN}..done..${NC}\"\r\n\r\n## install end\r\necho -e \"${BLUE}-------------------------------------------------${NC}\"\r\necho -e \"${GREEN}Installation completed...${NC}\"\r\necho -e \"${BLUE}-------------------------------------------------${NC}\"",
"container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
"entrypoint": "bash"
}
},
"variables": [
{
"name": "[SERVER] 服务器名称",
"description": "",
"env_variable": "SRV_NAME",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:60",
"field_type": "text"
},
{
"name": "[SERVER] 服务器密码",
"description": "此会话将使用的密码",
"env_variable": "SRV_PW",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string",
"field_type": "text"
},
{
"name": "[STEAM] STEAM_APPID",
"description": "",
"env_variable": "SRCDS_APPID",
"default_value": "3349480",
"user_viewable": false,
"user_editable": false,
"rules": "required|numeric|in:3349480",
"field_type": "text"
},
{
"name": "[STEAM] WINDOWS_INSTALL",
"description": "",
"env_variable": "WINDOWS_INSTALL",
"default_value": "1",
"user_viewable": false,
"user_editable": false,
"rules": "required|string|max:20",
"field_type": "text"
},
{
"name": "[WINE] WINETRICKS_RUN",
"description": "",
"env_variable": "WINETRICKS_RUN",
"default_value": "vcrun2022",
"user_viewable": false,
"user_editable": false,
"rules": "nullable|string",
"field_type": "text"
},
{
"name": "[WINE] WINEDEBUG",
"description": "",
"env_variable": "WINEDEBUG",
"default_value": "-all",
"user_viewable": false,
"user_editable": false,
"rules": "required|string|max:20",
"field_type": "text"
},
{
"name": "[SERVER] 世界难度",
"description": "",
"env_variable": "WORLD_DIFF",
"default_value": "normal",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|in:story,solo,normal,hard,custom",
"field_type": "text"
},
{
"name": "[STEAM] 自动更新",
"description": "在启动时自动更新服务器",
"env_variable": "AUTO_UPDATE",
"default_value": "1",
"user_viewable": true,
"user_editable": true,
"rules": "boolean",
"field_type": "text"
}
]
}