由于服务器生成的配置文件是没有游戏难度参数的,仅有基础的信息参数,所以这里给出了完整的配置文件内容,复制粘贴进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:自定义
如需更换难度需要删除整个存档文件夹后更改为其他难度
以下是基础参数修改对照
"IpAddress": 服务器ip,不修改,保留默认
"GamePort": 服务器游戏端口,不修改,保留默认
"QueryPort": 服务器查询端口,不修改,保留默认
"BlobSyncPort": 服务器数据端口,不修改,保留默认
"ServerName": 服务器名称,可自行修改
"MaxPlayers": 服务器人数,目前已知最高8人
"Password": 服务器密码,可自行修改
"LanOnly": 保留默认
"SaveSlot": 保留默认
"SaveMode": 保留默认
"GameMode": 游戏难度,中途修改难度可能需要删除存档重新生成才可生效
"SaveInterval": 保留默认
"IdleDayCycleSpeed": 保留默认
"IdleTargetFramerate": 保留默认
"ActiveTargetFramerate":保留默认
"LogFilesEnabled": 保留默认
"TimestampLogFilenames": 保留默认
"TimestampLogEntries": 保留默认
"SkipNetworkAccessibilityTest": 保留默认
以下是难度参数修改对照
GameSetting.Multiplayer.Cheats(是否允许作弊)
可修改的值为true, false
GameSetting.Multiplayer.PvpDamage(pvp伤害)
可修改的值为off, reduced, normal
GameSetting.Vail.EnemySpawn(敌人)
可修改的值为true, false
GameSetting.Vail.EnemyHealth(敌人血量)
可修改的值为low, normal, high
GameSetting.Vail.EnemyDamage(敌人杀伤力)
可修改的值为low, normal, high
GameSetting.Vail.EnemyArmour(敌人盔甲)
可修改的值为low, normal, high
GameSetting.Vail.EnemyAggression(敌人敌意程度)
可修改的值为low, normal, high
GameSetting.Vail.EnemySearchParties(敌方搜寻队)
可修改的值为low, normal, high
GameSetting.Vail.AnimalSpawnRate(动物数量)
可修改的值为low, normal, high
GameSetting.Environment.StartingSeason(初始季节)
可修改的值为spring, summer, autumn, winter
GameSetting.Environment.SeasonLength(季节长度)
可修改的值为short, default, long, realistic
GameSetting.Environment.DayLength(日间长度)
可修改的值为short, default, long, realistic
GameSetting.Environment.PrecipitationFrequency(降雨频率)
可修改的值为low, default, high
GameSetting.Survival.PlayerStatsDamage(生存伤害)
可修改的值为off, normal, hard
GameSetting.Survival.ConsumableEffects(消耗品效果)
可修改的值为normal, hard
GameSetting.Survival.ColdPenalties(寒冷惩罚)
可修改的值为off, normal, hard
GameSetting.Survival.StatRegenerationPenalty(属性恢复惩罚)
可修改的值为off, normal, hard
GameSetting.Survival.ReducedFoodInContainers(容器中的食物更少)
可修改的值为true, false
GameSetting.Survival.SingleUseContainers(加载存档时容器不会重新填充)
可修改的值为true, false
GameSetting.Survival.BuildingResistance(建筑抵抗力)
可修改的值为low, normal, high
GameSetting.Survival.CreativeMode(创意模式)
可修改的值为true, false
GameSetting.Survival.PlayersImmortalMode(上帝模式)
可修改的值为true, false
GameSetting.FreeForm.ForcePlaceFullLoad(集体放置)
可修改的值为true,false
GameSetting.Construction.NoCuttingsSpawn(不生成木屑)
可修改的值为true, false
GameSetting.Survival.OneHitToCutTrees(即时间砍树)
可修改的值为true, false
评论区