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

Soldat 2 服务器设置指南


本指南介绍如何在 Legion Hosting 上设置 Soldat 2 专用服务器、配置启动变量以及连接玩家。Soldat 2 是经典 2D 死亡竞赛射击游戏的续作,具有真实枪械、布娃娃物理和基于物理的移动系统。有关管理员命令、RCON 和游戏配置,请参阅 Soldat 2 管理员和命令指南

什么是 Soldat 2? Soldat 2 是一款 2D 死亡竞赛射击游戏,具有真实枪械、布娃娃暴力效果和基于物理的移动系统。它是原版 Soldat 的续作,采用现代技术构建,具有改进的图形和游戏机制。

1. 首次启动

  1. 登录 GPanel 并选择您的 Soldat 2 服务器。
  2. 转到 Startup 选项卡并配置变量(请参阅第 2 节中的表格)。
  3. SERVER_NAME 设置为您想要的服务器名称(不能包含空格)。
  4. RCON_PASSWORD 设置为用于远程管理的安全密码。
  5. 返回 Console 选项卡,点击 Start
  6. 等待控制台显示 ALL RULES SCRIPTS INITIALIZED。首次启动会生成 autoconfig.ini 配置文件。
服务器名称不能包含空格。 SERVER_NAME 变量不支持空格。请使用下划线或连字符代替(例如 My-Soldat2-Server)。

2. GPanel 启动变量

以下变量可在 GPanel Startup 选项卡中使用。

变量 默认值 描述
SERVER_NAME PterodactylServer 在主列表中显示的服务器名称(最多 50 个字符,不能包含空格)。
MAX_PLAYERS 12 最大玩家数(1-12)。
SERVER_PASSWORD ServerPassword 加入服务器的密码。清空此项可将服务器设为公开。
RCON_PASSWORD RconPassword RCON(远程控制台)访问密码。
RCON_PORT 0 RCON WebSocket 端口。设置为 0 禁用 RCON。
WEBSOCKETS_PORT 0 用于浏览器连接的 WebSockets 端口。设置为 0 禁用。
GREET_MESSAGE Welcome! Be friendly and have fun! 玩家加入时显示的消息(最多 200 个字符)。
ADMIN_PLAYFAB_ID IDHere 用于获取管理员权限的 PlayFab ID。连接时可在服务器日志中找到。

3. 服务器配置 (autoconfig.ini)

主服务器配置文件为:

autoconfig.ini

通过 GPanel 中的 Files 选项卡打开此文件,或通过 SFTP 连接。该文件使用 INI 格式。

启动变量会覆盖 autoconfig.ini。 autoconfig.ini 中的许多设置在每次服务器启动时会被 GPanel 启动变量自动覆盖。请使用 Startup 选项卡进行主要设置。

关键设置

设置 描述
GameServerConfig.Name 服务器名称(由 SERVER_NAME 变量管理)。
GameServerConfig.Port 服务器端口(由 GPanel 管理)。
GameServerConfig.MaxPlayers 最大玩家数(由 MAX_PLAYERS 变量管理)。
GameServerConfig.GreetMessage 欢迎消息(由 GREET_MESSAGE 变量管理)。
GameServerConfig.AdminPlayfabId 服务器管理员的 PlayFab ID。
GameServerConfig.ServerPassword 加入密码(由 SERVER_PASSWORD 变量管理)。
GameServerConfig.RconPassword RCON 密码(由 RCON_PASSWORD 变量管理)。

4. 玩家如何连接

  1. 启动 Soldat 2。
  2. 在主菜单中选择 Play Online
  3. 浏览服务器列表按名称查找您的服务器,或使用直接连接。
  4. 如果服务器设有密码,系统会提示您输入密码。
除非您拥有独立 IP,否则端口是随机分配的。 请在 GPanel 的 Network 选项卡中查看服务器的实际 IP 和端口。详情请参阅 如何查找服务器 IP 和端口

5. 查找您的 PlayFab ID

要在游戏中获取管理员权限,您需要在 ADMIN_PLAYFAB_ID 变量中设置您的 PlayFab ID。

  1. 启动服务器并以玩家身份连接。
  2. 查看 GPanel 控制台输出。当您加入时,会出现一条日志消息,格式为:1 YOUR_NAME joined the server [YOUR_PLAYFAB_ID],其中显示您的 PlayFab ID。
  3. 复制 PlayFab ID 并在 ADMIN_PLAYFAB_ID 启动变量中设置。
  4. 重启服务器使更改生效。

相关文章

需要帮助?

如果您的 Soldat 2 服务器遇到问题,请 提交工单,并附上您的服务器 IP、问题描述以及 GPanel 控制台中的相关错误信息。


这篇文章对您有帮助吗?

Ready to Get Started?

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