{ "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL", "meta": { "version": "PLCN_v1", "update_url": "https:\/\/raw.githubusercontent.com\/pelican-eggs\/games-steamcmd\/refs\/heads\/main\/lotr_moria\/egg-pelican-lotr-return-to-moria.json" }, "exported_at": "2025-02-16T14:23:18+00:00", "name": "The Lord of the Rings: Return to Moria", "author": "eggs@goover.dev", "uuid": "a294e71d-cb35-42a1-89e0-4688c8199d53", "description": "The only survival crafting game set in the Fourth Age of Middle-earth\u2122. 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.", "features": [ "steam_disk_space" ], "docker_images": { "ghcr.io\/parkervcp\/yolks:wine_staging": "ghcr.io\/parkervcp\/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.allocations.default.port}}\",\r\n \"AdvertiseAddress=\": \"AdvertiseAddress={{server.allocations.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\u2122 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": "ghcr.io\/parkervcp\/installers:debian", "entrypoint": "bash" } }, "variables": [ { "sort": 1, "name": "[SERVER] Server Name", "description": "", "env_variable": "SRV_NAME", "default_value": "", "user_viewable": true, "user_editable": true, "rules": [ "required", "string", "max:60" ] }, { "sort": 2, "name": "[SERVER] Server Password", "description": "the password this session will have", "env_variable": "SRV_PW", "default_value": "", "user_viewable": true, "user_editable": true, "rules": [ "nullable", "string" ] }, { "sort": 4, "name": "[STEAM] APP ID", "description": "", "env_variable": "SRCDS_APPID", "default_value": "3349480", "user_viewable": false, "user_editable": false, "rules": [ "required", "numeric", "in:3349480" ] }, { "sort": 5, "name": "[STEAM] WINDOWS_INSTALL", "description": "", "env_variable": "WINDOWS_INSTALL", "default_value": "1", "user_viewable": false, "user_editable": false, "rules": [ "required", "string", "max:20" ] }, { "sort": 6, "name": "[WINE] WINETRICKS_RUN", "description": "", "env_variable": "WINETRICKS_RUN", "default_value": "vcrun2022", "user_viewable": false, "user_editable": false, "rules": [ "nullable", "string" ] }, { "sort": 7, "name": "[WINE] WINEDEBUG", "description": "", "env_variable": "WINEDEBUG", "default_value": "-all", "user_viewable": false, "user_editable": false, "rules": [ "required", "string", "max:20" ] }, { "sort": 3, "name": "[SERVER] World difficulty", "description": "", "env_variable": "WORLD_DIFF", "default_value": "normal", "user_viewable": true, "user_editable": true, "rules": [ "required", "string", "in:story,solo,normal,hard,custom" ] }, { "sort": 8, "name": "[STEAM] Auto Update", "description": "Auto update the server on startup", "env_variable": "AUTO_UPDATE", "default_value": "1", "user_viewable": true, "user_editable": true, "rules": [ "boolean" ] } ] }