1
0
mirror of https://github.com/parkervcp/eggs.git synced 2024-10-06 23:57:07 +02:00

Updated Project Zomboid Egg

Updated ports according to PZ's Network changes.
Updated Readme
Replaced old not recognized -steamport1 with new -udpport parameter
This commit is contained in:
Piotr Krawiecki 2023-05-10 03:24:22 +02:00
parent b9dc587044
commit 62cec86e02
2 changed files with 11 additions and 16 deletions

View File

@ -4,21 +4,16 @@ Project Zomboid is the ultimate in zombie survival. Alone or in MP: you loot, bu
## 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:
Project Zomboid requires one port for game data and one port for Steam.
```log
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
> *** SERVER STARTED ****.
> *** Steam is enabled.
> Server is listening on port 16261 (for Steam connection) and port 16262 (for UDPRakNet connection).
> Clients should use 16261 port for connections.
```
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 |
| DefaultPort | 16261 |
| UDPPort | 16262 |

View File

@ -15,7 +15,7 @@
"ghcr.io\/parkervcp\/games:source"
],
"file_denylist": [],
"startup": "\/home\/container\/start-server.sh -port {{SERVER_PORT}} -steamport1 {{STEAM_PORT}} -cachedir=\/home\/container\/.cache -servername \"{{SERVER_NAME}}\" -adminusername {{ADMIN_USER}} -adminpassword \"{{ADMIN_PASSWORD}}\"",
"startup": "\/home\/container\/start-server.sh -port {{SERVER_PORT}} -udpport {{STEAM_PORT}} -cachedir=\/home\/container\/.cache -servername \"{{SERVER_NAME}}\" -adminusername {{ADMIN_USER}} -adminpassword \"{{ADMIN_PASSWORD}}\"",
"config": {
"files": "{}",
"startup": "{\r\n \"done\": \"SERVER STARTED\"\r\n}",
@ -59,11 +59,11 @@
},
{
"name": "SteamPort",
"description": "Sets the SteamPort1 option",
"description": "Sets the UFPPort option",
"env_variable": "STEAM_PORT",
"default_value": "8766",
"default_value": "16262",
"user_viewable": true,
"user_editable": false,
"user_editable": true,
"rules": "required|string|max:20"
},
{