限时抢购 50% 全场服务器优惠 最后一天!
距结束还剩: 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
分类

Terraria 故障排除


常见 Terraria 专用服务器问题的解决方案,包括启动失败、连接问题、模组错误和世界损坏。有关服务器基本配置,请参阅 Terraria 服务器设置指南

快速参考: 您的服务器控制面板位于 https://gpanel.legionhosting.net。诊断问题时,请在此检查控制台日志中的错误消息。

服务器启动但世界未加载

检查 serverconfig.txt 中的 world 路径是否与 saves/Worlds/ 目录中的文件名完全匹配,包括大小写。在 Linux 服务器上路径区分大小写。

# Correct — matches actual filename
world=/home/container/saves/Worlds/MyWorld.wld

# Wrong — case mismatch will fail
world=/home/container/saves/Worlds/myworld.wld

如果文件根本不存在且您希望自动创建新世界,请将 serverconfig.txt 中的 autocreate 值设置为 1(小)、2(中)或 3(大)。


无法连接 — 连接被拒绝或超时

确认服务器正在 GPanel 中运行,并且您使用的是连接详情页面上显示的正确 IP 和端口。如果不确定,请参阅 如何查找您的服务器 IP 和端口

其他需要检查的事项:

  • 确保服务器已完全启动 — 在尝试连接之前,请在控制台日志中观察"Listening on port..."消息。
  • 如果您最近更改了 serverconfig.txt 中的端口,请将其恢复。面板会自动分配您的端口;更改它可能导致不匹配。
  • 验证您的本地防火墙或杀毒软件是否阻止了 Terraria 的出站连接。

密码提示未出现 / 密码错误

如果您在 serverconfig.txt 中设置了密码,请确保值周围没有多余的空格。该行应该写成 password=yourpassword,不带引号且末尾没有空格。

# Correct
password=mysecretpass

# Wrong — extra spaces will be included in the password
password= mysecretpass
password=mysecretpass 

tModLoader 服务器上模组未加载

  • 确认 .tmod 文件位于 mods/ 目录中,而不是其子目录中。
  • 检查服务器上的 tModLoader 版本是否与模组构建时使用的 tModLoader 版本匹配。过时的模组无法在较新的 tModLoader 版本上加载。
  • 在 GPanel 中查看服务器控制台日志,了解启动期间 tModLoader 的具体错误消息。

有关完整的模组安装说明,请参阅 Terraria 模组安装 (tModLoader)


难度设置无效 (tModLoader)

在 tModLoader 服务器上,serverconfig.txt 中的 difficulty 行不能以 # 字符开头。被注释掉的行(如 #difficulty=0)会被 tModLoader 忽略,这意味着无论设置什么值,难度可能默认为普通。

# This is IGNORED by tModLoader:
#difficulty=0

# This is applied correctly:
difficulty=0
注意: difficulty 设置仅在通过 autocreate 创建新世界时生效。它无法更改现有世界文件的难度。

在原版和 tModLoader 之间切换后世界损坏

请始终为原版和 tModLoader 会话使用单独的世界文件。如果您在原版中加载了 tModLoader 世界且现在已损坏,最安全的恢复选项是从备份还原。

数据丢失风险: 没有可靠的方法来"去模组化"世界文件。如果您没有备份,请联系技术支持获取帮助。

服务器启动时崩溃

格式错误的 serverconfig.txt 或缺失的世界文件是导致启动崩溃的最常见原因。诊断步骤:

  1. 打开 GPanel 中的控制台日志,查找第一行错误信息。
  2. 仔细检查 serverconfig.txt 中的所有路径和值。
  3. 如果您最近安装了模组,请尝试从 mods/ 目录中移除它们,看看服务器是否能在没有模组的情况下启动。
  4. 如果在没有模组且配置干净的情况下崩溃仍然存在,请提交工单。

相关文章


需要更多帮助? 请在 https://legionhosting.net/submitticket.php 提交工单,我们的团队将为您提供帮助。

这篇文章对您有帮助吗?

Ready to Get Started?

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