限时抢购 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
分类

OpenTTD 服务器管理指南


本指南涵盖 OpenTTD 服务器的管理命令、RCON 访问、公司管理和 NewGRF 模组。有关初始设置,请参阅 OpenTTD 服务器设置指南

1. RCON 访问

远程控制台(RCON)允许您无需加入游戏即可运行管理命令。首先,通过 SFTPopenttd.cfg[network] 部分设置 rcon_password

要在游戏内使用 RCON,请打开控制台(~ 键)并输入:

rcon_password your_password
rcon your_command

2. 控制台命令

这些命令可以从 GPanel 控制台或通过游戏内 RCON 运行:

命令 描述
kick <client_id> 通过客户端 ID 踢出玩家。
ban <client_id> 通过客户端 ID 封禁玩家。
unban <index> 通过封禁列表索引解封玩家。
banlist 列出所有被封禁的玩家。
clients 列出所有已连接的客户端及其 ID。
companies 列出所有活跃的公司。
move <client_id> <company_id> 将客户端移动到其他公司(使用 255 表示旁观者)。
reset_company <company_id> 删除公司及其所有资产。
say "<message>" 向所有玩家广播消息。
pause 暂停游戏。
unpause 取消暂停游戏。
save <name> 将游戏保存到指定的文件名。
load <name> 加载存档文件。
newgame 使用当前设置开始新的随机游戏。
restart 从头重新开始当前游戏。
setting <name> [<value>] 查看或更改游戏设置。
quit 关闭服务器。

3. 自动清理公司

openttd.cfg 中配置非活跃公司的自动清理:

设置 默认值 描述
autoclean_companies false 启用非活跃公司的自动清理。
autoclean_unprotected 12 未受保护的公司在被移除前的月数。
autoclean_protected 36 受密码保护的公司在被移除前的月数。
autoclean_novehicles 0 没有车辆的公司在被移除前的月数(0 = 禁用)。

4. 添加 NewGRF 模组

NewGRF 为 OpenTTD 添加自定义内容(车辆、工业、景观):

  1. BaNaNaS 或其他来源下载 NewGRF 文件(.grf)。
  2. 通过 SFTP 将它们上传到服务器的 newgrf/ 目录。
  3. openttd.cfg[newgrf] 部分添加条目。
  4. 重启服务器。
重要: 所有连接的玩家必须安装相同的 NewGRF。如果 BaNaNaS 上有可用的缺失 NewGRF,玩家将收到下载提示。

5. 故障排除

  • 服务器未显示在服务器列表中: 确保启动选项卡中的 srv_advertise 设置为 true
  • RCON 无法使用: 验证 openttd.cfg 中已设置 rcon_password,并且您已正确验证身份。
  • 玩家在加入时断开连接: 地图下载可能超时。减小地图大小或增加 openttd.cfg 中的 max_download_time
  • NewGRF 不匹配: 确保玩家拥有与服务器完全相同的 NewGRF 及版本。

相关文章

需要帮助?

如果您需要进一步的帮助,请 提交工单,并附上您的服务器 IP 和 GPanel 控制台中的任何错误信息。


这篇文章对您有帮助吗?

Ready to Get Started?

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