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

Arma 3 服务器设置指南

ZH arma-3 setup config milsim 0 人觉得有帮助

在 Legion Hosting 上设置和配置 Arma 3 专用服务器的完整指南。服务器运行后,请参阅我们的模组安装指南添加 Workshop 内容,以及管理员和 BattlEye 设置指南来配置服务器管理和反作弊。

在 GPanel 中首次启动

从 Legion Hosting 购买 Arma 3 服务器后,登录 GPanel(gpanel.legionhosting.net)进行管理。

  1. 从仪表板导航到您的 Arma 3 服务器。
  2. Console 选项卡上,点击 Start 首次启动服务器。初次启动需要几分钟时间,因为它会通过 SteamCMD 下载和安装 Arma 3 专用服务器文件。
  3. 当控制台显示 Game started 或类似的就绪消息时,您的服务器已上线且可加入。
  4. 在进行配置更改之前停止服务器,以确保更改正确应用。
提示: 如果首次启动时看到 SteamCMD 验证错误,只需重启服务器。可能需要第二次运行才能完成所有文件的下载。

GPanel 启动变量

GPanel 提供控制 Arma 3 服务器二进制文件启动方式的启动变量。这些可以在服务器面板的 Startup 选项卡中找到。常见变量包括:

变量 描述 示例
SERVER_PORT 主游戏端口 (UDP)。由 GPanel 自动设置。 2302
SERVER_CFG 服务器配置文件路径。 server.cfg
SERVER_PROFILE 日志和设置的服务器配置文件目录名称。 server
MAX_PLAYERS 最大玩家槽位数。 64
MODS 以分号分隔的要加载的模组文件夹列表。 @CBA_A3;@ace
SERVER_MODS 仅服务器端模组(客户端不需要)。 @OCAP2
ADDITIONAL_PARAMS 附加到命令行的额外启动参数。 -filePatching -enableHT
重要: 某些变量可能因您特定的服务器 egg 配置而有所不同。请检查您的 GPanel Startup 选项卡以了解可用的确切变量名称。

server.cfg 配置

server.cfg 文件是 Arma 3 服务器的主要配置文件。通过 GPanel 中的 File Manager 选项卡或通过 SFTP 上传来访问它。以下是一个完整示例:

// ========================================
// Arma 3 Server Configuration
// ========================================

// Server Identity
hostname = "My Legion Hosting Arma 3 Server";
password = "";                     // Server password (empty = no password)
passwordAdmin = "MyAdminPass123";  // Admin password for #login
motd[] = {
    "Welcome to our Arma 3 server!",
    "Hosted by Legion Hosting",
    "TeamSpeak: ts.example.com"
};
motdInterval = 5;                  // Seconds between MOTD messages

// Player Settings
maxPlayers = 64;
kickDuplicate = 1;                 // Kick duplicate player IDs
verifySignatures = 2;              // 0=off, 1=warn, 2=kick unsigned addons
requiredSecureId = 2;              // Require BattlEye secure ID

// Voting
voteMissionPlayers = 1;            // Min players to vote for mission
voteThreshold = 0.33;              // 33% vote threshold

// Network
disconnectTimeout = 5;             // Timeout for disconnect (seconds)
maxDesync = 150;                   // Max desync before kick
maxPing = 350;                     // Max ping before kick
maxPacketLoss = 50;                // Max packet loss % before kick

// Performance
MinBandwidth = 107374182;          // Minimum bandwidth (bits/s)
MaxBandwidth = 1073741824;         // Maximum bandwidth (bits/s)
MaxMsgSend = 128;                  // Max messages per frame
MaxSizeGuaranteed = 512;           // Max guaranteed packet size
MaxSizeNonguaranteed = 256;        // Max non-guaranteed packet size

// Logging
logFile = "server_console.log";
timeStampFormat = "short";

// Persistent Battlefield
persistent = 1;                    // Enable persistence

// BattlEye Anti-Cheat
BattlEye = 1;                     // 1=enabled, 0=disabled

// Mission Rotation
class Missions {
    class Mission1 {
        template = "Escape_Altis.Altis";
        difficulty = "Custom";
    };
    class Mission2 {
        template = "co10_Escape_Tanoa.Tanoa";
        difficulty = "Custom";
    };
};
提示: 任务模板名称对应任务 PBO 文件名(不含 .pbo 扩展名)。例如,co40_AW_Invade_Annex.Altis.pbo 变为 co40_AW_Invade_Annex.Altis。将任务文件上传到 mpmissions/ 目录。

难度设置和服务器配置文件

Arma 3 使用服务器配置文件来存储难度设置。配置文件创建在与 SERVER_PROFILE 启动变量匹配的目录中。难度配置文件通常位于:

<profile_name>/<profile_name>.Arma3Profile

您可以在 server.cfgMissions 类中将难度设置为预设值之一(recruitregularveterancustom),或在服务器配置文件中定义完全自定义的难度类:

class DifficultyPresets {
    class CustomDifficulty {
        class Options {
            // HUD Elements
            groupIndicators = 1;      // 0=never, 1=limited, 2=always
            friendlyTags = 1;          // 0=never, 1=limited, 2=always
            enemyTags = 0;             // 0=never, 1=limited, 2=always
            detectedMines = 1;         // 0=never, 1=limited, 2=always
            commands = 1;              // 0=never, 1=limited, 2=always
            waypoints = 1;             // 0=never, 1=limited, 2=always
            weaponInfo = 2;
            stanceIndicator = 2;
            staminaBar = 1;
            weaponCrosshair = 0;       // Disable crosshair
            visionAid = 0;

