轻松管理 DayZ 服务器
- 确保你通过 Steam 安装好了 DayZ 和 DayZ Server。
- 确保你至少启动过一次 DayZ 客户端启动器。
- 如果你需要安装模组,请确保你订阅模组后,启动过游戏启动器,以确保模组更新完成。
- 建立一个空文件夹(不要在桌面,不要使用中文),将该 exe 程序拖入这个空文件夹。
- 双击启动一次 exe 程序,等待程序会自动关闭。
- 再次启动 exe 程序,等待服务器开启。
- 打开 DayZ 游戏,在 LAN 找到你的服务器,设置 DLC 并加入。
- 开始玩吧~
- 将
server-tools.exe放置在空文件夹中。 - 在该文件夹中创建
config.yaml文件。 - 在
config.yaml中填写以下配置项
server_name: "ServerTest" # 服务器名称
port: 2302 # 端口号
mission: "dayzOffline.chernarusplus" # 地图任务
client_mods: ["@CF"] # 客户端模组
server_mods: [] # 服务器模组- 首次运行
server-tools.exe,确保目录中已生成mpmissions、profiles和serverCfgs文件夹。 - 根据
config.yaml中的server_name创建对应的配置文件。例如,如果server_name为ServerTest,则在serverCfgs文件夹中创建ServerTest.cfg文件。 - 填写 cfg 文件内容,官方参考配置:
hostname = "示例服务器"; // 服务器名称
password = ""; // 连接服务器密码
passwordAdmin = ""; // 管理员密码
description = ""; // 服务器描述,将显示在客户端服务器浏览器中
enableWhitelist = 0; // 启用/禁用白名单 (0-1)
maxPlayers = 60; // 最大玩家数
verifySignatures = 2; // 验证 .pbo 文件签名 (仅支持值 2)
forceSameBuild = 1; // 强制客户端版本与服务器版本一致 (0-1)
disableVoN = 0; // 启用/禁用语音 (0-1)
vonCodecQuality = 20; // 语音编码质量,越高越好 (0-30)
shardId = "123abc"; // 私人服务器的六位字母数字标识符
disable3rdPerson=0; // 切换第三人称视角 (0-1)
disableCrosshair=0; // 切换准星显示 (0-1)
disablePersonalLight = 1; // 禁用所有客户端的个人光源
lightingConfig = 0; // 0 为较亮的夜晚设置,1 为较暗的夜晚设置
serverTime="SystemTime"; // 服务器初始时间,"SystemTime"表示使用本机时间
serverTimeAcceleration=12; // 时间加速倍率 (0-24)
serverNightTimeAcceleration=1; // 夜间时间加速倍率 (0.1-64)
serverTimePersistent=0; // 时间持久化 (0-1)
guaranteedUpdates=1; // 游戏服务器通信协议 (仅使用 1)
loginQueueConcurrentPlayers=5; // 同时处理的登录玩家数量
loginQueueMaxPlayers=500; // 登录队列最大玩家数
instanceId = 1; // DayZ 服务器实例 ID
storageAutoFix = 1; // 检查并修复损坏的持久化文件 (0-1)
class Missions
{
class DayZ
{
template="dayzOffline.chernarusplus"; // 服务器启动时加载的任务
};
};- 将地图任务文件放入 mpmissions 文件夹,确保文件名与配置文件中的名称一致
!请注意:cfg 中配置的地图设置将不会生效 👇(以下代码无效)
class Missions
{
class DayZ
{
template="dayzOffline.chernarusplus"; // 服务器启动时加载的任务
};
};
- 如果你只启动单个服务器,直接运行 exe 文件即可开始使用
- 将所有需要启动的 yaml 配置文件放在 exe 同目录,例如:
config.yaml
config-namalsk.yaml
- 在 exe 同目录创建
active.cfg,每行填写一个要启动的 yaml 文件名:
config.yaml
config-namalsk.yaml- 确保每个 yaml 中的
server_name、port和任务配置互不冲突 - 运行 exe 后,程序会按照
active.cfg中的列表同时启动多个服务器 - 如果
active.cfg不存在,程序会回退到默认读取config.yaml,保持单服务器启动方式不变
Easily manage your DayZ server
- Make sure you have installed DayZ and DayZ Server via Steam.
- Make sure you have launched the DayZ client launcher at least once.
- If you need to install mods, make sure you have subscribed to the mods and launched the game launcher to complete the mod update.
- Create an empty folder (do not use Desktop, do not use Chinese characters), and put the exe program into this folder.
- Double-click to run the exe program once, wait for the program to close automatically.
- Run the exe program again, wait for the server to start.
- Open DayZ, find your server in LAN, set DLC and join.
- Start playing!
- Put
server-tools.exein an empty folder. - Create a
config.yamlfile in this folder. - Fill in the following configuration in
config.yaml:
server_name: "ServerTest" # Server name
port: 2302 # Port number
mission: "dayzOffline.chernarusplus" # Map mission
client_mods: ["@CF"] # Client mods
server_mods: [] # Server mods- Run
server-tools.exefor the first time, make sure the foldersmpmissions,profiles, andserverCfgsare generated in the directory. - According to the
server_nameinconfig.yaml, create the corresponding configuration file. For example, ifserver_nameisServerTest, create aServerTest.cfgfile in theserverCfgsfolder. - Fill in the cfg file content, official reference:
hostname = "Example Server"; // Server name
password = ""; // Password to connect to the server
passwordAdmin = ""; // Admin password
description = ""; // Server description, shown in client server browser
enableWhitelist = 0; // Enable/disable whitelist (0-1)
maxPlayers = 60; // Maximum number of players
verifySignatures = 2; // Verify .pbo file signatures (only 2 is supported)
forceSameBuild = 1; // Force client version to match server version (0-1)
disableVoN = 0; // Enable/disable voice (0-1)
vonCodecQuality = 20; // Voice codec quality (0-30)
shardId = "123abc"; // Six-character alphanumeric identifier for private server
disable3rdPerson=0; // Toggle third-person view (0-1)
disableCrosshair=0; // Toggle crosshair (0-1)
disablePersonalLight = 1; // Disable personal light for all clients
lightingConfig = 0; // 0 for brighter night, 1 for darker night
serverTime="SystemTime"; // Initial server time, "SystemTime" uses local machine time
serverTimeAcceleration=12; // Time acceleration multiplier (0-24)
serverNightTimeAcceleration=1; // Night time acceleration multiplier (0.1-64)
serverTimePersistent=0; // Persistent time (0-1)
guaranteedUpdates=1; // Game server communication protocol (use only 1)
loginQueueConcurrentPlayers=5; // Number of players processed concurrently during login
loginQueueMaxPlayers=500; // Maximum number of players in login queue
instanceId = 1; // DayZ server instance ID
storageAutoFix = 1; // Check and fix corrupted persistence files (0-1)
class Missions
{
class DayZ
{
template="dayzOffline.chernarusplus"; // Mission loaded at server startup
};
};- Put the map mission file into the mpmissions folder, make sure the file name matches the name in the configuration file.
Note: The map configuration in the cfg will not take effect 👇 (the following code is invalid)
class Missions
{
class DayZ
{
template="dayzOffline.chernarusplus"; // Mission loaded at server startup
};
};
- If you only need one server, just run the exe file to start.
- Put all yaml configuration files that should be started in the same directory as the exe, for example:
config.yaml
config-namalsk.yaml
- Create an
active.cfgfile in the same directory as the exe, and put one yaml file name on each line:
config.yaml
config-namalsk.yaml- Make sure
server_name,port, and mission-related settings do not conflict across yaml files. - After you run the exe, the program starts multiple servers at the same time according to the list in
active.cfg. - If
active.cfgdoes not exist, the program falls back toconfig.yaml, keeping the original single-server startup behavior.