限时抢购 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 Mod 安装(tModLoader)


本指南涵盖了使用 tModLoader 在您的 Terraria 服务器上安装和管理 Mod,包括切换到 tModLoader、上传 .tmod 文件以及配置 Mod 列表。有关基本服务器配置和连接方法,请参阅 Terraria 服务器设置指南

快速参考: 您的服务器控制面板位于 https://gpanel.legionhosting.net。除非另有说明,以下所有文件路径均相对于服务器的根目录。

什么是 tModLoader?

tModLoader 是一个 Mod 平台,作为独立的可执行文件与原版 Terraria 并行运行(或替代运行)。Legion Hosting 支持将 tModLoader 作为可选择的服务器版本。当 tModLoader 激活后,您可以从 mods/ 目录安装和运行 Mod。


切换到 tModLoader

  1. 登录 GPanel
  2. 停止您的服务器。
  3. 导航到 StartupConfiguration 部分。
  4. 将服务器版本或可执行文件更改为 tModLoader
  5. 保存设置并重启服务器。
重要提示: tModLoader 和原版 Terraria 使用相同的世界文件(.wld),但 tModLoader 世界可能包含嵌入的 Mod 内容。在原版 Terraria 中加载 tModLoader 世界(或反之)可能导致数据丢失或损坏。请为每个版本保留单独的世界文件。

切换回原版

要切换回原版 Terraria,请重复上述步骤并选择标准 Terraria 服务器版本。切换过程中不会删除任何世界文件,但请确保 serverconfig.txt 指向兼容原版的世界。


安装 Mod

tModLoader 的 Mod 使用 .tmod 文件格式,放置在服务器的 mods/ 目录中。服务器必须运行 tModLoader 才能加载 Mod。

方法 1:直接上传 .tmod 文件

  1. Steam WorkshoptModLoader 浏览器下载 Mod 的 .tmod 文件。
  2. 通过 SFTP 连接到您的服务器 — 请参阅 如何通过 SFTP 上传文件
  3. .tmod 文件上传到 mods/ 目录。
  4. 重启服务器。tModLoader 将在启动时加载 mods/ 目录中找到的所有 .tmod 文件。

方法 2:Workshop Mod(enabled.json)

tModLoader 还支持在 mods/ 目录中使用 enabled.json 文件来列出应激活的 Mod。使用 tModLoader 的游戏内 Mod 浏览器时,此文件会自动管理,但您也可以手动编辑它。

{
  "EnabledMods": [
    "ModName1",
    "ModName2"
  ]
}
提示: enabled.json 中使用的 Mod 名称是内部 Mod 名称,而非显示名称。请查看 Mod 页面或 .tmod 文件名以获取准确的内部名称。

验证 Mod 是否已加载

重启后,在 GPanel 中查看服务器的控制台日志。tModLoader 会在启动期间列出每个已加载的 Mod。如果某个 Mod 加载失败,日志中会出现错误消息,指明原因(版本不匹配、缺少依赖项等)。


移除或禁用 Mod

完全移除一个 Mod,请通过 SFTP 或 GPanel 文件管理器从 mods/ 目录中删除其 .tmod 文件,然后重启服务器。

禁用一个 Mod 而不删除它,请编辑 mods/enabled.json 并从 EnabledMods 数组中移除该 Mod 的内部名称。.tmod 文件将保留在磁盘上,但在下次重启时不会被加载。


文件参考

路径 内容
mods/ tModLoader Mod 文件(.tmod 格式)
mods/enabled.json 已启用 Mod 的内部名称列表

相关文章


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

这篇文章对您有帮助吗?

Ready to Get Started?

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