秋季特卖 47% 全场服务器优惠
距结束还剩: 00D 00H 00M 00S
background image
Game Servers 380 7 Days to Die 4 Abiotic Factor 2 Aloft 2 alt:V 2 Americas Army Proving Grounds 2 Among Us 2 Archean 2 ARK Survival Ascended 6 ARK Survival Evolved 3 Arma 3 3 Arma Reforger 2 Aska 2 AssaultCube 2 Assetto Corsa 3 Astro Colony 2 Astroneer 2 Automobilista 2 2 Avorion 2 Banana Shooter 2 Barotrauma 3 BATTALION Legacy 2 BeamNG.drive (BeamMP) 2 Black Mesa 2 Brickadia 2 Call of Duty 2 Citadel: Forged with Fire 2 ClassiCube 2 Clone Hero 2 Colony Survival 2 Conan Exiles 4 Contagion 2 Core Keeper 2 Counter-Strike 2 3 Craftopia 2 CryoFall 2 CS2D 2 Cube 2: Sauerbraten 2 Cubic Odyssey 2 DayZ 4 DDNet 2 DDRaceNetwork 2 Dead Matter 2 Dont Starve Together 4 Eco 2 Empyrion Galactic Survival 2 Enshrouded 3 Escape from Tarkov 2 Euro Truck Simulator 2 2 Factorio 2 Farming Simulator 25 2 Fistful of Frags 2 FiveM 3 FortressCraft Evolved 2 Foundry 2 Foundry VTT 2 Frozen Flame 2 FTL Tachyon 2 Garrys Mod 3 Ground Branch 2 Half-Life 2 Deathmatch 2 Hogwarp 2 Holdfast: Nations at War 2 HumanitZ 2 Hurtworld 2 Hytale 1 Icarus 2 Insurgency Sandstorm 2 IOSoccer 2 Just Cause 3 Multiplayer 2 Kerbal Space Program 2 Killing Floor 2 3 LeagueSandbox 2 Left 4 Dead 2 Left 4 Dead 2 3 Longvinter 2 Los Angeles Crimes 2 Medal of Honor 2 Midnight Ghost Hunt 2 Mindustry 2 Minecraft 4 Minetest 2 Modiverse 2 Mordhau 3 Mount & Blade II: Bannerlord 2 Myth of Empires 2 Nazi Zombies Portable 2 Necesse 2 NeosVR 2 Neverwinter Nights EE 2 Night of the Dead 2 Nightingale 2 No Love Lost 2 No More Room in Hell 2 No One Survived 2 Nova-Life Amboise 2 Nuclear Option 2 Onset 2 Open Fortress 2 OpenArena 2 OpenRA 2 OpenRCT2 2 OpenTTD 2 Operation Harsh Doorstop 2 Palworld 3 Path of Titans 2 Pavlov VR 3 PixARK 2 Plains of Pain 2 Portal Knights 2 Post Scriptum 2 Project Zomboid 8 Puck 2 Quake Live 2 R5Reloaded 2 RedM 2 Renown 2 Resonite 2 Return to Moria 2 Rimworld Together 2 Rising World 2 Risk of Rain 2 1 Rust 4 Satisfactory 1 SCP Secret Laboratory 3 SCUM 2 Smalland 2 Solace Crafting 2 Soldat 2 Soldat 2 2 Sonic Robo Blast 2 2 Sons of the Forest 2 Soulmask 2 SourceCoop 2 Space Engineers 3 Space Station 14 2 Squad 3 Starbound 3 StarMade 2 Stationeers 2 Stormworks 2 Subnautica Nitrox 2 Sunkenland 2 SuperTuxKart 2 Sven Co-op 2 Swords 'n Magic and Stuff 2 Team Fortress 2 3 Teeworlds 2 Terraria 3 TerraTech Worlds 2 TF2 Classified 2 The Forest 3 The Front 2 The Isle 2 Tower Unite 2 Trackmania 2 Unturned 4 Urban Terror 2 V Rising 3 Valheim 3 VEIN 2 Veloren 2 Vintage Story 3 Voyagers of Nera 2 Wolfenstein: Enemy Territory 2 Wreckfest 2 Wurm Unlimited 2 Xonotic 2 Zandronum 2 Getting Started 2 Network & Connectivity 1 Server Management 2
分类

The Forest 专用服务器设置指南

ZH forest setup config saves 0 人觉得有帮助

The Forest 专用服务器设置指南

本指南涵盖了如何在 Legion Hosting 上配置您的 The Forest 专用服务器,包括 config.cfg 设置、难度模式、存档管理以及如何连接。

访问您的服务器面板

所有服务器管理都通过 GPanel 完成,地址为 gpanel.legionhosting.net。使用您的 Legion Hosting 凭据登录以访问文件管理器、控制台和服务器控制功能。

配置文件 (config.cfg)

主服务器配置文件为 config.cfg,位于:

TheForestDedicatedServer_Data/forest/config/config.cfg

您可以通过 GPanel 文件管理器或 SFTP 直接编辑它。修改后请重启服务器以使更改生效。

服务器身份

设置 示例值 描述
serverName My Forest Server 在服务器浏览器中显示的名称。请保持唯一且具有描述性。
serverPassword secretpass 加入所需的密码。留空则为公开服务器。
maxPlayers 8 允许的最大玩家数量(1–8)。
serverSteamAccount (your token) Steam Game Server Login Token (GSLT)。服务器在 Steam 服务器浏览器中显示所必需。请在 steamcommunity.com/dev/managegameservers 使用 App ID 242760 生成。

