From 5da206769fdf73efa7fd73648908951fe85182bf Mon Sep 17 00:00:00 2001 From: Thijs van Loef Date: Tue, 23 Jan 2024 20:46:30 +0100 Subject: [PATCH 1/4] Changable Query Port --- Dockerfile | 4 +++- README.md | 21 ++++++++++++--------- scripts/start.sh | 4 ++++ 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5875fccd..19601006 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ xdg-user-dirs=0.17-2 \ procps=2:3.3.17-5 \ wget=1.21-1+deb11u1 \ + net-tools \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* @@ -24,7 +25,8 @@ ENV PORT= \ ADMIN_PASSWORD= \ UPDATE_ON_BOOT=true \ RCON_ENABLED=true \ - RCON_PORT=25575 + RCON_PORT=25575 \ + QUERY_PORT=27015 COPY ./scripts/* /home/steam/server/ RUN chmod +x /home/steam/server/init.sh /home/steam/server/start.sh diff --git a/README.md b/README.md index 08d0de58..309affec 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ services: - PGID=1000 - PORT=8211 # Optional but recommended - PLAYERS=16 # Optional but recommended - - MULTITHREADING=false + - MULTITHREADING=true - RCON_ENABLED=true - RCON_PORT=25575 - ADMIN_PASSWORD="adminPasswordHere" @@ -80,6 +80,8 @@ It is highly recommended you set the following environment values before startin * PLAYERS * PORT +* PUID +* PGID | Variable | Info | Default Values | Allowed Values | |------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------|----------------| @@ -97,6 +99,7 @@ It is highly recommended you set the following environment values before startin | UPDATE_ON_BOOT** | Update/Install the server when the docker container starts (THIS HAS TO BE ENABLED THE FIRST TIME YOU RUN THE CONTAINER) | true | true/false | | RCON_ENABLED | Enable RCON for the Palworld server | true | true/false | | RCON_PORT | RCON port to connect to | 25575 | 1024-65535 | +| QUERY_PORT | Query port used to communicate with steam servers | 27015 | 1024-65535 | *highly recommended to set @@ -104,11 +107,11 @@ It is highly recommended you set the following environment values before startin ### Game Ports -| Port | Info | note | -|-------|------------------|------------------------------------------------| -| 8211 | Game Port (UDP) | | -| 27015 | Query Port (UDP) | You are not able to change this port as of now | -| 25575 | RCON Port (TCP) | | +| Port | Info | +|-------|------------------| +| 8211 | Game Port (UDP) | +| 27015 | Query Port (UDP) | +| 25575 | RCON Port (TCP) | ## Using RCON @@ -123,12 +126,12 @@ This will open a CLI that use can use to write commands to the Palworld Server. ### List of server commands -| Command | Info | -|-----------------------------------|-----------------------------------------------------| +| Command | Info | +|----------------------------------|-----------------------------------------------------| | Shutdown {Seconds} {MessageText} | The server is shut down after the number of Seconds | | DoExit | Force stop the server. | | Broadcast | Send message to all player in the server | -| KickPlayer {SteamID} | Kick player from the server.. | +| KickPlayer {SteamID} | Kick player from the server.. | | BanPlayer {SteamID} | BAN player from the server. | | TeleportToPlayer {SteamID} | Teleport to current location of target player. | | TeleportToMe {SteamID} | Target player teleport to your current location | diff --git a/scripts/start.sh b/scripts/start.sh index 29f5a450..91590765 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -34,6 +34,10 @@ if [ -n "${ADMIN_PASSWORD}" ]; then STARTCOMMAND="${STARTCOMMAND} -adminpassword=${ADMIN_PASSWORD}" fi +if [ -n "${QUERY_PORT}" ]; then + STARTCOMMAND="${STARTCOMMAND} -queryport=${QUERY_PORT}" +fi + if [ "${MULTITHREADING}" = true ]; then STARTCOMMAND="${STARTCOMMAND} -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS" fi From 604466a4869d351d53dcc75ecee862ee896d5e0c Mon Sep 17 00:00:00 2001 From: Thijs van Loef Date: Tue, 23 Jan 2024 20:53:54 +0100 Subject: [PATCH 2/4] remove troubleshooting tools --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 19601006..6eab1025 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ xdg-user-dirs=0.17-2 \ procps=2:3.3.17-5 \ wget=1.21-1+deb11u1 \ - net-tools \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* From 2d21761ff450149aab4c976c8353f8b97ef1e7ba Mon Sep 17 00:00:00 2001 From: Thijs van Loef Date: Tue, 23 Jan 2024 20:56:27 +0100 Subject: [PATCH 3/4] silence wget output --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6eab1025..577766d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* -RUN wget https://github.com/itzg/rcon-cli/releases/download/1.6.4/rcon-cli_1.6.4_linux_amd64.tar.gz -O - | tar -xz +RUN wget -q https://github.com/itzg/rcon-cli/releases/download/1.6.4/rcon-cli_1.6.4_linux_amd64.tar.gz -O - | tar -xz RUN mv rcon-cli /usr/bin/rcon-cli ENV PORT= \ From 985d60eb99c59c4f9880f9f33f428f66a94a3980 Mon Sep 17 00:00:00 2001 From: Thijs van Loef Date: Tue, 23 Jan 2024 21:01:23 +0100 Subject: [PATCH 4/4] fix capitalisation --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 309affec..e5865c53 100644 --- a/README.md +++ b/README.md @@ -99,7 +99,7 @@ It is highly recommended you set the following environment values before startin | UPDATE_ON_BOOT** | Update/Install the server when the docker container starts (THIS HAS TO BE ENABLED THE FIRST TIME YOU RUN THE CONTAINER) | true | true/false | | RCON_ENABLED | Enable RCON for the Palworld server | true | true/false | | RCON_PORT | RCON port to connect to | 25575 | 1024-65535 | -| QUERY_PORT | Query port used to communicate with steam servers | 27015 | 1024-65535 | +| QUERY_PORT | Query port used to communicate with Steam servers | 27015 | 1024-65535 | *highly recommended to set