From ac04cb614989997303c6e35261d5f85181b8ea7b Mon Sep 17 00:00:00 2001 From: Thijs van Loef Date: Thu, 26 Dec 2024 21:41:26 +0100 Subject: [PATCH 1/2] add missing options --- .env.example | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.env.example b/.env.example index 7b44554ac..267e91563 100644 --- a/.env.example +++ b/.env.example @@ -30,6 +30,8 @@ ENABLE_PLAYER_LOGGING=true PLAYER_LOGGING_POLL_PERIOD=5 DIFFICULTY=None +RANDOMIZER_TYPE= +RANDOMIZER_SEED=none DAYTIME_SPEEDRATE=1.000000 NIGHTTIME_SPEEDRATE=1.000000 EXP_RATE=1.000000 @@ -47,6 +49,7 @@ PAL_STOMACH_DECREASE_RATE=1.000000 PAL_STAMINA_DECREASE_RATE=1.000000 PAL_AUTO_HP_REGEN_RATE=1.000000 PAL_AUTO_HP_REGEN_RATE_IN_SLEEP=1.000000 +BUILD_OBJECT_HP_RATE=1.000000 BUILD_OBJECT_DAMAGE_RATE=1.000000 BUILD_OBJECT_DETERIORATION_DAMAGE_RATE=1.000000 COLLECTION_DROP_RATE=1.000000 @@ -74,6 +77,8 @@ WORK_SPEED_RATE=1.000000 AUTO_SAVE_SPAN=30.000000 IS_MULTIPLAY=False IS_PVP=False +HARDCORE=False +PAL_LOST=False CAN_PICKUP_OTHER_GUILD_DEATH_PENALTY_DROP=False ENABLE_NON_LOGIN_PENALTY=True ENABLE_FAST_TRAVEL=True @@ -81,6 +86,8 @@ IS_START_LOCATION_SELECT_BY_MAP=True EXIST_PLAYER_AFTER_LOGOUT=False ENABLE_DEFENSE_OTHER_GUILD_PLAYER=False INVISIBLE_OTHER_GUILD_BASE_CAMP_AREA_FX=False +BUILD_AREA_LIMIT=False +ITEM_WEIGHT_RATE=1.000000 COOP_PLAYER_MAX_NUM=4 REGION= USEAUTH=True @@ -88,6 +95,9 @@ BAN_LIST_URL=https://api.palworldgame.com/api/banlist.txt REST_API_ENABLED=False REST_API_PORT=8212 SHOW_PLAYER_LIST=True +ENABLE_PREDATOR_BOSS_PAL=True +MAX_BUILDING_LIMIT_NUM=0 +SERVER_REPLICATE_PAWN_CULL_DISTANCE=15000.000000 # ALLOW_CONNECT_PLATFORM Defaults to "Steam" if not set, set this to "Xbox" if you want to host a server for Xbox players. CROSSPLAY BETWEEN XBOX-STEAM IS NOT YET SUPPORTED ALLOW_CONNECT_PLATFORM=Steam USE_BACKUP_SAVE_DATA=True From 89066b94c5abdeb58f0b94d4066ecf14caabf861 Mon Sep 17 00:00:00 2001 From: Thijs van Loef Date: Thu, 26 Dec 2024 21:43:24 +0100 Subject: [PATCH 2/2] Add steam username/pass to download previous versions --- README.md | 7 +++++-- .../getting-started/configuration/server-settings.md | 2 ++ docusaurus/docs/guides/pinning-game-version.md | 3 ++- scripts/helper_install.sh | 11 ++++++++--- 4 files changed, 17 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 901c8a083..34fd9f040 100644 --- a/README.md +++ b/README.md @@ -237,7 +237,9 @@ It is highly recommended you set the following environment values before startin | AUTO_REBOOT_ENABLED | Enables automatic reboots | false | true/false | 0.21.0 | | AUTO_REBOOT_WARN_MINUTES | How long to wait to reboot the server, after the player were informed. | 5 | Integer | 0.21.0 | | AUTO_REBOOT_EVEN_IF_PLAYERS_ONLINE | Restart the Server even if there are players online. | false | true/false | 0.21.0 | -| TARGET_MANIFEST_ID | Locks game version to corespond with Manifest ID from Steam Download Depot. | | See [Manifest ID Table](#locking-specific-game-version) | 0.27.0 | +| TARGET_MANIFEST_ID | Locks game version to corespond with Manifest ID from Steam Download, use with STEAM_USERNAME/STEAM_PASSWORD Depot. | | See [Manifest ID Table](#locking-specific-game-version) | 0.27.0 | +| STEAM_USERNAME | Steam username for downloading the server with a TARGET_MANIFEST_ID. | | "string" | 1.2.2 | +| STEAM_PASSWORD | Steam password for downloading the server with a TARGET_MANIFEST_ID. | | "string" | 1.2.2 | | INSTALL_BETA_INSIDER | Installs the latest Beta version of the Palworld dedicated server | false | true/false | 0.38.0 | | DISCORD_WEBHOOK_URL | Discord webhook url found after creating a webhook on a discord server. | | `https://discord.com/api/webhooks/` | 0.22.0 | | DISCORD_SUPPRESS_NOTIFICATIONS | Enables/Disables `@silent` messages for the server messages. | false | boolean | 0.34.0 | @@ -686,7 +688,8 @@ send discord messages with docker compose: >[!WARNING] >Downgrading to a lower game version is possible, but it is unknown what impact it will have on existing saves. -> +>This requires you to set STEAM_USERNAME and STEAM_PASSWORD to a Steam account that owns the game. +>Accounts with Steam Guard enabled are currently not supported. >**Please do so at your own risk!** If **TARGET_MANIFEST_ID** environment variable is set, will lock server version to specific manifest. diff --git a/docusaurus/docs/getting-started/configuration/server-settings.md b/docusaurus/docs/getting-started/configuration/server-settings.md index 2f9300322..4fac357d3 100644 --- a/docusaurus/docs/getting-started/configuration/server-settings.md +++ b/docusaurus/docs/getting-started/configuration/server-settings.md @@ -56,6 +56,8 @@ It is highly recommended you set the following environment values before startin | AUTO_REBOOT_WARN_MINUTES | How long to wait to reboot the server, after the player were informed. | 5 | Integer | 0.21.0 | | AUTO_REBOOT_EVEN_IF_PLAYERS_ONLINE | Restart the Server even if there are players online. | false | true/false | 0.21.0 | | TARGET_MANIFEST_ID | Locks game version to corespond with Manfiest ID from Steam Download Depot. | | See [Manifest ID Table](https://palworld-server-docker.loef.dev/guides/pinning-game-version#version-to-manifest-id-table) | 0.27.0 | +| STEAM_USERNAME | Steam username for downloading the server files (only needed when using TARGET_MANIFEST_ID). | | "string" | 1.2.2 | +| STEAM_PASSWORD | Steam password for downloading the server files (only needed when using TARGET_MANIFEST_ID). | | "string" | 1.2.2 | | INSTALL_BETA_INSIDER | Installs the latest Beta version of the Palworld dedicated server | false | true/false | 0.38.0 | | DISCORD_WEBHOOK_URL | Discord webhook url found after creating a webhook on a discord server | | `https://discord.com/api/webhooks/` | 0.22.0 | | DISCORD_SUPPRESS_NOTIFICATIONS | Enables/Disables `@silent` messages for the server messages. | false | boolean | 0.34.0 | diff --git a/docusaurus/docs/guides/pinning-game-version.md b/docusaurus/docs/guides/pinning-game-version.md index 77d393656..3d0859414 100644 --- a/docusaurus/docs/guides/pinning-game-version.md +++ b/docusaurus/docs/guides/pinning-game-version.md @@ -6,7 +6,8 @@ sidebar_position: 7 :::warning Downgrading to a lower game version is possible, but it is unknown what impact it will have on existing saves. - +This requires you to set STEAM_USERNAME and STEAM_PASSWORD to a Steam account that owns the game. +Accounts with Steam Guard enabled are currently not supported. **Please do so at your own risk!** ::: diff --git a/scripts/helper_install.sh b/scripts/helper_install.sh index d141f6877..13fe96130 100644 --- a/scripts/helper_install.sh +++ b/scripts/helper_install.sh @@ -181,13 +181,18 @@ InstallServer() { targetManifest="${TARGET_MANIFEST_ID}" LogWarn "Installing Target Version: $targetManifest" + if [ -z "${STEAM_USERNAME}" ] || [ -z "${STEAM_PASSWORD}" ]; then + LogError "STEAM_USERNAME or STEAM_PASSWORD is not set. Please set these variables to install a specific version." + DiscordMessage "Install" "STEAM_USERNAME or STEAM_PASSWORD is not set. Please set these variables to install a specific version." "failure" + return 2 + fi DiscordMessage "Install" "${DISCORD_PRE_UPDATE_BOOT_MESSAGE}" "in-progress" "${DISCORD_PRE_UPDATE_BOOT_MESSAGE_ENABLED}" "${DISCORD_PRE_UPDATE_BOOT_MESSAGE_URL}" if [ "${USE_DEPOT_DOWNLOADER}" == true ]; then LogWarn "Downloading server files using DepotDownloader" - DepotDownloader -app 2394010 -depot 2394012 -manifest "$targetManifest" -osarch 64 -dir /palworld -validate - DepotDownloader -app 2394010 -depot 1006 -osarch 64 -dir /palworld -validate + DepotDownloader -app 2394010 -username "${STEAM_USERNAME}" -password "${STEAM_PASSWORD}" -depot 2394012 -manifest "$targetManifest" -osarch 64 -dir /palworld -validate + DepotDownloader -app 2394010 -username "${STEAM_USERNAME}" -password "${STEAM_PASSWORD}" -depot 1006 -osarch 64 -dir /palworld -validate else - /home/steam/steamcmd/steamcmd.sh +@sSteamCmdForcePlatformType linux +@sSteamCmdForcePlatformBitness 64 +force_install_dir "/palworld" +login anonymous +download_depot 2394010 2394012 "$targetManifest" +quit + /home/steam/steamcmd/steamcmd.sh +@sSteamCmdForcePlatformType linux +@sSteamCmdForcePlatformBitness 64 +force_install_dir "/palworld" +login "${STEAM_USERNAME}" "${STEAM_PASSWORD}" +download_depot 2394010 2394012 "$targetManifest" +quit cp -vr "/home/steam/steamcmd/linux32/steamapps/content/app_2394010/depot_2394012/." "/palworld/" fi CreateACFFile "$targetManifest"