From 96f4912ae60b175f2067248225b838aba1ec7ac9 Mon Sep 17 00:00:00 2001 From: Blocka Wan Date: Tue, 13 Feb 2024 00:11:34 +0800 Subject: [PATCH 1/2] add docusaurus zh-cn traslation --- .../docs/getting-started/quick-setup.md | 4 +- .../current/getting-started/quick-setup.md | 2 +- .../current.json | 14 +- .../current/advanced/kubernetes.md | 10 +- .../current/advanced/palworld-directory.md | 27 ++++ .../configuration/game-settings.md | 149 +++++++++--------- .../configuration/server-commands.md | 46 +++--- .../configuration/server-settings.md | 103 ++++++------ .../current/getting-started/quick-setup.md | 60 +++---- .../current/guides/automatic-reboots.md | 26 ++- .../current/guides/automatic-updates.md | 28 ++-- .../current/guides/backup/automated-backup.md | 18 +-- .../current/guides/backup/creating-backup.md | 8 +- .../current/guides/backup/restoring-backup.md | 31 ++-- .../guides/discord/discord-webhooks.md | 10 +- .../current/known-issues/known-issues.md | 29 ++-- .../zh/docusaurus-theme-classic/footer.json | 12 +- .../zh/docusaurus-theme-classic/navbar.json | 6 +- 18 files changed, 305 insertions(+), 278 deletions(-) create mode 100644 docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/advanced/palworld-directory.md diff --git a/docusaurus/docs/getting-started/quick-setup.md b/docusaurus/docs/getting-started/quick-setup.md index c420d573a..d4219dcbc 100644 --- a/docusaurus/docs/getting-started/quick-setup.md +++ b/docusaurus/docs/getting-started/quick-setup.md @@ -56,7 +56,7 @@ services: ``` As an alternative, you can copy the [.env.example](https://github.com/thijsvanloef/palworld-server-docker/blob/main/.env.example) file to a new file called **.env** file. -Modify it to your needs, check out the [environment variables](#environment-variables) section to check the correct +Modify it to your needs, check out the [environment variables](https://palworld-server-docker.loef.dev/getting-started/configuration/server-settings#environment-variables) section to check the correct values. Modify your [docker-compose.yml](https://github.com/thijsvanloef/palworld-server-docker/blob/main/docker-compose.yml) to this: ```yml @@ -102,7 +102,7 @@ docker run -d \ ``` As an alternative, you can copy the [.env.example](https://github.com/thijsvanloef/palworld-server-docker/blob/main/.env.example) file to a new file called **.env** file. -Modify it to your needs, check out the [environment variables](#environment-variables) section to check the +Modify it to your needs, check out the [environment variables](https://palworld-server-docker.loef.dev/getting-started/configuration/server-settings#environment-variables) section to check the correct values. Change your docker run command to this: ```bash diff --git a/docusaurus/i18n/ko/docusaurus-plugin-content-docs/current/getting-started/quick-setup.md b/docusaurus/i18n/ko/docusaurus-plugin-content-docs/current/getting-started/quick-setup.md index f6ba516b4..5bfec7843 100644 --- a/docusaurus/i18n/ko/docusaurus-plugin-content-docs/current/getting-started/quick-setup.md +++ b/docusaurus/i18n/ko/docusaurus-plugin-content-docs/current/getting-started/quick-setup.md @@ -56,7 +56,7 @@ services: 환경 변수를 설정하는 또 다른 방법으로 [.env.example](https://github.com/thijsvanloef/palworld-server-docker/blob/main/.env.example) 파일을 **.env** 라는 새로운 파일에 복사할 수 있습니다. -필요에 맞게 수정하고 [환경 변수](https://palworld-server-docker.loef.dev/getting-started/configuration/server-settings#environment-variables) 섹션에서 올바른 값을 확인해보세요. [docker-compose.yml](https://github.com/thijsvanloef/palworld-server-docker/blob/main/docker-compose.yml)을 다음과 같이 수정합니다: +필요에 맞게 수정하고 [환경 변수](https://palworld-server-docker.loef.dev/ko/getting-started/configuration/server-settings/#환경-변수) 섹션에서 올바른 값을 확인해보세요. [docker-compose.yml](https://github.com/thijsvanloef/palworld-server-docker/blob/main/docker-compose.yml)을 다음과 같이 수정합니다: ```yml services: diff --git a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current.json b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current.json index 2f7aabd44..ef7027eb7 100644 --- a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current.json +++ b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current.json @@ -1,30 +1,30 @@ { "version.label": { - "message": "Next", + "message": "下一步", "description": "The label for version current" }, "sidebar.tutorialSidebar.category.Getting Started": { - "message": "Getting Started", + "message": "入门", "description": "The label for category Getting Started in sidebar tutorialSidebar" }, "sidebar.tutorialSidebar.category.Configuration": { - "message": "Configuration", + "message": "配置", "description": "The label for category Configuration in sidebar tutorialSidebar" }, "sidebar.tutorialSidebar.category.Guides": { - "message": "Guides", + "message": "指南", "description": "The label for category Guides in sidebar tutorialSidebar" }, "sidebar.tutorialSidebar.category.Backup": { - "message": "Backup", + "message": "备份", "description": "The label for category Backup in sidebar tutorialSidebar" }, "sidebar.tutorialSidebar.category.Discord integration": { - "message": "Discord integration", + "message": "Discord集成", "description": "The label for category Discord integration in sidebar tutorialSidebar" }, "sidebar.tutorialSidebar.category.Advanced": { - "message": "Advanced", + "message": "高级配置", "description": "The label for category Advanced in sidebar tutorialSidebar" } } diff --git a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/advanced/kubernetes.md b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/advanced/kubernetes.md index fd8214491..469aa9774 100644 --- a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/advanced/kubernetes.md +++ b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/advanced/kubernetes.md @@ -4,11 +4,11 @@ sidebar_position: 1 # Kubernetes -All files you will need to deploy this container to kubernetes are located in the [k8s folder](https://github.com/thijsvanloef/palworld-server-docker/tree/main/k8s). +部署此容器到 Kubernetes 所需的所有文件都位于 [k8s folder](https://github.com/thijsvanloef/palworld-server-docker/tree/main/k8s)。 -## Setup Palworld in kubernetes +## 在 Kubernetes 中设置 Palworld -Use the following commands to setup this Palworld container in Kubernetes: +使用以下命令在 Kubernetes 中设置 Palworld 容器: * `kubectl apply -f pvc.yaml` * `kubectl apply -f configmap.yaml` @@ -16,6 +16,6 @@ Use the following commands to setup this Palworld container in Kubernetes: * `kubectl apply -f service.yaml` * `kubectl apply -f deployment.yaml` -## Using helm chart +## 使用 Helm Chart -The official helm chart can be found in a seperate repository, [palworld-server-chart](https://github.com/Twinki14/palworld-server-chart) +官方 Helm Chart 可在单独的存储库, [palworld-server-chart](https://github.com/Twinki14/palworld-server-chart) 找到。 diff --git a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/advanced/palworld-directory.md b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/advanced/palworld-directory.md new file mode 100644 index 000000000..4c5a68759 --- /dev/null +++ b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/advanced/palworld-directory.md @@ -0,0 +1,27 @@ +--- +sidebar_position: 1 +--- + +# Palworld 目录 + +所有与 Palworld 数据相关的内容都在容器内的 `/palworld` 文件夹中。 + +## 文件夹结构 + +![文件夹结构](../../../../../../docusaurus/docs/assets/folder_structure.jpg) + +| 文件夹 | 用途 | +|------------------------------|-------------------------------------------------------------------| +| palworld | 包含所有 Palworld 服务器文件的根文件夹 | +| backups | 存储所有 `backup` 命令生成的备份的文件夹 | +| Pal/Saved/Config/LinuxServer | 包含所有 .ini 配置文件的文件夹,用于手动配置 | + +## 将数据目录附加到主机文件系统 + +将 palworld 文件夹附加到主机系统的最简单方法是使用 docker-compose.yml 文件中给出的示例: +```yml + volumes: + - ./palworld:/palworld/ +``` + +这将在当前工作目录中创建一个 palworld 文件夹并挂载 /palworld 文件夹。 diff --git a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/configuration/game-settings.md b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/configuration/game-settings.md index 82411de3e..3c29c87b3 100644 --- a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/configuration/game-settings.md +++ b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/configuration/game-settings.md @@ -2,96 +2,97 @@ sidebar_position: 2 --- -# Game Settings +# 游戏设置 -## With Environment Variables +## 环境变量 :::warning -These Environment Variables and Settings are subject to change since the game is still in beta. +由于游戏仍处于测试阶段,这些环境变量和设置可能会发生变化。 -Check out the [official webpage for the supported parameters.](https://tech.palworldgame.com/optimize-game-balance) +请查看 [官方网页以获取支持的参数](https://tech.palworldgame.com/optimize-game-balance)。 ::: -Converting server settings to environment variables follow the same principles (with some exceptions): +将服务器设置转换为环境变量遵循相同的原则(有一些例外情况): -* all capital letters -* split words by inserting an underscore -* remove the single letter if the setting starts with one (like 'b') +* 所有大写字母 +* 通过插入下划线来拆分单词 +* 如果设置以单个字母开头,则删除该字母(如 'b') -For example: +例如: * Difficulty -> DIFFICULTY * PalSpawnNumRate -> PAL_SPAWN_NUM_RATE * bIsPvP -> IS_PVP -| Variable | Description | Default Value | Allowed Value | -|-------------------------------------------|----------------------------------------------------------------|----------------------------------------------------------------------------------------------|----------------------------------------| -| DIFFICULTY | Game Difficulty | None | `None`,`Normal`,`Difficult` | -| DAYTIME_SPEEDRATE | Day time speed - Smaller number means shorter days | 1.000000 | Float | -| NIGHTTIME_SPEEDRATE | Night time speed - Smaller number means shorter nights | 1.000000 | Float | -| EXP_RATE | EXP earn rate | 1.000000 | Float | -| PAL_CAPTURE_RATE | Pal capture rate | 1.000000 | Float | -| PAL_SPAWN_NUM_RATE | Pal appearance rate | 1.000000 | Float | -| PAL_DAMAGE_RATE_ATTACK | Damage from pals multipiler | 1.000000 | Float | -| PAL_DAMAGE_RATE_DEFENSE | Damage to pals multipiler | 1.000000 | Float | -| PLAYER_DAMAGE_RATE_ATTACK | Damage from player multipiler | 1.000000 | Float | -| PLAYER_DAMAGE_RATE_DEFENSE | Damage to player multipiler | 1.000000 | Float | -| PLAYER_STOMACH_DECREASE_RATE | Player hunger depletion rate | 1.000000 | Float | -| PLAYER_STAMINA_DECREASE_RATE | Player stamina reduction rate | 1.000000 | Float | -| PLAYER_AUTO_HP_REGEN_RATE | Player auto HP regeneration rate | 1.000000 | Float | -| PLAYER_AUTO_HP_REGEN_RATE_IN_SLEEP | Player sleep HP regeneration rate | 1.000000 | Float | -| PAL_STOMACH_DECREASE_RATE | Pal hunger depletion rate | 1.000000 | Float | -| PAL_STAMINA_DECREASE_RATE | Pal stamina reduction rate | 1.000000 | Float | -| PAL_AUTO_HP_REGEN_RATE | Pal auto HP regeneration rate | 1.000000 | Float | -| PAL_AUTO_HP_REGEN_RATE_IN_SLEEP | Pal sleep health regeneration rate (in Palbox) | 1.000000 | Float | -| BUILD_OBJECT_DAMAGE_RATE | Damage to structure multipiler | 1.000000 | Float | -| BUILD_OBJECT_DETERIORATION_DAMAGE_RATE | Structure determination rate | 1.000000 | Float | -| COLLECTION_DROP_RATE | Getherable items multipiler | 1.000000 | Float | -| COLLECTION_OBJECT_HP_RATE | Getherable objects HP multipiler | 1.000000 | Float | -| COLLECTION_OBJECT_RESPAWN_SPEED_RATE | Getherable objects respawn interval - The smaller the number, the faster the regeneration | 1.000000 | Float | -| ENEMY_DROP_ITEM_RATE | Dropped Items Multipiler | 1.000000 | Float | -| DEATH_PENALTY | Death Penalty None: No death penalty Item: Drops items other than equipment ItemAndEquipment: Drops all items All: Drops all PALs and all items. | All | `None`,`Item`,`ItemAndEquipment`,`All` | -| ENABLE_PLAYER_TO_PLAYER_DAMAGE | Allows players to cause damage to players | False | Boolean | -| ENABLE_FRIENDLY_FIRE | Allow friendly fire | False | Boolean | -| ENABLE_INVADER_ENEMY | Enable invaders | True | Boolean | -| ACTIVE_UNKO | Enable UNKO (?) | False | Boolean | -| ENABLE_AIM_ASSIST_PAD | Enable controller aim assist | True | Boolean | -| ENABLE_AIM_ASSIST_KEYBOARD | Enable Keyboard aim assist | False | Boolean | -| DROP_ITEM_MAX_NUM | Maximum number of drops in the world | 3000 | Integer | -| DROP_ITEM_MAX_NUM_UNKO | Maximum number of UNKO drops in the world | 100 | Integer | -| BASE_CAMP_MAX_NUM | Maximum number of base camps | 128 | Integer | -| BASE_CAMP_WORKER_MAX_NUM | Maximum number of workers | 15 | Integer | -| DROP_ITEM_ALIVE_MAX_HOURS | Time it takes for items to despawn in hours | 1.000000 | Float | -| AUTO_RESET_GUILD_NO_ONLINE_PLAYERS | Automatically reset guild when no players are online | False | Bool | -| AUTO_RESET_GUILD_TIME_NO_ONLINE_PLAYERS | Time to automatically reset guild when no players are online | 72.000000 | Float | -| GUILD_PLAYER_MAX_NUM | Max player of Guild | 20 | Integer | -| PAL_EGG_DEFAULT_HATCHING_TIME | Time(h) to incubate massive egg | 72.000000 | Float | -| WORK_SPEED_RATE | Work speed muliplier | 1.000000 | Float | -| IS_MULTIPLAY | Enable multiplayer | False | Boolean | -| IS_PVP | Enable PVP | False | Boolean | -| CAN_PICKUP_OTHER_GUILD_DEATH_PENALTY_DROP | Allow players from other guilds to pick up death penalty items | False | Boolean | -| ENABLE_NON_LOGIN_PENALTY | Enable non-login penalty | True | Boolean | -| ENABLE_FAST_TRAVEL | Enable fast travel | True | Boolean | -| IS_START_LOCATION_SELECT_BY_MAP | Enable selecting of start location | True | Boolean | -| EXIST_PLAYER_AFTER_LOGOUT | Toggle for deleting players when they log off | False | Boolean | -| ENABLE_DEFENSE_OTHER_GUILD_PLAYER | Allows defense against other guild players | False | Boolean | -| COOP_PLAYER_MAX_NUM | Maximum number of players in a guild | 4 | Integer | -| REGION | Region | | String | -| USEAUTH | Use authentication | True | Boolean | -| BAN_LIST_URL | Which ban list to use | [https://api.palworldgame.com/api/banlist.txt](https://api.palworldgame.com/api/banlist.txt) | string | - -### Manually - -When the server starts, a `PalWorldSettings.ini` file will be created in the following location: `/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini` - -Please keep in mind that the ENV variables will always overwrite the changes made to `PalWorldSettings.ini`. +| 环境变量 | 描述 | 默认值 | 可用值 | +|-------------------------------------------|------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------|----------------------------------------| +| DIFFICULTY | 游戏难度 | None | `None`,`Normal`,`Difficult` | +| DAYTIME_SPEEDRATE | 白天流逝速度 - 更小的值代表更快的白天 | 1.000000 | Float | +| NIGHTTIME_SPEEDRATE | 夜晚流逝速度 - 更小的值代表更快的夜晚 | 1.000000 | Float | +| EXP_RATE | 经验值获取比率 | 1.000000 | Float | +| PAL_CAPTURE_RATE | 帕鲁捕捉比率 | 1.000000 | Float | +| PAL_SPAWN_NUM_RATE | 帕鲁刷新比率 | 1.000000 | Float | +| PAL_DAMAGE_RATE_ATTACK | 多人游戏中来自帕鲁的伤害比率 | 1.000000 | Float | +| PAL_DAMAGE_RATE_DEFENSE | 多人游戏中对帕鲁的伤害比率 | 1.000000 | Float | +| PLAYER_DAMAGE_RATE_ATTACK | 多人游戏中来自玩家的伤害比率 | 1.000000 | Float | +| PLAYER_DAMAGE_RATE_DEFENSE | 多人游戏中对玩家的伤害比率 | 1.000000 | Float | +| PLAYER_STOMACH_DECREASE_RATE | 玩家饱食度流逝比率 | 1.000000 | Float | +| PLAYER_STAMINA_DECREASE_RATE | 玩家体力减少比率 | 1.000000 | Float | +| PLAYER_AUTO_HP_REGEN_RATE | 玩家生命值自动恢复比率 | 1.000000 | Float | +| PLAYER_AUTO_HP_REGEN_RATE_IN_SLEEP | 玩家睡眠时生命值自动恢复比率 | 1.000000 | Float | +| PAL_STOMACH_DECREASE_RATE | 帕鲁饱食度流逝比率 | 1.000000 | Float | +| PAL_STAMINA_DECREASE_RATE | 帕鲁体力减少比率 | 1.000000 | Float | +| PAL_AUTO_HP_REGEN_RATE | 帕鲁生命值自动恢复比率 | 1.000000 | Float | +| PAL_AUTO_HP_REGEN_RATE_IN_SLEEP | 帕鲁生命值自动恢复比率(在终端盒中) | 1.000000 | Float | +| BUILD_OBJECT_DAMAGE_RATE | 多人游戏中对建筑结构的伤害比率 | 1.000000 | Float | +| BUILD_OBJECT_DETERIORATION_DAMAGE_RATE | 建筑结构的自然劣化比率 | 1.000000 | Float | +| COLLECTION_DROP_RATE | 多人游戏中道具掉落比率 | 1.000000 | Float | +| COLLECTION_OBJECT_HP_RATE | 多人游戏中对象生命比率 | 1.000000 | Float | +| COLLECTION_OBJECT_RESPAWN_SPEED_RATE | 可获取对象的刷新速度 - 更小的值代表更快的刷新速度 | 1.000000 | Float | +| ENEMY_DROP_ITEM_RATE | 多人游戏中敌人掉落道具的比率 | 1.000000 | Float | +| DEATH_PENALTY | 死亡惩罚
None: 没有死亡惩罚
Item: 更高几率掉落道具
ItemAndEquipment: 掉落所有道具
All: 掉落所有道具和帕鲁 | All | `None`,`Item`,`ItemAndEquipment`,`All` | +| ENABLE_PLAYER_TO_PLAYER_DAMAGE | 允许 PVP 伤害 | False | Boolean | +| ENABLE_FRIENDLY_FIRE | 允许队友伤害 | False | Boolean | +| ENABLE_INVADER_ENEMY | 启用营地入侵 | True | Boolean | +| ACTIVE_UNKO | 启用 UNKO (?) | False | Boolean | +| ENABLE_AIM_ASSIST_PAD | 启用控制器辅助瞄准 | True | Boolean | +| ENABLE_AIM_ASSIST_KEYBOARD | 启用键盘辅助瞄准 | False | Boolean | +| DROP_ITEM_MAX_NUM | 世界中最大掉落物品数量 | 3000 | Integer | +| DROP_ITEM_MAX_NUM_UNKO | 世界中最大 UNKO 掉落数量 | 100 | Integer | +| BASE_CAMP_MAX_NUM | 最大营地数量 | 128 | Integer | +| BASE_CAMP_WORKER_MAX_NUM | 营地最大工位数量 | 15 | Integer | +| DROP_ITEM_ALIVE_MAX_HOURS | 掉落物品移除时间 | 1.000000 | Float | +| AUTO_RESET_GUILD_NO_ONLINE_PLAYERS | 无玩家在线时自动重置公会 | False | Bool | +| AUTO_RESET_GUILD_TIME_NO_ONLINE_PLAYERS | 无玩家在线时自动重置公会的时间 | 72.000000 | Float | +| GUILD_PLAYER_MAX_NUM | 公会最大成员数量 | 20 | Integer | +| PAL_EGG_DEFAULT_HATCHING_TIME | 孵化巨大型帕鲁蛋所需消耗时间(小时) | 72.000000 | Float | +| WORK_SPEED_RATE | 多人游戏中的工作速度比率 | 1.000000 | Float | +| IS_MULTIPLAY | 启用多人游戏 | False | Boolean | +| IS_PVP | 启用 PVP | False | Boolean | +| CAN_PICKUP_OTHER_GUILD_DEATH_PENALTY_DROP | 允许玩家拾取其他公会玩家的掉落物品或死亡惩罚 | False | Boolean | +| ENABLE_NON_LOGIN_PENALTY | 启用无登录惩罚 | True | Boolean | +| ENABLE_FAST_TRAVEL | 启用快速旅行 | True | Boolean | +| IS_START_LOCATION_SELECT_BY_MAP | 启用出生地选择 | True | Boolean | +| EXIST_PLAYER_AFTER_LOGOUT | 玩家注销时是否删除玩家 | False | Boolean | +| ENABLE_DEFENSE_OTHER_GUILD_PLAYER | 允许防御其他公会玩家 | False | Boolean | +| COOP_PLAYER_MAX_NUM | 工会中的最大玩家数量 | 4 | Integer | +| REGION | 地区 | | String | +| USEAUTH | 使用授权验证 | True | Boolean | +| BAN_LIST_URL | 使用禁用列表 | [https://api.palworldgame.com/api/banlist.txt](https://api.palworldgame.com/api/banlist.txt) | string | + + +### 手动设置 + +当服务器启动时,将在以下位置创建一个 `PalWorldSettings.ini` 文件: `/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini` + +请注意,环境变量始终会覆盖对 `PalWorldSettings.ini` 的更改。 :::warning -Changes can only be made to `PalWorldSettings.ini` while the server is off. +只有在服务器关闭时才能对 `PalWorldSettings.ini` 进行更改。 -Any changes made while the server is live will be overwritten when the server stops. +如果在服务器正在运行时进行任何更改,则在服务器停止时将被覆盖。 ::: -For a more detailed list of server settings go to: [Palworld Wiki](https://palworld.wiki.gg/wiki/PalWorldSettings.ini) +要获取更详细的服务器设置列表,请访问: [Palworld Wiki](https://palworld.wiki.gg/wiki/PalWorldSettings.ini) -For more detailed server settings explanations go to: [shockbyte](https://shockbyte.com/billing/knowledgebase/1189/How-to-Configure-your-Palworld-server.html) +要获取更详细的服务器设置解释,请访问: [shockbyte](https://shockbyte.com/billing/knowledgebase/1189/How-to-Configure-your-Palworld-server.html) diff --git a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/configuration/server-commands.md b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/configuration/server-commands.md index e08335ef7..beccb4274 100644 --- a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/configuration/server-commands.md +++ b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/configuration/server-commands.md @@ -2,40 +2,44 @@ sidebar_position: 3 --- -# Server Commands (RCON) +# 服务器命令(RCON) -How to use RCON to interact with the server. +如何使用 RCON 与服务器进行交互。 ## RCON -RCON is enabled by default for the palworld-server-docker image. -Opening the RCON CLI is quite easy: +默认情况下,palworld-server-docker 映像已启用RCON。 +打开RCON CLI 非常简单: ```bash -docker exec -it palworld-server rcon-cli " " +docker exec -it palworld-server rcon-cli "<命令> <数值>" ``` -For example, you can broadcast a message to everyone in the server with the following command: +例如,可以使用以下命令向服务器中的所有人广播消息: ```bash docker exec -it palworld-server rcon-cli "Broadcast Hello everyone" ``` -This will open a CLI that uses RCON to write commands to the Palworld Server. +这将打开一个使用 RCON 将命令写入 Palworld 服务器的CLI。 -### List of server commands +:::warning +目前不支援非 ASCII 的字元,以及使用空白时,只会显示第一个字串。 +::: -| 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.. | -| 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 | -| ShowPlayers | Show information on all connected players. | -| Info | Show server information. | -| Save | Save the world data. | +### 服务器命令列表 -For a full list of commands go to: [https://tech.palworldgame.com/server-commands](https://tech.palworldgame.com/server-commands) +| 命令 | 信息 | +|----------------------------|----------------| +| Shutdown {秒} {信息} | 服务器将在{秒}后关闭 | +| DoExit | 强制关闭服务器。 | +| Broadcast | 向服务器中所有玩家发送消息。 | +| KickPlayer {SteamID} | 从服务器中踢出玩家。 | +| BanPlayer {SteamID} | 从服务器中封禁玩家。 | +| TeleportToPlayer {SteamID} | 传送到目标玩家。 | +| TeleportToMe {SteamID} | 将目标玩家传送到身边。 | +| ShowPlayers | 显示所有已连接玩家信息。 | +| Info | 显示服务器信息。 | +| Save | 保存游戏。 | + +请查看 [官方文档](https://tech.palworldgame.com/server-commands) 以获取所有命令。 diff --git a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/configuration/server-settings.md b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/configuration/server-settings.md index ef469e04e..359f58b10 100644 --- a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/configuration/server-settings.md +++ b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/configuration/server-settings.md @@ -2,71 +2,70 @@ sidebar_position: 1 --- -# Server Settings +# 服务器设置 -This part will explain how to configure the server. +本部分将解释如何配置服务器。 -## Environment variables +## 环境变量 -You can use the following values to change the settings of the server on boot. -It is highly recommended you set the following environment values before starting the server: +您可以在启动服务器前使用以下值更改服务器的设置。 +在启动服务器之前强烈建议设置以下环境变量: * PLAYERS * PORT * PUID * PGID -| Variable | Info | Default Values | Allowed Values | -|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------|---------------------------------------------------------------------------------------| -| TZ | Timezone used for time stamping backup server | UTC | See [TZ Identifiers](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#Time_Zone_abbreviations) | -| PLAYERS* | Max amount of players that are able to join the server | 16 | 1-32 | -| PORT* | UDP port that the server will expose | 8211 | 1024-65535 | -| PUID* | The uid of the user the server should run as | 1000 | !0 | -| PGID* | The gid of the group the server should run as | 1000 | !0 | -| MULTITHREADING** | Improves performance in multi-threaded CPU environments. It is effective up to a maximum of about 4 threads, and allocating more than this number of threads does not make much sense. | false | true/false | -| COMMUNITY | Whether or not the server shows up in the community server browser (USE WITH SERVER_PASSWORD) | false | true/false | -| PUBLIC_IP | You can manually specify the global IP address of the network on which the server running. If not specified, it will be detected automatically. If it does not work well, try manual configuration. | | x.x.x.x | -| PUBLIC_PORT | You can manually specify the port number of the network on which the server running. If not specified, it will be detected automatically. If it does not work well, try manual configuration. | | 1024-65535 | -| SERVER_NAME | A name for your server | | "string" | -| SERVER_DESCRIPTION | Your server Description | | "string" | -| SERVER_PASSWORD | Secure your community server with a password | | "string" | -| ADMIN_PASSWORD | Secure administration access in the server with a password | | "string" | -| 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 | -| 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 | -| 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 Updates with Cron](https://palworld-server-docker.loef.dev/guides/automatic-reboots) | -| AUTO_UPDATE_ENABLED | Enables automatic updates | false | true/false | -| AUTO_UPDATE_WARN_MINUTES | How long to wait to update the server, after the player were informed. | 30 | !0 | -| AUTO_REBOOT_CRON_EXPRESSION | Setting affects frequency of automatic updates. | 0 0 \* \* \* | Needs a Cron-Expression - See [Configuring Automatic Reboots with Cron](https://palworld-server-docker.loef.dev/guides/automatic-updates) | -| AUTO_REBOOT_ENABLED | Enables automatic reboots | false | true/false | -| AUTO_REBOOT_WARN_MINUTES | How long to wait to reboot the server, after the player were informed. | 5 | !0 | -| AUTO_REBOOT_EVEN_IF_PLAYERS_ONLINE | Restart the Server even if there are players online. | false | true/false | -| DISCORD_WEBHOOK_URL | Discord webhook url found after creating a webhook on a discord server | | `https://discord.com/api/webhooks/` | -| DISCORD_CONNECT_TIMEOUT | Discord command initial connection timeout | 30 | !0 | -| DISCORD_MAX_TIMEOUT | Discord total hook timeout | 30 | !0 | -| DISCORD_PRE_UPDATE_BOOT_MESSAGE | Discord message sent when server begins updating | Server is updating... | "string" | -| DISCORD_POST_UPDATE_BOOT_MESSAGE | Discord message sent when server completes updating | Server update complete! | "string" | -| DISCORD_PRE_START_MESSAGE | Discord message sent when server begins to start | Server is started! | "string" | -| DISCORD_PRE_SHUTDOWN_MESSAGE | Discord message sent when server begins to shutdown | Server is shutting down... | "string" | -| DISCORD_POST_SHUTDOWN_MESSAGE | Discord message sent when server has stopped | Server is stopped! | "string" | +| 变量 | 信息 | 默认值 | 允许值 | +|------------------|--------------------------------------------------|-------|-------------------------------------------------------------------------------| +| TZ | 备份服务器时所使用的时间戳。 | UTC | 参见 [时区列表](https://zh.wikipedia.org/wiki/%E6%97%B6%E5%8C%BA%E5%88%97%E8%A1%A8) | +| PLAYERS* | 可同加入服务器的最大玩家数。 | 16 | 1-32 | +| PORT* | 服务器将开放的 UDP 端口。 | 8211 | 1024-65535 | +| PUID* | 服务器运行时的用户的 UID。 | 1000 | !0 | +| PGID* | 服务器运行时的组的 GID。 | 1000 | !0 | +| MULTITHREADING** | 提高多线程 CPU 环境下的性能。它最多对 4 个线程有效,分配超过这个数量的线程没有太大意义。 | false | true/false | +| COMMUNITY | 服务器是否显示在社区服务器页中(建议设置SERVER_PASSWORD)。 | false | true/false | +| PUBLIC_IP | 您可以手动指定服务器 IP 地址。若未指定,将自动检测。 | | x.x.x.x | +| PUBLIC_PORT | 您可以手动指定服务器端口。若未指定,将自动检测。 | | 1024-65535 | +| SERVER_NAME | 服务器名称。 | | "string" | +| SERVER_PASSWORD | 为服务器设置密码。 | | "string" | +| ADMIN_PASSWORD | 为服务器设置管理员密码。 | | "string" | +| UPDATE_ON_BOOT** | 在启动 Docker 容器时更新/安装服务器(需要在第一次运行时启用)。 | true | true/false | +| RCON_ENABLED*** | 为服务器启用 RCON。 | true | true/false | +| RCON_PORT | RCON 连接端口。 | 25575 | 1024-65535 | +| QUERY_PORT | 用于与 Steam 服务器通信的查询端口。 | 27015 | 1024-65535 | +| BACKUP_CRON_EXPRESSION | 自动备份的频率。 | 0 0 \* \* \* | 需要一个Cron表达式 - 参见 [使用 Cron 执行自动备份](#使用-cron-执行自动备份)。 | +| BACKUP_ENABLED | 启用自动备份。 | true | true/false | +| DELETE_OLD_BACKUPS | 在一定天数后删除备份。 | false | true/false | +| OLD_BACKUP_DAYS | 保留备份的天数。 | 30 | 任何正整数 | +| AUTO_UPDATE_CRON_EXPRESSION | 自动更新的频率。 | 0 \* \* \* \* | 需要一个Cron表达式 - 参见 [使用 Cron 执行自动更新](#使用-cron-执行自动更新)。 | +| AUTO_UPDATE_ENABLED | 启用自动更新。 | false | true/false | +| AUTO_UPDATE_WARN_MINUTES | 在通知玩家后等待多长时间更新服务器。 | 30 | !0 | +| AUTO_REBOOT_CRON_EXPRESSION | 设置自动重启的频率。 | 0 0 \* \* \* | 需要一个Cron表达式 - 参见 [使用 Cron 执行自动重启](#使用-cron-执行自动重启)。 | +| AUTO_REBOOT_ENABLED | 启用自动重启 | false | true/false | +| AUTO_REBOOT_WARN_MINUTES | 在通知玩家后等待多长时间重启服务器。 | 5 | !0 | +| DISCORD_WEBHOOK_URL | Discord 服务器上创建 Webhook 后的 Discord Webhook URL | | `https://discord.com/api/webhooks/` | +| DISCORD_CONNECT_TIMEOUT | Discord 命令初始连接超时 | 30 | !0 | +| DISCORD_MAX_TIMEOUT | Discord 超时时间 | 30 | !0 | +| DISCORD_PRE_UPDATE_BOOT_MESSAGE | 服务器开始更新时发送到 Discord 的消息 | Server is updating... | "string" | +| DISCORD_POST_UPDATE_BOOT_MESSAGE | 服务器完成更新时发送到 Discord 的消息 | Server update complete! | "string" | +| DISCORD_PRE_START_MESSAGE | 服务器启动时发送到 Discord 的消息 | Server is started! | "string" | +| DISCORD_PRE_SHUTDOWN_MESSAGE | 服务器关闭时发送到 Discord 的消息 | Server is shutting down... | "string" | +| DISCORD_POST_SHUTDOWN_MESSAGE | 服务器停止时发送到 Discord 的消息 | Server is stopped! | "string" | -*highly recommended to set -** Make sure you know what you are doing when running this option enabled +* 强烈建议设置 -*** Required for docker stop to save and gracefully close the server +** 在运行此选项时,请确保您知道自己在做什么 -### Game Ports +*** 使用docker stop 命令以保存并优雅地关闭服务器。 -The server needs the following ports by default. +### 游戏端口 -| Port | Info | +服务器默认需要以下端口。 + +| 端口 | 信息 | |-------|------------------| -| 8211 | Game Port (UDP) | -| 27015 | Query Port (UDP) | -| 25575 | RCON Port (TCP) | +| 8211 | 游戏端口 (UDP) | +| 27015 | 查询端口 (UDP) | +| 25575 | RCON 端口 (TCP) | diff --git a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/quick-setup.md b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/quick-setup.md index c420d573a..34b038cee 100644 --- a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/quick-setup.md +++ b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/quick-setup.md @@ -3,69 +3,71 @@ sidebar_position: 1 slug: / --- -# Quick Setup +# 快速设置 -Let's get you on your way with the Palworld Dedicated server! +让我们带你开始设置 Palworld 专用服务器吧! :::warning -At the moment, Xbox Gamepass/Xbox Console players will not be able to join a dedicated server. +目前, Xbox Gamepass/Xbox 主机玩家无法加入专用服务器。 -They will need to join players using the invite code and are limited to sessions of 4 players max. +他们只能通过邀请码加入,并且最多允许 4 人游玩。 ::: -## Server Requirements +## 计算机要求 -| Resource | Minimum | Recommended | +| 资源 | 最低要求 | 推荐配置 | |----------|---------|------------------------------------------| | CPU | 4 cores | 4+ cores | -| RAM | 16GB | Recommend over 32GB for stable operation | -| Storage | 8GB | 20GB | +| RAM | 16GB | 推荐超过 32GB 以保持稳定运行 | +| 存储 | 8GB | 20GB | ## Docker Compose -This repository includes an example +此存储库包含一个示例 [docker-compose.yml](https://github.com/thijsvanloef/palworld-server-docker/blob/main/docker-compose.yml) -file you can use to set up your server. +文件,您可以使用它来设置专用服务器。 ```yml services: palworld: - image: thijsvanloef/palworld-server-docker:latest # Use the latest-arm64 tag for arm64 hosts + image: thijsvanloef/palworld-server-docker:latest # 建议指定版本,不要选择 latest + platform: linux/amd64 # 对于 arm64 主机,请使用 linux/arm64 restart: unless-stopped container_name: palworld-server - stop_grace_period: 30s # Set to however long you are willing to wait for the container to gracefully stop + stop_grace_period: 30s # 设置容器正常停止的等待时间 ports: - 8211:8211/udp - 27015:27015/udp environment: PUID: 1000 PGID: 1000 - PORT: 8211 # Optional but recommended - PLAYERS: 16 # Optional but recommended - SERVER_PASSWORD: "worldofpals" # Optional but recommended + PORT: 8211 # 可选但建议 + PLAYERS: 16 # 可选但建议 + SERVER_PASSWORD: "worldofpals" # 可选但建议 MULTITHREADING: true RCON_ENABLED: true RCON_PORT: 25575 TZ: "UTC" ADMIN_PASSWORD: "adminPasswordHere" - COMMUNITY: false # Enable this if you want your server to show up in the community servers tab, USE WITH SERVER_PASSWORD! + COMMUNITY: false # 如果希望服务器出现在社区服务器选项中,请启用此选项,与 SERVER_PASSWORD 一起使用! SERVER_NAME: "World of Pals" SERVER_DESCRIPTION: "palworld-server-docker by Thijs van Loef" volumes: - ./palworld:/palworld/ ``` -As an alternative, you can copy the [.env.example](https://github.com/thijsvanloef/palworld-server-docker/blob/main/.env.example) file to a new file called **.env** file. -Modify it to your needs, check out the [environment variables](#environment-variables) section to check the correct -values. Modify your [docker-compose.yml](https://github.com/thijsvanloef/palworld-server-docker/blob/main/docker-compose.yml) to this: +或者,可以将 [.env.example](https://github.com/thijsvanloef/palworld-server-docker/blob/main/.env.example) 文件复制到一个名为 **.env** 的新文件中。 +根据需要进行修改,并查看 [环境变量](#/zh/入门/配置/服务器设置#环境变量) 部分以检查正确的 +值。将 [docker-compose.yml](https://github.com/thijsvanloef/palworld-server-docker/blob/main/docker-compose.yml) 修改为以下内容: ```yml services: palworld: - image: thijsvanloef/palworld-server-docker:latest # Use the latest-arm64 tag for arm64 hosts + image: thijsvanloef/palworld-server-docker:latest # 建议指定版本,不要选择 latest + platform: linux/amd64 # 对于 arm64 主机,请使用 linux/arm64 restart: unless-stopped container_name: palworld-server - stop_grace_period: 30s # Set to however long you are willing to wait for the container to gracefully stop + stop_grace_period: 30s # 设置容器正常停止的等待时间 ports: - 8211:8211/udp - 27015:27015/udp @@ -101,9 +103,9 @@ docker run -d \ thijsvanloef/palworld-server-docker:latest # Use the latest-arm64 tag for arm64 hosts ``` -As an alternative, you can copy the [.env.example](https://github.com/thijsvanloef/palworld-server-docker/blob/main/.env.example) file to a new file called **.env** file. -Modify it to your needs, check out the [environment variables](#environment-variables) section to check the -correct values. Change your docker run command to this: +或者,可以将 [.env.example](https://github.com/thijsvanloef/palworld-server-docker/blob/main/.env.example) 文件复制到一个名为 **.env** 的新文件中。 +根据需要进行修改,并查看 [环境变量](#/zh/入门/配置/服务器设置#环境变量) 部分以检查正确的值。 +将 docker run 命令修改为以下内容: ```bash docker run -d \ @@ -117,12 +119,12 @@ docker run -d \ thijsvanloef/palworld-server-docker:latest # Use the latest-arm64 tag for arm64 hosts ``` -## Starting the server +## 启动服务器 -Use `docker compose up -d` to start the server in the background +使用 `docker compose up -d` 在后台启动服务器 -## Stopping the server +## 停止服务器 -Use `docker compose stop` to stop the server +使用 `docker compose stop` 停止服务器 -Use `docker compose down --rmi all` to stop and remove the server and remove the docker image from your computer +使用 `docker compose down --rmi all` 停止并删除服务器,并从计算机中删除 Docker 镜像。 diff --git a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/automatic-reboots.md b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/automatic-reboots.md index 55168a870..f4bd82609 100644 --- a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/automatic-reboots.md +++ b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/automatic-reboots.md @@ -2,29 +2,27 @@ sidebar_position: 4 --- -# Automatic Reboots +# 自动重启 -## Configuring Automatic Reboots with Cron +## 使用 Cron 执行自动重启 -To be able to use automatic reboots with this server `RCON_ENABLED` enabled. +为了能够使用该服务器的自动重启功能,需要启用 `RCON_ENABLED` 。 :::warning -If docker restart is not set to policy `always` or `unless-stopped` -then the server will shutdown and will need to be manually restarted. +如果 Docker 重启策略不是设为 `always` 或 `unless-stopped`,那麽伺服器将会关闭,需要手动重新启动。 -The example docker run command and docker compose file in [the Quicksetup](https://palworld-server-docker.loef.dev/) -already use the needed policy +在 [开始使用](https://palworld-server-docker.loef.dev/zh/) 中的示例 Docker run 命令和 Docker Compose 文件已經使用了所需的策略。 ::: -Set `AUTO_REBOOT_ENABLED` enable or disable automatic reboots (Default is disabled) +设置 `AUTO_REBOOT_ENABLED` 以启用或禁用自动备份(默认为禁用)。 -`AUTO_REBOOT_CRON_EXPRESSION` is a cron expression, in a Cron-Expression you define an interval for when to run jobs. +`AUTO_REBOOT_CRON_EXPRESSION` 是一个cron表达式,在Cron表达式中,需要定义了运行作业的间隔。 :::tip -This image uses Supercronic for crons -see [supercronic](https://github.com/aptible/supercronic#crontab-format) -or [Crontab Generator](https://crontab-generator.org). +该镜像使用 Supercronic 进行 cron 作业。 +请参阅 [supercronic](https://github.com/aptible/supercronic#crontab-format) +或 [Crontab Generator](https://crontab-generator.org). ::: -Set `AUTO_REBOOT_CRON_EXPRESSION` to change the set the schedule, default is everynight at midnight according to the -timezone set with TZ + +设置 `AUTO_REBOOT_CRON_EXPRESSION` 以更改时程, 默认为每天午夜,根据设置的时区进行调整。 \ No newline at end of file diff --git a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/automatic-updates.md b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/automatic-updates.md index c4ce2e48d..dd518ab9e 100644 --- a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/automatic-updates.md +++ b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/automatic-updates.md @@ -2,31 +2,29 @@ sidebar_position: 5 --- -# Automatic Updates +# 自动更新 -## Configuring Automatic Updates with Cron +## 使用 Cron 执行自动更新 -To be able to use automatic Updates with this Server the following environment variables **have** to be set to `true`: +如果要在伺服器上使用自动更新功能, **必须** 将以下环境变数设置为 `true`: * `RCON_ENABLED` * `UPDATE_ON_BOOT` :::warning -If docker restart is not set to policy `always` or `unless-stopped` -then the server will shutdown and will need to be manually restarted. +如果 Docker 重启策略不是设为 `always` 或 `unless-stopped`,那麽伺服器将会关闭,需要手动重新启动。 -The example docker run command and docker compose file in [the Quicksetup](https://palworld-server-docker.loef.dev/) -already use the needed policy +在 [开始使用](https://palworld-server-docker.loef.dev/zh/) 中的示例 Docker run 命令和 Docker Compose 文件已經使用了所需的策略。 ::: -Set `AUTO_UPDATE_ENABLED` enable or disable automatic updates (Default is disabled) +设置 `AUTO_UPDATE_ENABLED` 以启用或禁用自动更新(默认为禁用)。 -`AUTO_UPDATE_CRON_EXPRESSION` is a cron expression, in a Cron-Expression you define an interval for when to run jobs. +`AUTO_UPDATE_CRON_EXPRESSION` 是一个cron表达式,在Cron表达式中,需要定义了运行作业的间隔。 -:::tip -This image uses Supercronic for crons -see [supercronic](https://github.com/aptible/supercronic#crontab-format) -or [Crontab Generator](https://crontab-generator.org). -::: +> [!TIP] +> 这个镜像使用 Supercronic 来执行 cron 任务。 +> 查阅 [supercronic](https://github.com/aptible/supercronic#crontab-format) +> 或者 +> [Crontab Generat](https://crontab-generator.org). -Set `AUTO_UPDATE_CRON_EXPRESSION` to change the default schedule. +設置 `AUTO_UPDATE_CRON_EXPRESSION` 以更改默認时程。 diff --git a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/backup/automated-backup.md b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/backup/automated-backup.md index f9ca69ce6..03fba0e8a 100644 --- a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/backup/automated-backup.md +++ b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/backup/automated-backup.md @@ -2,20 +2,20 @@ sidebar_position: 3 --- -# Configure automated backups +# 配置自动备份 -The server is automatically backed up everynight at midnight according to the timezone set with TZ +服务器每天午夜根据设置的时区进行自动备份。 -Set BACKUP_ENABLED enable or disable automatic backups (Default is enabled) +设置 `BACKUP_ENABLED` 以启用或禁用自动备份(默认已启用)。 -BACKUP_CRON_EXPRESSION is a cron expression, in a Cron-Expression you define an interval for when to run jobs. +`BACKUP_CRON_EXPRESSION` 是一个 cron 表达式,您可以在其中定义运行作业的间隔。 :::tip -This image uses Supercronic for crons -see [supercronic](https://github.com/aptible/supercronic#crontab-format) -or [Crontab Generator](https://crontab-generator.org). +该镜像使用 Supercronic 进行 cron 作业。 +请参阅 [supercronic](https://github.com/aptible/supercronic#crontab-format) +或 [Crontab Generator](https://crontab-generator.org). ::: -Set BACKUP_CRON_EXPRESSION to change the default schedule. +将 `BACKUP_CRON_EXPRESSION` 设置为默认计划。 -**Example Usage**: If BACKUP_CRON_EXPRESSION to `0 2 * * *`, the backup script will run every day at 2:00 AM. +**示例用法**:如果将BACKUP_CRON_EXPRESSION设置为 `0 2 * * *`, 则备份脚本将每天上午 2:00 运行一次。 diff --git a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/backup/creating-backup.md b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/backup/creating-backup.md index 8cd70c530..85bff85f0 100644 --- a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/backup/creating-backup.md +++ b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/backup/creating-backup.md @@ -2,14 +2,14 @@ sidebar_position: 1 --- -# Creating a backup +# 创建备份 -To create a backup of the game's save at the current point in time, use the command: +要在当前时间点创建游戏存档的备份,请使用以下命令: ```bash docker exec palworld-server backup ``` -This will create a backup at `/palworld/backups/` +这将在 `/palworld/backups/` 下创建一个备份。 -The server will run a save before the backup if rcon is enabled. +如果启用了 rcon,服务器将在备份之前运行一次保存。 diff --git a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/backup/restoring-backup.md b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/backup/restoring-backup.md index a8bca45fa..6d1df5408 100644 --- a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/backup/restoring-backup.md +++ b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/backup/restoring-backup.md @@ -2,45 +2,44 @@ sidebar_position: 2 --- -# Restoring a backup +# 透过备份恢復数据 -## Interactively restore from a backup +## 透过脚本恢復数据 -To restore from a backup, use the command: +要从备份中恢复,请使用以下命令: ```bash docker exec -it palworld-server restore ``` -The `RCON_ENABLED` environment variable must be set to `true` to use this command. +必须将 `RCON_ENABLED` 环境变量设置为 `true` 以使用此命令。 + :::warning -If docker restart is not set to policy `always` or `unless-stopped` then the server will shutdown and -will need to be manually restarted. +如果 Docker 重启策略不是设为 `always` 或 `unless-stopped`,那麽伺服器将会关闭,需要手动重新启动。 -The example docker run command and docker compose file in [the Quicksetup](https://palworld-server-docker.loef.dev/) -already uses the needed policy +在 [开始使用](https://palworld-server-docker.loef.dev/zh/) 中的示例 Docker run 命令和 Docker Compose 文件已經使用了所需的策略。 ::: -## Manually restore from a backup +## 手动从备份中恢复数据 -Locate the backup you want to restore in `/palworld/backups/` and decompress it. -Need to stop the server before task. +在 `/palworld/backups/` 中找到要恢复的备份并解压缩它。 +在执行任务之前需要停止服务器。 ```bash docker compose down ``` -Delete the old saved data folder located at `palworld/Pal/Saved/SaveGames/0/`. +删除位于 `/palworld/Pal/Saved/SaveGames/0/` 的旧保存数据文件夹。 -Copy the contents of the newly decompressed saved data folder `Saved/SaveGames/0/` to `palworld/Pal/Saved/SaveGames/0/`. +将新解压缩的保存数据文件夹 `Saved/SaveGames/0/` 的内容复制到 `palworld/Pal/Saved/SaveGames/0/` 。 -Replace the DedicatedServerName inside `palworld/Pal/Saved/Config/LinuxServer/GameUserSettings.ini` with the new folder name. +将 `palworld/Pal/Saved/Config/LinuxServer/GameUserSettings.ini` 中的 `DedicatedServerName` 替换为新文件夹名称。 ```ini -DedicatedServerName= # Replace it with your folder name. +DedicatedServerName= # 替换为新的保存数据文件夹名称 ``` -Restart the game. (If you are using Docker Compose) +重新启动游戏。(如果您正在使用 Docker Compose) ```bash docker compose up -d diff --git a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/discord/discord-webhooks.md b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/discord/discord-webhooks.md index c5f8346e1..6c314dc25 100644 --- a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/discord/discord-webhooks.md +++ b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/discord/discord-webhooks.md @@ -2,20 +2,20 @@ sidebar_position: 1 --- -# Using discord webhooks +# 使用 discord webhooks -1. Generate a webhook url for your discord server in your discord's server settings. +1. 在 Discord 的服务器设置中为你的 Discord 服务器生成一个 Webhook URL。 -2. Set the environment variable with the unique token at the end of the discord webhook url example: `https://discord.com/api/webhooks/1234567890/abcde` +2. 使用 Discord Webhook URL 的範例,將唯一的令牌設置為環境變數,附在 URL 的末尾,如下所示:`https://discord.com/api/webhooks/1234567890/abcde` -send discord messages with docker run: +使用 Docker run 命令发送 Discord 消息: ```sh -e DISCORD_WEBHOOK_URL="https://discord.com/api/webhooks/1234567890/abcde" \ -e DISCORD_PRE_UPDATE_BOOT_MESSAGE="Server is updating..." \ ``` -send discord messages with docker compose: +使用 Docker Compose 命令發送 Discord 消息: ```yaml - DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/1234567890/abcde diff --git a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/known-issues/known-issues.md b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/known-issues/known-issues.md index 639bbf622..1900d86c8 100644 --- a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/known-issues/known-issues.md +++ b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/known-issues/known-issues.md @@ -2,27 +2,27 @@ sidebar_position: 4 --- -# Known Issues +# 已知问题 -## Broadcast command can only send 1 word +## Broadcast 命令只能发送一个单词 -When using Broadcast among RCON's functions, only one word is transmitted. +在使用 RCON 的 Broadcast 功能时,只能传递一个单词。 -As an example, if I use: +例如,如果我使用: `docker exec -it palworld-server rcon-cli Broadcast "Hello world"` -only Hello is transmitted. +只有 Hello 会被传递。 -## XBox GamePass players unable to join +## Xbox GamePass 玩家无法加入 -At the moment, Xbox Gamepass/Xbox Console players will not be able to join a dedicated server. +目前,Xbox GamePass/Xbox 主机玩家无法加入专用服务器。 -They will need to join players using the invite code and are limited to sessions of 4 players max. +他们需要使用邀请代码加入,且最多限制为 4 名玩家。 ## [S_API FAIL] -The server will sometimes output the following error: +服务器有时会输出以下错误: ```bash [S_API FAIL] Tried to access Steam interface SteamUser021 before SteamAPI_Init succeeded. @@ -31,16 +31,15 @@ The server will sometimes output the following error: [S_API FAIL] Tried to access Steam interface SteamNetworkingUtils004 before SteamAPI_Init succeeded. ``` -This can safely be ignored and will not impact the server. +这可以安全地忽略,不会影响服务器。 ## Setting breakpad minidump AppID = 2394010 -This means that the server is up and running, if you still can't connect to it, -it means that you'll need to look at the following: +这表示服务器正在运行,如果仍然无法连接到它,说明您需要检查以下事项: -* Firewall settings, make sure that you allow port 8211/udp and 27015/udp through your firewall -* Make sure you've correctly port forwarded your 8211/udp 27015/udp +* 防火墙设置,请确保通过防火墙允许端口 8211/udp 和 27015/udp +* 确保您正确地设置了端口转发,8211/udp 27015/udp ## FAQ -[A useful FAQ that gets updated regularly](https://gist.github.com/Toakan/3c78a577c21a21fcc5fa917f3021d70e#file-palworld-server-faq-community-md) +[一个经常更新的有用 FAQ](https://gist.github.com/Toakan/3c78a577c21a21fcc5fa917f3021d70e#file-palworld-server-faq-community-md) diff --git a/docusaurus/i18n/zh/docusaurus-theme-classic/footer.json b/docusaurus/i18n/zh/docusaurus-theme-classic/footer.json index 97cd542fa..ae9af2716 100644 --- a/docusaurus/i18n/zh/docusaurus-theme-classic/footer.json +++ b/docusaurus/i18n/zh/docusaurus-theme-classic/footer.json @@ -1,26 +1,26 @@ { "link.title.Docs": { - "message": "Docs", + "message": "文档", "description": "The title of the footer links column with title=Docs in the footer" }, "link.title.Community": { - "message": "Community", + "message": "社区", "description": "The title of the footer links column with title=Community in the footer" }, "link.title.More": { - "message": "More", + "message": "更多", "description": "The title of the footer links column with title=More in the footer" }, "link.item.label.Getting started": { - "message": "Getting started", + "message": "入门", "description": "The label of footer link with label=Getting started linking to /category/getting-started" }, "link.item.label.Guides": { - "message": "Guides", + "message": "指南", "description": "The label of footer link with label=Guides linking to /category/guides" }, "link.item.label.Advanced": { - "message": "Advanced", + "message": "高级配置", "description": "The label of footer link with label=Advanced linking to /category/advanced" }, "link.item.label.Discord": { diff --git a/docusaurus/i18n/zh/docusaurus-theme-classic/navbar.json b/docusaurus/i18n/zh/docusaurus-theme-classic/navbar.json index 428d9d4c3..be999892e 100644 --- a/docusaurus/i18n/zh/docusaurus-theme-classic/navbar.json +++ b/docusaurus/i18n/zh/docusaurus-theme-classic/navbar.json @@ -8,15 +8,15 @@ "description": "The alt text of navbar logo" }, "item.label.Getting started": { - "message": "Getting started", + "message": "入门", "description": "Navbar item with label Getting started" }, "item.label.Guides": { - "message": "Guides", + "message": "指南", "description": "Navbar item with label Guides" }, "item.label.Advanced": { - "message": "Advanced", + "message": "高级配置", "description": "Navbar item with label Advanced" } } From 2e60e75034a6468a2c0ffd5ce2bf7cf4d8027201 Mon Sep 17 00:00:00 2001 From: Blocka Wan Date: Tue, 13 Feb 2024 00:27:56 +0800 Subject: [PATCH 2/2] fix Lint error --- .../current/advanced/palworld-directory.md | 1 + .../getting-started/configuration/game-settings.md | 3 +-- .../getting-started/configuration/server-commands.md | 10 +++++----- .../getting-started/configuration/server-settings.md | 7 +++---- .../current/guides/automatic-reboots.md | 2 +- 5 files changed, 11 insertions(+), 12 deletions(-) diff --git a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/advanced/palworld-directory.md b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/advanced/palworld-directory.md index 4c5a68759..60a409b8b 100644 --- a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/advanced/palworld-directory.md +++ b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/advanced/palworld-directory.md @@ -19,6 +19,7 @@ sidebar_position: 1 ## 将数据目录附加到主机文件系统 将 palworld 文件夹附加到主机系统的最简单方法是使用 docker-compose.yml 文件中给出的示例: + ```yml volumes: - ./palworld:/palworld/ diff --git a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/configuration/game-settings.md b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/configuration/game-settings.md index 3c29c87b3..8a1c92dfe 100644 --- a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/configuration/game-settings.md +++ b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/configuration/game-settings.md @@ -50,7 +50,7 @@ sidebar_position: 2 | COLLECTION_OBJECT_HP_RATE | 多人游戏中对象生命比率 | 1.000000 | Float | | COLLECTION_OBJECT_RESPAWN_SPEED_RATE | 可获取对象的刷新速度 - 更小的值代表更快的刷新速度 | 1.000000 | Float | | ENEMY_DROP_ITEM_RATE | 多人游戏中敌人掉落道具的比率 | 1.000000 | Float | -| DEATH_PENALTY | 死亡惩罚
None: 没有死亡惩罚
Item: 更高几率掉落道具
ItemAndEquipment: 掉落所有道具
All: 掉落所有道具和帕鲁 | All | `None`,`Item`,`ItemAndEquipment`,`All` | +| DEATH_PENALTY | 死亡惩罚 None: 没有死亡惩罚 Item: 更高几率掉落道具 ItemAndEquipment: 掉落所有道具 All: 掉落所有道具和帕鲁 | All | `None`,`Item`,`ItemAndEquipment`,`All` | | ENABLE_PLAYER_TO_PLAYER_DAMAGE | 允许 PVP 伤害 | False | Boolean | | ENABLE_FRIENDLY_FIRE | 允许队友伤害 | False | Boolean | | ENABLE_INVADER_ENEMY | 启用营地入侵 | True | Boolean | @@ -80,7 +80,6 @@ sidebar_position: 2 | USEAUTH | 使用授权验证 | True | Boolean | | BAN_LIST_URL | 使用禁用列表 | [https://api.palworldgame.com/api/banlist.txt](https://api.palworldgame.com/api/banlist.txt) | string | - ### 手动设置 当服务器启动时,将在以下位置创建一个 `PalWorldSettings.ini` 文件: `/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini` diff --git a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/configuration/server-commands.md b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/configuration/server-commands.md index beccb4274..56d698e29 100644 --- a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/configuration/server-commands.md +++ b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/configuration/server-commands.md @@ -31,13 +31,13 @@ docker exec -it palworld-server rcon-cli "Broadcast Hello everyone" | 命令 | 信息 | |----------------------------|----------------| -| Shutdown {秒} {信息} | 服务器将在{秒}后关闭 | +| Shutdown (秒) (信息) | 服务器将在(秒)后关闭 | | DoExit | 强制关闭服务器。 | | Broadcast | 向服务器中所有玩家发送消息。 | -| KickPlayer {SteamID} | 从服务器中踢出玩家。 | -| BanPlayer {SteamID} | 从服务器中封禁玩家。 | -| TeleportToPlayer {SteamID} | 传送到目标玩家。 | -| TeleportToMe {SteamID} | 将目标玩家传送到身边。 | +| KickPlayer (SteamID) | 从服务器中踢出玩家。 | +| BanPlayer (SteamID) | 从服务器中封禁玩家。 | +| TeleportToPlayer (SteamID) | 传送到目标玩家。 | +| TeleportToMe (SteamID) | 将目标玩家传送到身边。 | | ShowPlayers | 显示所有已连接玩家信息。 | | Info | 显示服务器信息。 | | Save | 保存游戏。 | diff --git a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/configuration/server-settings.md b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/configuration/server-settings.md index 359f58b10..f0d66fad8 100644 --- a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/configuration/server-settings.md +++ b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/getting-started/configuration/server-settings.md @@ -34,14 +34,14 @@ sidebar_position: 1 | RCON_ENABLED*** | 为服务器启用 RCON。 | true | true/false | | RCON_PORT | RCON 连接端口。 | 25575 | 1024-65535 | | QUERY_PORT | 用于与 Steam 服务器通信的查询端口。 | 27015 | 1024-65535 | -| BACKUP_CRON_EXPRESSION | 自动备份的频率。 | 0 0 \* \* \* | 需要一个Cron表达式 - 参见 [使用 Cron 执行自动备份](#使用-cron-执行自动备份)。 | +| BACKUP_CRON_EXPRESSION | 自动备份的频率。 | 0 0 \* \* \* | 需要一个Cron表达式 - 参见 [使用 Cron 执行自动备份](https://palworld-server-docker.loef.dev/zh/guides/backup/automated-backup/)。 | | BACKUP_ENABLED | 启用自动备份。 | true | true/false | | DELETE_OLD_BACKUPS | 在一定天数后删除备份。 | false | true/false | | OLD_BACKUP_DAYS | 保留备份的天数。 | 30 | 任何正整数 | -| AUTO_UPDATE_CRON_EXPRESSION | 自动更新的频率。 | 0 \* \* \* \* | 需要一个Cron表达式 - 参见 [使用 Cron 执行自动更新](#使用-cron-执行自动更新)。 | +| AUTO_UPDATE_CRON_EXPRESSION | 自动更新的频率。 | 0 \* \* \* \* | 需要一个Cron表达式 - 参见 [使用 Cron 执行自动更新](https://palworld-server-docker.loef.dev/zh/guides/automatic-updates)。 | | AUTO_UPDATE_ENABLED | 启用自动更新。 | false | true/false | | AUTO_UPDATE_WARN_MINUTES | 在通知玩家后等待多长时间更新服务器。 | 30 | !0 | -| AUTO_REBOOT_CRON_EXPRESSION | 设置自动重启的频率。 | 0 0 \* \* \* | 需要一个Cron表达式 - 参见 [使用 Cron 执行自动重启](#使用-cron-执行自动重启)。 | +| AUTO_REBOOT_CRON_EXPRESSION | 设置自动重启的频率。 | 0 0 \* \* \* | 需要一个Cron表达式 - 参见 [使用 Cron 执行自动重启](https://palworld-server-docker.loef.dev/zh/guides/automatic-reboots)。 | | AUTO_REBOOT_ENABLED | 启用自动重启 | false | true/false | | AUTO_REBOOT_WARN_MINUTES | 在通知玩家后等待多长时间重启服务器。 | 5 | !0 | | DISCORD_WEBHOOK_URL | Discord 服务器上创建 Webhook 后的 Discord Webhook URL | | `https://discord.com/api/webhooks/` | @@ -53,7 +53,6 @@ sidebar_position: 1 | DISCORD_PRE_SHUTDOWN_MESSAGE | 服务器关闭时发送到 Discord 的消息 | Server is shutting down... | "string" | | DISCORD_POST_SHUTDOWN_MESSAGE | 服务器停止时发送到 Discord 的消息 | Server is stopped! | "string" | - * 强烈建议设置 ** 在运行此选项时,请确保您知道自己在做什么 diff --git a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/automatic-reboots.md b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/automatic-reboots.md index f4bd82609..61905a0ae 100644 --- a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/automatic-reboots.md +++ b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/guides/automatic-reboots.md @@ -25,4 +25,4 @@ sidebar_position: 4 或 [Crontab Generator](https://crontab-generator.org). ::: -设置 `AUTO_REBOOT_CRON_EXPRESSION` 以更改时程, 默认为每天午夜,根据设置的时区进行调整。 \ No newline at end of file +设置 `AUTO_REBOOT_CRON_EXPRESSION` 以更改时程, 默认为每天午夜,根据设置的时区进行调整。