From 1d4a4696fb0ba8f0c533c522c639e30e888635cd Mon Sep 17 00:00:00 2001 From: Ryan Kubiak Date: Sat, 6 Jun 2020 11:29:50 -0700 Subject: [PATCH] Add egg for Project Zomboid Fixes #252 --- README.md | 1 + steamcmd_servers/README.md | 3 + steamcmd_servers/project_zomboid/README.md | 23 ++++++ .../project_zomboid/egg-project-zomboid.json | 72 +++++++++++++++++++ 4 files changed, 99 insertions(+) create mode 100644 steamcmd_servers/project_zomboid/README.md create mode 100644 steamcmd_servers/project_zomboid/egg-project-zomboid.json diff --git a/README.md b/README.md index 8b92cfc6..e451b6e5 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,7 @@ If you are reading this it looks like you are looking to add an egg to your serv * [Mordhau](/steamcmd_servers/mordhau) * [Onset](/steamcmd_servers/onset) * [PixARK](/steamcmd_servers/pixark/) +* [Project Zomboid](/steamcmd_servers/project_zomboid/) * [Rust Staging Branch](/steamcmd_servers/rust_staging/) * [SCP: Secret Laboratory](/steamcmd_servers/scpsl/) * [dedicated](/steamcmd_servers/scpsl/dedicated/) diff --git a/steamcmd_servers/README.md b/steamcmd_servers/README.md index b57e6dab..19f0f35c 100644 --- a/steamcmd_servers/README.md +++ b/steamcmd_servers/README.md @@ -37,6 +37,9 @@ This is a collection of servers that use steamcmd to install. ## Onset [onset](onset/) +## Project Zomboid +[project_zomboid](project_zomboid/) + ## Rust Staging [rust staging](rust_staging/) diff --git a/steamcmd_servers/project_zomboid/README.md b/steamcmd_servers/project_zomboid/README.md new file mode 100644 index 00000000..9a6c9389 --- /dev/null +++ b/steamcmd_servers/project_zomboid/README.md @@ -0,0 +1,23 @@ +# Project Zomboid + +Project Zomboid is the ultimate in zombie survival. Alone or in MP: you loot, build, craft, fight, farm and fish in a struggle to survive. A hardcore RPG skillset, a vast map, a massively customisable sandbox and a cute tutorial raccoon await the unwary. So how will you die? + +## Server Ports + +Project Zomboid requires one port for Steam and an additional **one port per player**. Additional ports are allocated as they connect. + +For example, when configured with a base allocation of 27016: +``` +Zomboid Steam Server started, ports 27016 and 27016 must be open on the router +Connected new client kubi ID # 0 and assigned DL port 27017 +Connected new client kubi2 ID # 1 and assigned DL port 27018 +``` + +If you're experiencing issues with players connecting it's likely because you have not allocated enough ports. These ports **must be in order** following the Steam port. + +| Port | default | +|-------------|---------| +| Game | 8766 | +| Player1 | 8767 | +| Player2 | 8768 | +| ... | 8769 | diff --git a/steamcmd_servers/project_zomboid/egg-project-zomboid.json b/steamcmd_servers/project_zomboid/egg-project-zomboid.json new file mode 100644 index 00000000..92910441 --- /dev/null +++ b/steamcmd_servers/project_zomboid/egg-project-zomboid.json @@ -0,0 +1,72 @@ +{ + "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", + "meta": { + "version": "PTDL_v1" + }, + "exported_at": "2020-06-06T11:23:23-07:00", + "name": "Project Zomboid", + "author": "iamkubi@gmail.com", + "description": "Project Zomboid is an open world survival horror video game in alpha stage development by British and Canadian independent developer, The Indie Stone. The game is set in a post apocalyptic, zombie infested world where the player is challenged to survive for as long as possible before inevitably dying.", + "image": "quay.io\/pterodactyl\/core:source", + "startup": "\/home\/container\/start-server.sh -port {{SERVER_PORT}} -steamport1 {{STEAM_PORT}} -servername \\\"{{SERVER_NAME}}\\\" -adminusername {{ADMIN_USER}} -adminpassword \"{{ADMIN_PASSWORD}}\"", + "config": { + "files": "{}", + "startup": "{\r\n \"done\": \"SERVER STARTED\",\r\n \"userInteraction\": []\r\n}", + "logs": "{}", + "stop": "^C" + }, + "scripts": { + "installation": { + "script": "apt update\r\napt -y --no-install-recommends install curl unzip lib32gcc1 ca-certificates\r\ncd \/tmp\r\ncurl -sSL -o steamcmd.tar.gz http:\/\/media.steampowered.com\/installer\/steamcmd_linux.tar.gz\r\nmkdir -p \/mnt\/server\/steam\r\ntar -xzvf steamcmd.tar.gz -C \/mnt\/server\/steam\r\ncd \/mnt\/server\/steam\r\nchown -R root:root \/mnt\r\nexport HOME=\/mnt\/server\r\n.\/steamcmd.sh +login anonymous +force_install_dir \/mnt\/server +app_update 380870 +quit\r\nmkdir -p \/mnt\/server\/.steam\/sdk32\r\ncp -v \/mnt\/server\/steam\/linux32\/steamclient.so \/mnt\/server\/.steam\/sdk32\/steamclient.so", + "container": "debian:buster-slim", + "entrypoint": "bash" + } + }, + "variables": [ + { + "name": "Server Name", + "description": "Name of the server", + "env_variable": "SERVER_NAME", + "default_value": "Project Zomboid Server", + "user_viewable": 1, + "user_editable": 1, + "rules": "required|string|max:64" + }, + { + "name": "Admin Username", + "description": "Username for the admin account", + "env_variable": "ADMIN_USER", + "default_value": "admin", + "user_viewable": 1, + "user_editable": 1, + "rules": "required|string|max:20" + }, + { + "name": "Admin Password", + "description": "Password for the admin account", + "env_variable": "ADMIN_PASSWORD", + "default_value": "password", + "user_viewable": 1, + "user_editable": 1, + "rules": "required|string|max:32" + }, + { + "name": "SteamPort", + "description": "Sets the SteamPort1 option", + "env_variable": "STEAM_PORT", + "default_value": "8766", + "user_viewable": 1, + "user_editable": 0, + "rules": "required|string|max:20" + }, + { + "name": "Max Players", + "description": "Maximum players to allow", + "env_variable": "MAX_PLAYERS", + "default_value": "10", + "user_viewable": 1, + "user_editable": 0, + "rules": "required|string|max:20" + } + ] +} \ No newline at end of file