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

Left 4 Dead 服务器设置指南


Left 4 Dead 是一款合作生存恐怖FPS游戏,四名玩家需要共同对抗成群的感染者。本指南涵盖在 Legion Hosting 上设置专用 Left 4 Dead 服务器、配置启动变量以及玩家连接的方法。

开始之前: 请确保您有权访问您的 GPanel 账户。如果您需要帮助查找服务器详细信息,请参阅 如何查找您的服务器 IP 和端口

在 GPanel 中首次启动

  1. 登录 GPanel 并选择您的 Left 4 Dead 服务器。
  2. 导航到 控制台 选项卡。服务器将通过 SteamCMD(App ID 222840)自动下载游戏文件。
  3. 等待下载完成。这是一款 Source 引擎游戏,可能需要一些时间。
  4. 安装完成后,服务器将启动。在控制台中查看 Connection to Steam servers successful. 消息。
  5. 如果服务器未自动启动,请点击 启动
首次启动时间: Left 4 Dead 的初始 SteamCMD 下载可能需要 10-20 分钟。请勿中断安装过程。

启动变量

在 GPanel 中导航到 启动 选项卡以查看和修改以下变量:

变量 描述 默认值
SRCDS_MAP 服务器启动时加载的默认地图 l4d_hospital01_apartment
AUTO_UPDATE 启动时自动更新服务器(1 = 开启,0 = 关闭) 1

可用地图

Left 4 Dead 战役地图遵循 l4d_[campaign][chapter]_[name] 的命名规则。常见起始地图:

战役 起始地图
No Mercy l4d_hospital01_apartment
Death Toll l4d_smalltown01_caves
Dead Air l4d_airport01_greenhouse
Blood Harvest l4d_farm01_hilltop

服务器配置

Left 4 Dead 使用 Source 引擎配置文件。主配置文件为 left4dead/cfg/server.cfg。使用 文件管理器SFTP 创建或编辑该文件。

示例 server.cfg

hostname "My Left 4 Dead Server"
sv_password ""
sv_maxplayers 4
mp_disable_autokick 1
sv_allow_lobby_connect_only 0
sv_steamgroup_exclusive 0
设置 描述
hostname 在服务器浏览器中显示的服务器名称
sv_password 加入所需的密码(留空则为公开服务器)
sv_maxplayers 最大玩家数(合作模式通常为 4 人,对抗模式为 8 人)
sv_allow_lobby_connect_only 设置为 0 允许不通过大厅直接连接
mp_disable_autokick 设置为 1 防止挂机玩家被自动踢出
需要重启: 编辑 server.cfg 后,需要从 GPanel 重启服务器以使更改生效。

如何连接

通过服务器浏览器

  1. 从 Steam 启动 Left 4 Dead。
  2. 打开开发者控制台(按 ~)。如果未启用,请前往 Options > Keyboard/Mouse > Allow Developer Console
  3. 输入 openserverbrowser 打开服务器浏览器。
  4. 通过名称搜索您的服务器,或使用 IP 将其添加到收藏夹。

通过控制台

  1. 打开开发者控制台(~)。
  2. 输入 connect IP:PORT(例如 connect 192.168.1.100:27015)。
查找您的 IP: 您的服务器 IP 和端口显示在 GPanel 中服务器的主页面上。除非您拥有专用 IP,否则端口是随机分配的。有关详细说明,请参阅 如何查找您的服务器 IP 和端口

游戏模式

Left 4 Dead 支持多种游戏模式。通过添加启动参数或使用控制台命令更改模式:

  • 合作模式: 默认模式。4 名玩家对抗 AI 感染者。
  • 对抗模式: 4 名幸存者对抗 4 名玩家控制的感染者。在 server.cfg 中使用 sv_gametypes versus
  • 生存模式: 在一个位置抵御无尽的感染者波次。使用 sv_gametypes survival

相关文章

需要帮助? 如果您遇到本指南未涵盖的问题,请 提交工单,我们的团队将为您提供帮助。

这篇文章对您有帮助吗?

Ready to Get Started?

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