Enshrouded server settings: the JSON file and difficulty
What is in enshrouded_server.json, the Default, Relaxed, Hard and Survival presets, your own gameSettings and the length of day and night.
The whole configuration of an Enshrouded server fits in one file. The panel sets some of the fields for you, and you change the rest yourself: from a ready-made difficulty level to boss strength and the length of the night.
The short answer
You change the name, password and player count in Startup parameters. Difficulty and world rules live in enshrouded_server.json in the server's main folder, and you always edit it with the server stopped. The easiest way is to pick a ready-made preset in the gameSettingsPreset field. Individual values only take effect when the preset is set to Custom.
What is in enshrouded_server.json
| Field | What it does | Who sets it |
|---|---|---|
name | name in the server list | panel (Server Name) |
slotCount | number of slots, 1 to 16 | panel (Max Players) |
queryPort | server port | panel, do not change |
saveDirectory, logDirectory | folders for the world save and logs | leave the defaults |
enableTextChat, enableVoiceChat | text and voice chat, true or false | you |
voiceChatMode | Proximity (you hear people nearby) or Global | you |
gameSettingsPreset | difficulty level | you |
gameSettings | individual gameplay settings | you |
userGroups | player groups with passwords and permissions | you, the Default group password comes from the panel |
Fields set by the panel are overwritten on every start. Changing the name or player count in the file itself does nothing, so do it in the panel. Groups and passwords are covered in Enshrouded server for friends.
Difficulty presets
The gameSettingsPreset field takes one of five values. Capitalisation matters.
| Value | Who it is for |
|---|---|
Default | standard settings, recommended for a first playthrough |
Relaxed | fewer enemies, more resources and loot; for groups who would rather build |
Hard | more enemies, and they are more aggressive |
Survival | aggressive enemies and extra survival mechanics |
Custom | turns on your own values from the gameSettings section |
With any preset other than Custom, the server ignores the whole gameSettings section without any message. If you changed enemy strength and nothing changed in the game, check this field first.
Your own gameSettings
The game shows the multipliers from the file as percentages: 1 is 100% and 0.5 is half. Values outside the range are clamped to the nearest limit. The most commonly changed fields:
| Field | Default | Range | What it changes |
|---|---|---|---|
playerHealthFactor | 1 | 0.25 to 4 | player health |
playerStaminaFactor | 1 | 0.25 to 4 | player stamina |
enableDurability | true | true, false | with false weapons do not wear out |
enableStarvingDebuff | false | true, false | hunger that drains health |
tombstoneMode | AddBackpackMaterials | AddBackpackMaterials, Everything, NoTombstone | what a player loses on death |
randomSpawnerAmount | Normal | Few, Normal, Many, Extreme | number of enemies in the world |
aggroPoolAmount | Normal | Few, Normal, Many, Extreme | how many enemies attack at once |
enemyDamageFactor | 1 | 0.25 to 5 | enemy damage (bosses excluded) |
enemyHealthFactor | 1 | 0.25 to 4 | enemy health (bosses excluded) |
bossDamageFactor, bossHealthFactor | 1 | 0.2 to 5 | boss damage and health |
pacifyAllEnemies | false | true, false | enemies do not attack until you provoke them |
resourceDropStackAmountFactor | 1 | 0.25 to 2 | amount of resources from loot |
factoryProductionSpeedFactor | 1 | 0.25 to 2 | working time of crafting stations |
experienceCombatFactor | 1 | 0.25 to 2 | experience from combat |
weatherFrequency | Normal | Disabled, Rare, Normal, Often | how often weather events happen |
curseModifier | Normal | Easy, Normal, Hard | chance of the Shroud curse after a hit |
The full list of fields with descriptions is published by the developer, Keen Games, in their help center, in the article on server gameplay settings.
Day and night length and safe editing
The fields dayTimeDuration, nightTimeDuration and fromHungerToStarving take time in nanoseconds. One minute is 60000000000. By default a day lasts 30 minutes and a night 12. Day and night can each be set from 2 to 60 minutes.
"gameSettingsPreset": "Custom",
"gameSettings": {
"dayTimeDuration": 2400000000000,
"nightTimeDuration": 600000000000,
...
}
The example above gives 40 minutes of day and 10 minutes of night. The three dots stand for the other fields, which you leave as they are.
- Stop the server. The game writes its settings to the file when it shuts down, so changes made on a running server are lost.
- Make a copy in Server backups or download the file itself.
- Change the values in Files, watching the commas and quotes.
- Start the server and check the console. If the game shuts down right after starting, the file has a syntax error.
Changing the difficulty does not delete the world. The new settings apply from the next start.
Ready-made sets for typical groups
A few example combinations. Each one needs the Custom preset, and fields not listed stay at their defaults.
Stress-free building. For groups who came mainly to build:
"pacifyAllEnemies": true,
"enableDurability": false,
"resourceDropStackAmountFactor": 2
Enemies leave you alone until you provoke them, weapons do not wear out and loot gives twice the resources. Bosses are not affected and fight normally.
A demanding campaign. For a group that found Default too easy:
"randomSpawnerAmount": "Many",
"aggroPoolAmount": "Many",
"enemyDamageFactor": 1.5,
"bossHealthFactor": 1.5,
"enableStarvingDebuff": true
More enemies, harder hits, bosses with more health and hunger that drains health. Save Extreme enemy numbers for later: lots of enemies in one place means more work for the server's CPU.
A slower game for busy players. A longer day (dayTimeDuration at 45 minutes, which is 2700000000000) and more combat experience (experienceCombatFactor at 1.5) help when your group plays once a week for two hours.
FAQ
Where is the Enshrouded server settings file? In the server's main folder, named enshrouded_server.json. You open it in Files in the panel.
How do I change the difficulty on an Enshrouded server? Stop the server and set gameSettingsPreset to Default, Relaxed, Hard, Survival or Custom. Then start the server again.
Why are my gameSettings not working? Individual settings only work with gameSettingsPreset set to Custom. With any other preset the server ignores them without a message.
How do I make the day longer on an Enshrouded server? Set the Custom preset and change dayTimeDuration. The value is in nanoseconds: one minute is 60000000000, and the range is 2 to 60 minutes.
Does changing the difficulty delete the world? No. The new settings apply to the existing world from the next server start. If the server does not come back up after an edit, see Enshrouded server not working.
Want to run Enshrouded on your own rules? Have a look at our Enshrouded server hosting.