diff --git a/README.md b/README.md index 50d6d2da0..b5776f00c 100644 --- a/README.md +++ b/README.md @@ -219,9 +219,13 @@ 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 | +| REST_API_ENABLED | Enable REST API for the palworld server | false | true/false | +| REST_API_PORT | REST API port to connect to | 8212 | 1024-65535 | | QUERY_PORT | Query port used to communicate with Steam servers | 27015 | 1024-65535 | +| ALLOW_CONNECT_PLATFORM | !!Doesn't work this version!! | Steam | unknown | | BACKUP_CRON_EXPRESSION | Setting affects frequency of automatic backups. | 0 0 \* \* \* | Needs a Cron-Expression - See [Configuring Automatic Backups with Cron](#configuring-automatic-backups-with-cron) | | BACKUP_ENABLED | Enables automatic backups | true | true/false | +| USE_BACKUP_SAVE_DATA | Enables native automatic backups | true | true/false | | DELETE_OLD_BACKUPS | Delete backups after a certain number of days | false | true/false | | OLD_BACKUP_DAYS | How many days to keep backups | 30 | any positive integer | | AUTO_UPDATE_CRON_EXPRESSION | Setting affects frequency of automatic updates. | 0 \* \* \* \* | Needs a Cron-Expression - See [Configuring Automatic Backups with Cron](#configuring-automatic-backups-with-cron) | @@ -577,6 +581,7 @@ The manifest corresponds to the release date/update versions. Manifests can be f | 1.4.1 | 6370735655629434989 | | 1.5.0 | 3750364703337203431 | | 1.5.1 | 2815085007637542021 | +| 2.0.6 | 1677469329840659324 | ## Reporting Issues/Feature Requests diff --git a/docusaurus/docs/getting-started/configuration/server-settings.md b/docusaurus/docs/getting-started/configuration/server-settings.md index 4bef3b111..7c2b38f69 100644 --- a/docusaurus/docs/getting-started/configuration/server-settings.md +++ b/docusaurus/docs/getting-started/configuration/server-settings.md @@ -39,7 +39,10 @@ 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 | +| REST_API_ENABLED | Enable REST API for the palworld server | false | true/false | +| REST_API_PORT | REST API port to connect to | 8212 | 1024-65535 | +| QUERY_PORT | Query port used to communicate with Steam servers | 27015 | 1024-65535 | +| ALLOW_CONNECT_PLATFORM | !!Doesn't work this version!! | Steam | unknown | | BACKUP_CRON_EXPRESSION | Setting affects frequency of automatic backups. | 0 0 \* \* \* | Needs a Cron-Expression - See [Configuring Automatic Backups with Cron](https://palworld-server-docker.loef.dev/guides/backup/automated-backup) | | BACKUP_ENABLED | Enables automatic backups | true | true/false | | DELETE_OLD_BACKUPS | Delete backups after a certain number of days | false | true/false | diff --git a/docusaurus/docs/guides/pinning-game-version.md b/docusaurus/docs/guides/pinning-game-version.md index abdafc3e9..53c1c20f3 100644 --- a/docusaurus/docs/guides/pinning-game-version.md +++ b/docusaurus/docs/guides/pinning-game-version.md @@ -22,3 +22,4 @@ The manifest corresponds to the release date/update versions. Manifests can be f | 1.4.1 | 6370735655629434989 | | 1.5.0 | 3750364703337203431 | | 1.5.1 | 2815085007637542021 | +| 2.0.6 | 1677469329840659324 | diff --git a/scripts/compile-settings.sh b/scripts/compile-settings.sh index 7c4c876cb..22fae7419 100755 --- a/scripts/compile-settings.sh +++ b/scripts/compile-settings.sh @@ -83,7 +83,11 @@ export RCON_PORT=${RCON_PORT:-25575} export REGION=\"${REGION:-""}\" export USEAUTH=${USEAUTH:-True} export BAN_LIST_URL=\"${BAN_LIST_URL:-https://api.palworldgame.com/api/banlist.txt}\" +export REST_API_ENABLED=\"${REST_API_ENABLED:-False}\" +export REST_API_PORT=\"${REST_API_PORT:-8212}\" export SHOW_PLAYER_LIST=${SHOW_PLAYER_LIST:-True} +export ALLOW_CONNECT_PLATFORM=${ALLOW_CONNECT_PLATFORM:-"Steam"} +export USE_BACKUP_SAVE_DATA=${USE_BACKUP_SAVE_DATA:-True} if [ "${DEBUG,,}" = true ]; then cat </dev/null diff --git a/scripts/player_logging.sh b/scripts/player_logging.sh index 37017b891..5ae80b934 100644 --- a/scripts/player_logging.sh +++ b/scripts/player_logging.sh @@ -19,7 +19,7 @@ while ! nc -z 127.0.0.1 "${RCON_PORT}"; do done while true; do - server_pid=$(pidof PalServer-Linux-Test) + server_pid=$(pidof PalServer-Linux-Shipping) if [ -n "${server_pid}" ]; then # Player IDs are usally 9 or 10 digits however when a player joins for the first time for a given boot their ID is temporary 00000000 (8x zeros) while loading # Player ID is also 00000000 (8x zeros) when in character creation diff --git a/scripts/restore.sh b/scripts/restore.sh index 87fd3be32..186b0b1ce 100644 --- a/scripts/restore.sh +++ b/scripts/restore.sh @@ -69,7 +69,7 @@ if [ -f "$BACKUP_FILE" ]; then exit 1 fi - server_pid=$(pidof PalServer-Linux-Test) + server_pid=$(pidof PalServer-Linux-Shipping) if [ -n "${server_pid}" ]; then LogInfo "Waiting for Palworld to exit.." tail --pid="${server_pid}" -f /dev/null diff --git a/scripts/start.sh b/scripts/start.sh index 4025bb769..6785f3f81 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -64,7 +64,7 @@ if [ "$architecture" == "arm64" ]; then ;; esac - sed -i "s|\(\"\$UE_PROJECT_ROOT\/Pal\/Binaries\/Linux\/PalServer-Linux-Test\" Pal \"\$@\"\)|LD_LIBRARY_PATH=/home/steam/steamcmd/linux64:\$LD_LIBRARY_PATH $box64_binary \1|" ./PalServer-arm64.sh + sed -i "s|\(\"\$UE_PROJECT_ROOT\/Pal\/Binaries\/Linux\/PalServer-Linux-Shipping\" Pal \"\$@\"\)|LD_LIBRARY_PATH=/home/steam/steamcmd/linux64:\$LD_LIBRARY_PATH $box64_binary \1|" ./PalServer-arm64.sh chmod +x ./PalServer-arm64.sh STARTCOMMAND=("./PalServer-arm64.sh") else