|
1
|
|
{
|
|
2
|
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
|
3
|
|
"meta": {
|
|
展开 108 行未改动
|
|
4
|
|
"version": "PTDL_v2",
|
|
5
|
|
"update_url": "https://eggs.pterodactyl.top/eggs/68/download/egg-the-lord-of-the-rings-return-to-moria.json"
|
|
6
|
|
},
|
|
7
|
|
"exported_at": "2025-02-18T13:43:53+00:00",
|
|
8
|
|
"name": "The Lord of the Rings: Return to Moria",
|
|
9
|
|
"author": "eggs@goover.dev",
|
|
10
|
|
"description": "The only survival crafting game set in the Fourth Age of Middle-earth™. Embark on an epic journey to reclaim the Dwarven homeland of Moria, and explore, craft, and build in procedurally generated worlds. Play as a solo adventurer, or join friends in co-op gameplay for up to 8 players.",
|
|
11
|
|
"features": [
|
|
12
|
|
"steam_disk_space"
|
|
13
|
|
],
|
|
14
|
|
"docker_images": {
|
|
15
|
|
"registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:wine_staging": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/yolks:wine_staging"
|
|
16
|
|
},
|
|
17
|
|
"file_denylist": [],
|
|
18
|
|
"startup": "xvfb-run wine ./Moria/Binaries/Win64/MoriaServer-Win64-Shipping.exe & MS_PID=$! ; tail -c0 -F ./Moria/Saved/Logs/Moria.log --pid=$MS_PID",
|
|
19
|
|
"config": {
|
|
20
|
|
"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}",
|
|
21
|
|
"startup": "{\r\n \"done\": \"LogOnline: Warning: OSS: Unable to AutoLogin user\"\r\n}",
|
|
22
|
|
"logs": "{}",
|
|
23
|
|
"stop": "^C"
|
|
24
|
|
},
|
|
25
|
|
"scripts": {
|
|
26
|
|
"installation": {
|
|
27
|
|
"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}\"",
|
|
28
|
|
"container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
|
|
29
|
|
"entrypoint": "bash"
|
|
30
|
|
}
|
|
31
|
|
},
|
|
32
|
|
"variables": [
|
|
33
|
|
{
|
|
34
|
|
"name": "[SERVER] Server Name",
|
|
35
|
|
"description": "",
|
|
36
|
|
"env_variable": "SRV_NAME",
|
|
37
|
|
"default_value": "",
|
|
38
|
|
"user_viewable": true,
|
|
39
|
|
"user_editable": true,
|
|
40
|
|
"rules": "required|string|max:60",
|
|
41
|
|
"field_type": "text"
|
|
42
|
|
},
|
|
43
|
|
{
|
|
44
|
|
"name": "[SERVER] Server Password",
|
|
45
|
|
"description": "the password this session will have",
|
|
46
|
|
"env_variable": "SRV_PW",
|
|
47
|
|
"default_value": "",
|
|
48
|
|
"user_viewable": true,
|
|
49
|
|
"user_editable": true,
|
|
50
|
|
"rules": "nullable|string",
|
|
51
|
|
"field_type": "text"
|
|
52
|
|
},
|
|
53
|
|
{
|
|
54
|
|
"name": "[STEAM] STEAM_APPID",
|
|
55
|
|
"description": "",
|
|
56
|
|
"env_variable": "SRCDS_APPID",
|
|
57
|
|
"default_value": "3349480",
|
|
58
|
|
"user_viewable": false,
|
|
59
|
|
"user_editable": false,
|
|
60
|
|
"rules": "required|numeric|in:3349480",
|
|
61
|
|
"field_type": "text"
|
|
62
|
|
},
|
|
63
|
|
{
|
|
64
|
|
"name": "[STEAM] WINDOWS_INSTALL",
|
|
65
|
|
"description": "",
|
|
66
|
|
"env_variable": "WINDOWS_INSTALL",
|
|
67
|
|
"default_value": "1",
|
|
68
|
|
"user_viewable": false,
|
|
69
|
|
"user_editable": false,
|
|
70
|
|
"rules": "required|string|max:20",
|
|
71
|
|
"field_type": "text"
|
|
72
|
|
},
|
|
73
|
|
{
|
|
74
|
|
"name": "[WINE] WINETRICKS_RUN",
|
|
75
|
|
"description": "",
|
|
76
|
|
"env_variable": "WINETRICKS_RUN",
|
|
77
|
|
"default_value": "vcrun2022",
|
|
78
|
|
"user_viewable": false,
|
|
79
|
|
"user_editable": false,
|
|
80
|
|
"rules": "nullable|string",
|
|
81
|
|
"field_type": "text"
|
|
82
|
|
},
|
|
83
|
|
{
|
|
84
|
|
"name": "[WINE] WINEDEBUG",
|
|
85
|
|
"description": "",
|
|
86
|
|
"env_variable": "WINEDEBUG",
|
|
87
|
|
"default_value": "-all",
|
|
88
|
|
"user_viewable": false,
|
|
89
|
|
"user_editable": false,
|
|
90
|
|
"rules": "required|string|max:20",
|
|
91
|
|
"field_type": "text"
|
|
92
|
|
},
|
|
93
|
|
{
|
|
94
|
|
"name": "[SERVER] World difficulty",
|
|
95
|
|
"description": "",
|
|
96
|
|
"env_variable": "WORLD_DIFF",
|
|
97
|
|
"default_value": "normal",
|
|
98
|
|
"user_viewable": true,
|
|
99
|
|
"user_editable": true,
|
|
100
|
|
"rules": "required|string|in:story,solo,normal,hard,custom",
|
|
101
|
|
"field_type": "text"
|
|
102
|
|
},
|
|
103
|
|
{
|
|
104
|
|
"name": "[STEAM] Auto Update",
|
|
105
|
|
"description": "Auto update the server on startup",
|
|
106
|
|
"env_variable": "AUTO_UPDATE",
|
|
107
|
|
"default_value": "1",
|
|
108
|
|
"user_viewable": true,
|
|
109
|
|
"user_editable": true,
|
|
110
|
|
"rules": "boolean",
|
|
111
|
|
"field_type": "text"
|
|
112
|
|
}
|
|
113
|
|
]
|
|
114
|
|
}
|