            // Gameplay
            thirdPersonView = 0;       // Disable 3rd person (milsim)
            reducedDamage = 0;
            tacticalPing = 1;          // 0=off, 1=enabled
            cameraShake = 1;
            scoreTable = 1;
            deathMessages = 0;
            vonID = 1;
            mapContent = 0;            // Hide map markers
            autoReport = 0;            // Disable AI auto-report
            multipleSaves = 0;
        };

        // AI Skill
        aiLevelPreset = 3;            // 0=low, 1=normal, 2=high, 3=custom
        class CustomAILevel {
            skillAI = 0.75;
            precisionAI = 0.40;
        };
    };
    defaultDifficulty = "CustomDifficulty";
};
军事模拟提示: 要获得真实的军事模拟体验,请禁用第三人称视角(thirdPersonView = 0)、准星(weaponCrosshair = 0)和死亡消息(deathMessages = 0)。大多数军事模拟社区还使用 ACE3 模组来获得高级医疗和弹道系统。

任务轮换

任务在 server.cfgclass Missions 块中定义。服务器在启动时加载第一个任务,并在当前任务结束或玩家投票时轮换到后续任务。

class Missions {
    class Mission1 {
        template = "co40_AW_Invade_Annex.Altis";
        difficulty = "Custom";
        // Optional parameters:
        // class Params {};  // Mission-specific parameters
    };
    class Mission2 {
        template = "Warlords_Altis.Altis";
        difficulty = "veteran";
    };
    class Mission3 {
        template = "co10_Escape_Tanoa.Tanoa";
        difficulty = "Custom";
    };
};

将任务添加到服务器:

  1. Steam Workshop 或社区网站下载任务 PBO 文件。
  2. 通过 SFTP 或 GPanel 文件管理器将 .pbo 文件上传到服务器的 mpmissions/ 目录。
  3. server.cfgclass Missions 块中添加相应的条目,使用文件名(不含 .pbo)作为 template 值。
  4. 重启服务器以使更改生效。
注意: 如果任务文件需要特定模组,则必须在服务器上加载这些模组。否则任务将无法加载,服务器可能会跳到轮换中的下一个任务。

如何连接

有多种方式可以连接到您的 Arma 3 服务器:

服务器浏览器

  1. 启动 Arma 3 并从主菜单点击 Multiplayer
  2. Server Browser 中,使用筛选选项或按名称搜索您的服务器。
  3. 选择您的服务器并点击 Join。如果设置了密码则输入密码。

直接连接

  1. 在服务器浏览器中,点击底部的 Direct Connect
  2. 输入您的服务器 IP 和端口(在 GPanel 的服务器概览中可找到)。默认游戏端口为 2302
  3. 点击 Join

Steam 服务器列表

  1. 在 Steam 中,转到 View > Game Servers(或 View > Servers)。
  2. 点击 Favorites 选项卡,然后点击 Add a Server
  3. 输入您的服务器 IP 和 Steam Query Port(游戏端口 + 1,例如游戏端口为 2302,则使用 2303)。
  4. 点击 Add this address to favorites,然后通过列表连接。
端口: Arma 3 使用多个端口。主游戏端口(默认 2302)加上 Steam Query 端口(游戏端口 + 1)。如果您的 GPanel 显示端口 2302,玩家应使用该端口连接。Steam 查询端口 2303 用于服务器浏览器查询。除非您有专用 IP,否则服务器端口是随机分配的——请始终在 GPanel 中查看正确的端口。

性能调优

Arma 3 服务器可能非常消耗资源,特别是在大量玩家和 AI 密集型任务时。以下是优化性能的关键设置和技术:

无头客户端

无头客户端 (HC) 将 AI 处理从服务器卸载到单独的进程,显著提高 AI 密集型任务的服务器 FPS。任务必须支持无头客户端才能使用此功能。

要启用无头客户端,在 server.cfg 中添加以下内容:

// Headless Client Configuration
headlessClients[] = {"127.0.0.1"};
localClient[] = {"127.0.0.1"};
注意: 无头客户端支持取决于您的托管计划和可用资源。运行无头客户端会消耗额外的 RAM 和 CPU。如果您需要在服务器上设置无头客户端的帮助,请联系 Legion Hosting 支持

服务器 FPS 和网络设置

这些 server.cfg 设置会影响性能:

设置 推荐值 说明
MinBandwidth 107374182 每个客户端的最小带宽(bits/s)
MaxBandwidth 1073741824 最大总带宽(bits/s)
MaxMsgSend 128 每个模拟帧发送的消息数
MaxSizeGuaranteed 512 最大可靠消息大小(字节)
MaxSizeNonguaranteed 256 最大非可靠消息大小(字节)
maxDesync 150 不同步踢出阈值
maxPing 350 高延迟踢出阈值

附加启动参数

您可以将这些添加到 GPanel 中的 ADDITIONAL_PARAMS 启动变量:

参数 描述
-enableHT 为多核 CPU 启用超线程支持。
-hugepages 启用大内存页以获得更好的内存性能。
-loadMissionToMemory 将整个任务加载到 RAM 中以加快访问速度。
-noLogs 禁用 RPT 日志记录(仅在调试完成后使用)。
警告: 如果您的服务器 FPS 降至 10 以下,玩家将遇到严重的不同步、橡皮筋效应和可能的断开连接。通过控制台或管理工具监控服务器性能,必要时减少 AI 数量或玩家槽位。

相关文章

需要帮助?

如果您在设置 Arma 3 服务器时遇到问题或需要进一步帮助,我们的支持团队随时为您服务。提交支持工单,我们将帮您解决问题。


这篇文章对您有帮助吗?

Ready to Get Started?

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