{"meta":{"slug":"night-of-the-dead","name":"Night Of The Dead","category":"night_of_the_dead","source":"pterodactyl","owner":"pterodactyl","repo":"game-eggs","branch":"main","path":"night_of_the_dead/egg-night-of-the-dead.json","rawUrl":"https://raw.githubusercontent.com/pterodactyl/game-eggs/main/night_of_the_dead/egg-night-of-the-dead.json","indexedAt":1792246788483},"egg":{"_comment":"DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO","meta":{"version":"PTDL_v2","update_url":null},"exported_at":"2024-06-15T18:59:35+02:00","name":"Night Of The Dead","author":"marshals@gmail.com","description":"Build defenses against nightly waves of zombies. Survive and escape the island.","features":["steam_disk_space"],"docker_images":{"wine_latest":"ghcr.io/ptero-eggs/yolks:wine_latest"},"file_denylist":[],"startup":"wine /home/container/LF/Binaries/Win64/LFServer-Win64-Shipping.exe ?listen -Port={{SERVER_PORT}} -QueryPort={{QUERY_PORT}} -console -log --CRASHREPORTS {{OTHER_ARGS}} & NOTD_PID=$!; sleep 5; tail -c0 -F  /home/container/LF/Saved/Logs/LF.log --pid=$NOTD_PID","config":{"files":"{\n    \"LF/Saved/Config/ServerSettings.ini\": {\n        \"parser\": \"ini\",\n        \"find\": {\n            \"ServerSettings.ServerName\": \"{{env.SERVER_NAME}}\",\n            \"ServerSettings.Password\": \"{{env.SERVER_PASSWORD}}\",\n            \"SystemSettings.SaveName\": \"{{env.SERVER_SAVEGAME}}\",\n            \"SystemSettings.IngameAdminPassword\": \"{{env.SERVER_ADMIN_PASSWORD}}\",\n            \"SystemSettings.DefaultMessageOfTheDay\": \"{env.SERVER_MOTD}}\",\n            \"GameSettings.Difficulty\": \"{{env.DIFFICULTY}}\",\n            \"GameSettings/General.MODSelect\": \"{{env.PVP}}\"\n        }\n    }\n}","startup":"{\n    \"done\": [\n        \"Successfully updated session\",\n        \"Start Session Complete\"\n    ]\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# Image to install with is 'ghcr.io/ptero-eggs/installers:debian'\r\n\r\n# Install packages. Default packages below are not required if using our existing install image thus speeding up the install process.\r\n#apt -y update\r\n#apt -y --no-install-recommends install curl lib32gcc-s1 ca-certificates\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## 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## make needed dir\r\nmkdir -p /mnt/server/LF/Saved/SaveGames\r\nmkdir -p /mnt/server/LF/Saved/Config\r\n\r\ncurl -sSL -o /mnt/server/LF/Saved/Config/ServerSettings.ini https://raw.githubusercontent.com/ptero-eggs/game-eggs/main/night_of_the_dead/ServerSettings.ini\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\"","container":"ghcr.io/ptero-eggs/installers:debian","entrypoint":"bash"}},"variables":[{"name":"WINEDEBUG","description":"","env_variable":"WINEDEBUG","default_value":"-all","user_viewable":false,"user_editable":false,"rules":"required|string|max:20","field_type":"text"},{"name":"SRCDS_APPID","description":"","env_variable":"SRCDS_APPID","default_value":"1420710","user_viewable":false,"user_editable":false,"rules":"required|string|in:1420710","field_type":"text"},{"name":"WINDOWS_INSTALL","description":"","env_variable":"WINDOWS_INSTALL","default_value":"1","user_viewable":false,"user_editable":false,"rules":"required|boolean|in:1","field_type":"text"},{"name":"Auto Update","description":"Auto update the server on start","env_variable":"AUTO_UPDATE","default_value":"1","user_viewable":true,"user_editable":true,"rules":"required|boolean","field_type":"text"},{"name":"Query Port","description":"","env_variable":"QUERY_PORT","default_value":"27016","user_viewable":true,"user_editable":false,"rules":"required|string|max:5","field_type":"text"},{"name":"Server Name","description":"","env_variable":"SERVER_NAME","default_value":"Pterodactyl","user_viewable":true,"user_editable":true,"rules":"required|string|max:32","field_type":"text"},{"name":"Server Password","description":"","env_variable":"SERVER_PASSWORD","default_value":"","user_viewable":true,"user_editable":true,"rules":"nullable|string|max:32","field_type":"text"},{"name":"Server Admin Password","description":"","env_variable":"SERVER_ADMIN_PASSWORD","default_value":"","user_viewable":true,"user_editable":true,"rules":"required|string|max:32","field_type":"text"},{"name":"Difficulty","description":"","env_variable":"DIFFICULTY","default_value":"Normal","user_viewable":true,"user_editable":true,"rules":"required|string|in:Normal,Peaceful,Easy,Hard,Survival,Challenge,Legend","field_type":"text"},{"name":"PVP","description":"1=PVE 0=PVP","env_variable":"PVP","default_value":"1","user_viewable":true,"user_editable":true,"rules":"required|boolean","field_type":"text"},{"name":"Savegame Name","description":"","env_variable":"SERVER_SAVEGAME","default_value":"savedgame1","user_viewable":true,"user_editable":true,"rules":"required|string|max:32","field_type":"text"},{"name":"Winetricks Run","description":"","env_variable":"WINETRICKS_RUN","default_value":"vcrun2022 corefonts","user_viewable":false,"user_editable":false,"rules":"required|string","field_type":"text"},{"name":"WINEPATH","description":"","env_variable":"WINEPATH","default_value":"/home/container","user_viewable":false,"user_editable":false,"rules":"required|string|max:20","field_type":"text"},{"name":"Server MOTD","description":"","env_variable":"SERVER_MOTD","default_value":"Welcome to the server.","user_viewable":true,"user_editable":true,"rules":"nullable|string","field_type":"text"},{"name":"Extra Args","description":"other arguments added to command line.","env_variable":"OTHER_ARGS","default_value":"","user_viewable":true,"user_editable":true,"rules":"nullable|string","field_type":"text"},{"name":"XVFB","description":"Start XVFB in the background.","env_variable":"XVFB","default_value":"1","user_viewable":false,"user_editable":false,"rules":"boolean|in:1","field_type":"text"}]},"readme":"# Night of the dead\n\n### Description\n'Night of the Dead' is an open-world game that combines elements of exploration, tower defense, survival, and crafting. Traverse a world dominated by zombies while collecting various resources and powerful equipment. Build a fortress to survive the hordes of zombies that swarm every night! \n\n\n### Server Ports\n\n| Port      | default |\n|-----------|---------|\n| Game      | 27015   |\n| Query     | 27016   |\n"}