为 Sons of The Forest 调整游戏设置
重要:一旦保存了游戏,就无法再更改游戏设置。
这些设置会写入存档,游戏因此会忽略之后修改的配置。
重要:你需要将服务器切换到Advanced Mode(高级模式)。
服务器必须一直保持在该模式下,否则在Advanced Mode中所做的更改会被还原!
提示:我们建议你使用 JSON 格式的语法检查工具。
如果语法不正确,服务器将无法正常启动。
- JSONLint:只能检查语法是否正确
- JSon Formatter:可以自动修复潜在错误。 然后勾选 Fix JSon。
游戏设置
以下游戏设置在所有游戏模式中均可修改:
"GameSettings": {
"Gameplay.TreeRegrowth": true,
"Structure.Damage": true
},
| 设置 | 可选值 | 说明 |
|---|---|---|
"Gameplay.TreeRegrowth" | true, false | 设定当你睡觉时树木是否会再生 |
"Structure.Damage" | true, false | 设定建筑物是否会受到伤害 |
以下设置仅在游戏模式选择为 Custom 时可更改:
"CustomGameModeSettings": {
"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.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.ReducedFoodInContainers": false,
"GameSetting.Survival.SingleUseContainers": false
},
| 设置 | 可选值 | 说明 |
|---|---|---|
GameSetting.Vail.EnemySpawn | true, false | 设定敌人是否会生成 |
GameSetting.Vail.EnemyHealth | low, normal, high | 设置敌人生成时的生命值 |
GameSetting.Vail.EnemyDamage | low, normal, high | 调整 NPC 造成的伤害 |
GameSetting.Vail.EnemyArmour | low, normal, high | 设置 NPC 的护甲值 |
GameSetting.Vail.EnemyAggression | low, normal, high | 设置 NPC 的攻击性等级 |
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.ConsumableEffects | normal, hard | 调整当缺水或缺少食物时受到的伤害 |
GameSetting.Survival.PlayerStatsDamage | off, normal, hard | 调整由变质饮品或食物引起的伤害 |
GameSetting.Survival.ColdPenalties | off, normal, hard | 调整寒冷对体力与生命恢复的影响 |
GameSetting.Survival.ReducedFoodInContainers | true, false | 设定容器中食物是否以更少数量生成 |
GameSetting.Survival.SingleUseContainers | true, false | 设定容器是否只能使用一次 |
示例配置
{
"IpAddress": "62.104.17.227",
"GamePort": 8766,
"QueryPort": 27016,
"BlobSyncPort": 9700,
"ServerName": "4Netplayers Sons of The Forest Server",
"MaxPlayers": 8,
"Password": "test",
"LanOnly": false,
"SaveSlot": 1,
"SaveMode": "Continue",
"GameMode": "Custom",
"SaveInterval": 600,
"IdleDayCycleSpeed": 0.0,
"IdleTargetFramerate": 5,
"ActiveTargetFramerate": 60,
"LogFilesEnabled": false,
"TimestampLogFilenames": true,
"TimestampLogEntries": true,
"SkipNetworkAccessibilityTest": false,
"GameSettings": {
"Gameplay.TreeRegrowth": false,
"Structure.Damage": false
},
"CustomGameModeSettings": {
"GameSetting.Vail.EnemySpawn": false,
"GameSetting.Vail.EnemyDamage": "Low",
"GameSetting.Survival.ReducedFoodInContainers": false
}
}
重要:请不要更改我们预设的端口值以及服务器地址!
否则你的服务器将无法正常运行。
同时请注意设置名称的大小写。
否则服务器将无法正常启动。