游戏设置

设置 值 描述
difficulty 0, 1, 2, 3 难度模式。详情请参阅下方的难度模式部分。
veganMode true / false 设置为 true 时禁用所有敌人(食人族和变异体)。
vegetarianMode true / false 设置为 true 时敌人仅在夜间出现。
allowBuildingDestruction true / false 敌人是否可以摧毁玩家建造的建筑。
allowEnemiesCreativeMode true / false 在创造模式激活时仍然启用敌人。
allowTrees true / false 控制被砍伐的树木是否会随时间重新生长。
enableSpawnRegion true / false 将玩家出生点限制在坠机地点区域。

网络设置

您分配的游戏端口和查询端口显示在 GPanel 的 Network 选项卡中。请确保 config.cfg 中的 serverPort 和 serverQueryPort 值与您分配的端口一致。

设置 描述
serverPort 主游戏端口 (UDP)。必须与 GPanel Network 选项卡中显示的游戏端口一致。
serverQueryPort Steam 查询端口 (UDP)。必须与 GPanel Network 选项卡中显示的查询端口一致。
serverIP 绑定的 IP 地址。保留为 0.0.0.0 以绑定所有接口(推荐)。

存档设置

设置 示例值 描述
saveFolderPath TheForestDedicatedServer_Data/ 存档文件的存储目录,相对于服务器根目录。未设置时默认为 TheForestDedicatedServer_Data/。
slot 1 存档槽位编号(1–5)。每个槽位是一个独立的世界。
initType New / Continue 设置为 New 开始新世界,或设置为 Continue 加载现有存档。
提示: 服务器首次生成世界后,请将 initType 从 New 更改为 Continue。如果保持为 New,重启服务器将会清除世界并重新开始。

难度模式

difficulty 设置控制服务器的整体挑战级别:

值 模式 描述
0 和平 没有敌人。适合以建造为主的服务器。
1 普通 标准难度。均衡的生存体验。
2 困难 敌人攻击性增强,资源减少。
3 困难生存 最具挑战性的模式。真实的生存机制,部分设置下有永久死亡。
注意: veganMode 和 vegetarianMode 设置会覆盖 difficulty 值中关于敌人生成的部分。如果任一项设置为 true,无论设置的难度级别如何,敌人都将被抑制。

如何连接到您的服务器

查找您的 IP 和端口

在连接之前,您需要知道服务器的 IP 地址和端口。请参阅我们的指南:如何查找您的服务器 IP 和端口。

您分配的游戏端口和查询端口显示在 GPanel 的 Network 选项卡中。请确保 config.cfg 中的 serverPort 和 serverQueryPort 值与您分配的端口一致。

方法一:Steam 服务器浏览器

  1. 在 Steam 中,打开 View > Game Servers。
  2. 点击 Favorites 选项卡,然后点击 Add a Server。
  3. 输入您服务器的 IP 和查询端口(来自 GPanel 的 Network 选项卡),格式为 your.ip.address:QueryPort,然后点击 Add This Address to Favorites。
  4. 您的服务器应出现在列表中。双击它或选择后点击 Connect。
  5. 如果服务器设有密码,系统将提示您输入。

方法二:游戏内直接连接

  1. 启动 The Forest 并从主菜单选择 Multiplayer。
  2. 选择 Join Game,然后切换到 Friends / LAN 选项卡。
  3. 如果您的服务器未自动列出,请查找 Direct Connect 或 Enter IP 选项,并输入您的服务器 IP 和游戏端口(来自 GPanel 的 Network 选项卡)。
注意: 要使您的服务器出现在 Steam 服务器浏览器中,必须在 config.cfg 中设置 serverSteamAccount (GSLT)。没有有效令牌,服务器只能通过直接连接访问。

存档文件管理

存档文件位置

存档文件存储在 config.cfg 中 saveFolderPath 定义的目录中。默认为服务器根目录下的 TheForestDedicatedServer_Data/ 文件夹。每个存档槽位是一个编号子文件夹(例如 TheForestDedicatedServer_Data/1/、TheForestDedicatedServer_Data/2/)。

备份存档

  1. 从 GPanel 停止服务器,以防止复制过程中的数据损坏。
  2. 在 GPanel 文件管理器中导航到 TheForestDedicatedServer_Data/ 目录,或通过 SFTP 连接。
  3. 将整个槽位文件夹(例如 TheForestDedicatedServer_Data/1/)下载到本地计算机。
  4. 完成后重启服务器。

恢复存档

  1. 停止服务器。
  2. 将备份的槽位文件夹上传回正确路径(例如 TheForestDedicatedServer_Data/1/),覆盖现有文件。
  3. 确保 initType 设置为 Continue,且 slot 与您恢复的槽位编号匹配。
  4. 启动服务器。

开始新世界

  1. 停止服务器。
  2. 将 config.cfg 中的 slot 值更改为未使用的槽位编号(例如 2),或者删除当前槽位文件夹的内容以清除它。
  3. 将 initType 设置为 New。
  4. 启动服务器。世界生成后,将 initType 改回 Continue。
警告: 删除存档文件是永久性的,无法撤销。在清除或切换槽位之前,请务必备份您的存档。

相关文章

仍然需要帮助?

如果您按照本指南操作后仍然遇到问题,我们的支持团队随时为您提供帮助。提交支持工单,请附上您的服务器 ID、问题描述以及任何相关的控制台输出。


这篇文章对您有帮助吗?

Ready to Get Started?

The servers are booted, select your plan and become our latest satisfied client.