Skip to content

Commit 70b4b96

Browse files
authored
Merge pull request #649 from thijsvanloef/fix/manifest-depot-license
Add option for steam username/password to download previous versions
2 parents 9df02b3 + 89066b9 commit 70b4b96

File tree

5 files changed

+27
-6
lines changed

5 files changed

+27
-6
lines changed

.env.example

+10
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ ENABLE_PLAYER_LOGGING=true
3030
PLAYER_LOGGING_POLL_PERIOD=5
3131

3232
DIFFICULTY=None
33+
RANDOMIZER_TYPE=
34+
RANDOMIZER_SEED=none
3335
DAYTIME_SPEEDRATE=1.000000
3436
NIGHTTIME_SPEEDRATE=1.000000
3537
EXP_RATE=1.000000
@@ -47,6 +49,7 @@ PAL_STOMACH_DECREASE_RATE=1.000000
4749
PAL_STAMINA_DECREASE_RATE=1.000000
4850
PAL_AUTO_HP_REGEN_RATE=1.000000
4951
PAL_AUTO_HP_REGEN_RATE_IN_SLEEP=1.000000
52+
BUILD_OBJECT_HP_RATE=1.000000
5053
BUILD_OBJECT_DAMAGE_RATE=1.000000
5154
BUILD_OBJECT_DETERIORATION_DAMAGE_RATE=1.000000
5255
COLLECTION_DROP_RATE=1.000000
@@ -74,20 +77,27 @@ WORK_SPEED_RATE=1.000000
7477
AUTO_SAVE_SPAN=30.000000
7578
IS_MULTIPLAY=False
7679
IS_PVP=False
80+
HARDCORE=False
81+
PAL_LOST=False
7782
CAN_PICKUP_OTHER_GUILD_DEATH_PENALTY_DROP=False
7883
ENABLE_NON_LOGIN_PENALTY=True
7984
ENABLE_FAST_TRAVEL=True
8085
IS_START_LOCATION_SELECT_BY_MAP=True
8186
EXIST_PLAYER_AFTER_LOGOUT=False
8287
ENABLE_DEFENSE_OTHER_GUILD_PLAYER=False
8388
INVISIBLE_OTHER_GUILD_BASE_CAMP_AREA_FX=False
89+
BUILD_AREA_LIMIT=False
90+
ITEM_WEIGHT_RATE=1.000000
8491
COOP_PLAYER_MAX_NUM=4
8592
REGION=
8693
USEAUTH=True
8794
BAN_LIST_URL=https://api.palworldgame.com/api/banlist.txt
8895
REST_API_ENABLED=False
8996
REST_API_PORT=8212
9097
SHOW_PLAYER_LIST=True
98+
ENABLE_PREDATOR_BOSS_PAL=True
99+
MAX_BUILDING_LIMIT_NUM=0
100+
SERVER_REPLICATE_PAWN_CULL_DISTANCE=15000.000000
91101
# 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
92102
ALLOW_CONNECT_PLATFORM=Steam
93103
USE_BACKUP_SAVE_DATA=True

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,9 @@ It is highly recommended you set the following environment values before startin
237237
| AUTO_REBOOT_ENABLED | Enables automatic reboots | false | true/false | 0.21.0 |
238238
| AUTO_REBOOT_WARN_MINUTES | How long to wait to reboot the server, after the player were informed. | 5 | Integer | 0.21.0 |
239239
| AUTO_REBOOT_EVEN_IF_PLAYERS_ONLINE | Restart the Server even if there are players online. | false | true/false | 0.21.0 |
240-
| 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 |
240+
| 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 |
241+
| STEAM_USERNAME | Steam username for downloading the server with a TARGET_MANIFEST_ID. | | "string" | 1.2.2 |
242+
| STEAM_PASSWORD | Steam password for downloading the server with a TARGET_MANIFEST_ID. | | "string" | 1.2.2 |
241243
| INSTALL_BETA_INSIDER | Installs the latest Beta version of the Palworld dedicated server | false | true/false | 0.38.0 |
242244
| DISCORD_WEBHOOK_URL | Discord webhook url found after creating a webhook on a discord server. | | `https://discord.com/api/webhooks/<webhook_id>` | 0.22.0 |
243245
| 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:
686688
687689
>[!WARNING]
688690
>Downgrading to a lower game version is possible, but it is unknown what impact it will have on existing saves.
689-
>
691+
>This requires you to set STEAM_USERNAME and STEAM_PASSWORD to a Steam account that owns the game.
692+
>Accounts with Steam Guard enabled are currently not supported.
690693
>**Please do so at your own risk!**
691694
692695
If **TARGET_MANIFEST_ID** environment variable is set, will lock server version to specific manifest.

