由于服务器生成的配置文件是没有游戏难度参数的,仅有基础的信息参数,所以这里给出了完整的配置文件内容,复制粘贴进dedicatedserver.cfg内进行修改即可
{
"IpAddress": "0.0.0.0",
"GamePort": 8766,
"QueryPort": 27016,
"BlobSyncPort": 9700,
"ServerName": "服务器名称",
"MaxPlayers": 8,
"Password": "",
"LanOnly": false,
"SaveSlot": 1,
"SaveMode": "Continue",
"GameMode": "Normal",
"SaveInterval": 600,
"IdleDayCycleSpeed": 0.0,
"IdleTargetFramerate": 5,
"ActiveTargetFramerate": 60,
"LogFilesEnabled": false,
"TimestampLogFilenames": true,
"TimestampLogEntries": true,
"SkipNetworkAccessibilityTest": false,
"GameSettings": {
"Gameplay.TreeRegrowth": true,
"Structure.Damage": true
},
"CustomGameModeSettings": {
"GameSetting.Multiplayer.Cheats": false,
"GameSetting.Multiplayer.PvpDamage": "normal",
"GameSetting.Vail.EnemySpawn": true,
"GameSetting.Vail.EnemyHealth": "normal",
"GameSetting.Vail.EnemyDamage": "normal",
"GameSetting.Vail.EnemyArmour": "normal",
"GameSetting.Vail.EnemyAggression": "normal",
"GameSetting.Vail.AnimalSpawnRate": "normal",
"GameSetting.Vail.EnemySearchParties": "normal",
"GameSetting.Environment.StartingSeason": "summer",
"GameSetting.Environment.SeasonLength": "default",
"GameSetting.Environment.DayLength": "default",
"GameSetting.Environment.PrecipitationFrequency": "default",
"GameSetting.Survival.ConsumableEffects": "normal",
"GameSetting.Survival.PlayerStatsDamage": "off",
"GameSetting.Survival.ColdPenalties": "off",
"GameSetting.Survival.StatRegenerationPenalty": "off",
"GameSetting.Survival.ReducedFoodInContainers": false,
"GameSetting.Survival.SingleUseContainers": true,
"GameSetting.Survival.BuildingResistance": "normal",
"GameSetting.Survival.CreativeMode": false,
"GameSetting.Survival.PlayersImmortalMode": false,
"GameSetting.FreeForm.ForcePlaceFullLoad": false,
"GameSetting.Construction.NoCuttingsSpawn": false,
"GameSetting.Survival.OneHitToCutTrees": false,
}
}
需要注意:要修改难度参数你需要将难度修改成自定义,不是自定义难度修改任何难度参数都是无效的,还是会按照预设的难度进行游戏。并且你之前的存档不是自定义难度的,你可能需要删除存档,再创建才会变成自定义的难度,中途将普通难度的存档换成自定义难度的存档不确定是否会成功,存档位置请看此教程👉【森林之子服务器存档位置】
难度修改在配置文件中找到GameMode将后面双引号内的内容修改
Normal:正常;Hard:困难;Hardsurvival:艰难生存;Peaceful:和平;Custom:自定义
如需更换难度需要删除整个存档文件夹后更改为其他难度

以下是基础参数修改对照
评论区