Skip to content

Commit

Permalink
Update Project Zomboid egg
Browse files Browse the repository at this point in the history
Adds config variables and assigns ports properly.
  • Loading branch information
iamkubi committed Jun 6, 2020
1 parent 52dafd7 commit f9c2310
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 5 deletions.
23 changes: 23 additions & 0 deletions project_zomboid/README.md
Original file line number Diff line number Diff line change
@@ -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 |
56 changes: 51 additions & 5 deletions project_zomboid/egg-project-zomboid.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"meta": {
"version": "PTDL_v1"
},
"exported_at": "2020-04-14T18:40:33-07:00",
"exported_at": "2020-06-06T11:23:23-07:00",
"name": "Project Zomboid",
"author": "[email protected]",
"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",
"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}",
Expand All @@ -18,9 +18,55 @@
"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": "ubuntu:18.04",
"container": "debian:buster-slim",
"entrypoint": "bash"
}
},
"variables": []
}
"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"
}
]
}

0 comments on commit f9c2310

Please sign in to comment.