docusaurus/docs/getting-started/configuration/server-settings.md

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ It is highly recommended you set the following environment values before startin
5656
| AUTO_REBOOT_WARN_MINUTES | How long to wait to reboot the server, after the player were informed. | 5 | Integer | 0.21.0 |
5757
| AUTO_REBOOT_EVEN_IF_PLAYERS_ONLINE | Restart the Server even if there are players online. | false | true/false | 0.21.0 |
5858
| 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 |
59+
| STEAM_USERNAME | Steam username for downloading the server files (only needed when using TARGET_MANIFEST_ID). | | "string" | 1.2.2 |
60+
| STEAM_PASSWORD | Steam password for downloading the server files (only needed when using TARGET_MANIFEST_ID). | | "string" | 1.2.2 |
5961
| INSTALL_BETA_INSIDER | Installs the latest Beta version of the Palworld dedicated server | false | true/false | 0.38.0 |
6062
| DISCORD_WEBHOOK_URL | Discord webhook url found after creating a webhook on a discord server | | `https://discord.com/api/webhooks/<webhook_id>` | 0.22.0 |
6163
| DISCORD_SUPPRESS_NOTIFICATIONS | Enables/Disables `@silent` messages for the server messages. | false | boolean | 0.34.0 |

docusaurus/docs/guides/pinning-game-version.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ sidebar_position: 7
66

77
:::warning
88
Downgrading to a lower game version is possible, but it is unknown what impact it will have on existing saves.
9-
9+
This requires you to set STEAM_USERNAME and STEAM_PASSWORD to a Steam account that owns the game.
10+
Accounts with Steam Guard enabled are currently not supported.
1011
**Please do so at your own risk!**
1112
:::
1213

scripts/helper_install.sh

+8-3
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,18 @@ InstallServer() {
181181
targetManifest="${TARGET_MANIFEST_ID}"
182182

183183
LogWarn "Installing Target Version: $targetManifest"
184+
if [ -z "${STEAM_USERNAME}" ] || [ -z "${STEAM_PASSWORD}" ]; then
185+
LogError "STEAM_USERNAME or STEAM_PASSWORD is not set. Please set these variables to install a specific version."
186+
DiscordMessage "Install" "STEAM_USERNAME or STEAM_PASSWORD is not set. Please set these variables to install a specific version." "failure"
187+
return 2
188+
fi
184189
DiscordMessage "Install" "${DISCORD_PRE_UPDATE_BOOT_MESSAGE}" "in-progress" "${DISCORD_PRE_UPDATE_BOOT_MESSAGE_ENABLED}" "${DISCORD_PRE_UPDATE_BOOT_MESSAGE_URL}"
185190
if [ "${USE_DEPOT_DOWNLOADER}" == true ]; then
186191
LogWarn "Downloading server files using DepotDownloader"
187-
DepotDownloader -app 2394010 -depot 2394012 -manifest "$targetManifest" -osarch 64 -dir /palworld -validate
188-
DepotDownloader -app 2394010 -depot 1006 -osarch 64 -dir /palworld -validate
192+
DepotDownloader -app 2394010 -username "${STEAM_USERNAME}" -password "${STEAM_PASSWORD}" -depot 2394012 -manifest "$targetManifest" -osarch 64 -dir /palworld -validate
193+
DepotDownloader -app 2394010 -username "${STEAM_USERNAME}" -password "${STEAM_PASSWORD}" -depot 1006 -osarch 64 -dir /palworld -validate
189194
else
190-
/home/steam/steamcmd/steamcmd.sh +@sSteamCmdForcePlatformType linux +@sSteamCmdForcePlatformBitness 64 +force_install_dir "/palworld" +login anonymous +download_depot 2394010 2394012 "$targetManifest" +quit
195+
/home/steam/steamcmd/steamcmd.sh +@sSteamCmdForcePlatformType linux +@sSteamCmdForcePlatformBitness 64 +force_install_dir "/palworld" +login "${STEAM_USERNAME}" "${STEAM_PASSWORD}" +download_depot 2394010 2394012 "$targetManifest" +quit
191196
cp -vr "/home/steam/steamcmd/linux32/steamapps/content/app_2394010/depot_2394012/." "/palworld/"
192197
fi
193198
CreateACFFile "$targetManifest"

0 commit comments

Comments
 (0)