Necesse Server Configuration: Difference between revisions

From Survival Servers
Jump to navigation Jump to search
[wiki:ss-claude-11372] Fixes: wrong or outdated steps, labels and facts corrected, current pictures, dead links fixed, search title and description
[wiki:wiki-operator] Reworded to the house writing rules; facts that were wrong today corrected (approved by Ryan, Nov 17)
 
Line 3: Line 3:
|description=Every Necesse server setting with its default: the server.cfg keys, Server Config in the Command Center, and the commands that change difficulty and PvP.
|description=Every Necesse server setting with its default: the server.cfg keys, Server Config in the Command Center, and the commands that change difficulty and PvP.
}}
}}
Every setting a Necesse dedicated server reads at startup lives in one file: <code>server.cfg</code>, found under <code>%APPDATA%\Necesse\cfg\</code> on Windows or <code>~/.config/Necesse/cfg/</code> on Linux.
Every setting a Necesse dedicated server reads when it starts is in one file: <code>server.cfg</code>, found under <code>%APPDATA%\Necesse\cfg\</code> on Windows or <code>~/.config/Necesse/cfg/</code> on Linux.


'''Edit the file while the server is stopped.''' Necesse rewrites <code>server.cfg</code> from its in-memory values on a clean shutdown, so changes made while the server is running are silently overwritten.
'''Edit the file while the server is stopped.''' Necesse rewrites <code>server.cfg</code> from its current settings on a clean shutdown, so changes made while the server is running are overwritten without warning.


== server.cfg keys ==
== server.cfg keys ==
Line 12: Line 12:
! Key !! Default !! Range / values !! What it does
! Key !! Default !! Range / values !! What it does
|-
|-
| <code>port</code> || 14159 || 0 - 65535 || UDP port the server listens on
| <code>port</code> || 14159 || 0 to 65535 || UDP port the server listens on
|-
|-
| <code>slots</code> || 10 || 1 - 250 || Maximum concurrent players; enforced strictly
| <code>slots</code> || 10 || 1 to 250 || Most players online at once, strictly enforced
|-
|-
| <code>password</code> || (blank) || any text || Join password; blank means none
| <code>password</code> || (blank) || any text || Join password; blank means none
Line 22: Line 22:
| <code>pauseWhenEmpty</code> || true || true / false || Pause the world when nobody is online
| <code>pauseWhenEmpty</code> || true || true / false || Pause the world when nobody is online
|-
|-
| <code>strictServerAuthority</code> || false || true / false || Tighter anti-cheat validation; can cause rubber-banding on high ping
| <code>strictServerAuthority</code> || false || true / false || Stricter anti-cheat checks. Can cause rubber-banding on high ping
|-
|-
| <code>logging</code> || true || true / false || Write a log file per server start
| <code>logging</code> || true || true / false || Write a log file per server start
|-
|-
| <code>language</code> || en || language code || Server-side message language
| <code>language</code> || en || language code || Language of the server's messages
|-
|-
| <code>unloadLevelsCooldown</code> || 30 || seconds || How long an area stays loaded after the last player leaves it
| <code>unloadLevelsCooldown</code> || 30 || seconds || How long an area stays loaded after the last player leaves it
Line 45: Line 45:
== World settings are different ==
== World settings are different ==


Difficulty, death penalty, raid frequency, PvP, hunger and the other world rules are baked into a world '''when it is first generated''' and cannot be changed by editing <code>server.cfg</code> afterwards. The accepted difficulty values are <code>CASUAL</code>, <code>ADVENTURE</code>, <code>CLASSIC</code> (the default), <code>HARD</code> and <code>BRUTAL</code>. There is no Easy/Normal/Hard set, and an unrecognized value silently falls back to the default. To change world rules on an existing world, an admin types <code>/difficulty</code>, <code>/deathpenalty</code>, <code>/raids</code> or <code>/settings</code> in the game's chat, then <code>/save</code>.
Difficulty, death penalty, raid frequency, PvP, hunger and the other world rules are set '''when the world is first generated''' and can't be changed by editing <code>server.cfg</code> afterwards. The accepted difficulty values are <code>CASUAL</code>, <code>ADVENTURE</code>, <code>CLASSIC</code> (the default), <code>HARD</code> and <code>BRUTAL</code>. There's no Easy/Normal/Hard set, and a value the game doesn't know falls back to the default without warning. To change world rules on an existing world, an admin types <code>/difficulty</code>, <code>/deathpenalty</code>, <code>/raids</code> or <code>/settings</code> in the game's chat, then <code>/save</code>.


== Admin ==
== Admin ==


There is no admin entry in <code>server.cfg</code>. Launch the server with <code>-owner YourCharacterName</code> and join with exactly that character name to receive owner permissions, which unlock the in-game <code>/permissions</code> command for promoting other players.
There's no admin entry in <code>server.cfg</code>. Launch the server with <code>-owner YourCharacterName</code> and join with exactly that character name to get owner permissions. They unlock the in-game <code>/permissions</code> command for promoting other players.


On a hosted [https://www.survivalservers.com/services/game_servers/necesse/ Necesse dedicated server] from Survival Servers, all of the keys above except port, slots and password are edited from the Command Center's Server Config tool, with the admin name as a simple field. The password is the Lock Password in the settings form, slots come with your plan and we set the port. Every change is applied on the next restart.
On a hosted [https://www.survivalservers.com/services/game_servers/necesse/ Necesse dedicated server] from Survival Servers, you edit every server.cfg key except port, slots and password in Server Config in the Command Center, and the admin name is its own field. The password is the Lock Password in the settings form, slots come with your plan and we set the port. Every change applies on the next restart.

Latest revision as of 09:01, 17 November 2026

Every setting a Necesse dedicated server reads when it starts is in one file: server.cfg, found under %APPDATA%\Necesse\cfg\ on Windows or ~/.config/Necesse/cfg/ on Linux.

Edit the file while the server is stopped. Necesse rewrites server.cfg from its current settings on a clean shutdown, so changes made while the server is running are overwritten without warning.

server.cfg keys

Key Default Range / values What it does
port 14159 0 to 65535 UDP port the server listens on
slots 10 1 to 250 Most players online at once, strictly enforced
password (blank) any text Join password; blank means none
maxClientLatencySeconds 30 seconds How long a player may lag before being dropped
pauseWhenEmpty true true / false Pause the world when nobody is online
strictServerAuthority false true / false Stricter anti-cheat checks. Can cause rubber-banding on high ping
logging true true / false Write a log file per server start
language en language code Language of the server's messages
unloadLevelsCooldown 30 seconds How long an area stays loaded after the last player leaves it
droppedItemsLifeMinutes 0 minutes; 0 = forever How long dropped items survive on the ground
unloadSettlements false true / false Unload player settlements when nobody is nearby
maxSettlementsPerPlayer -1 -1 = unlimited Cap on settlements per player
maxSettlersPerSettlement -1 -1 = unlimited Cap on settlers per settlement
zipSaves true true / false Store world saves compressed
MOTD (blank) any text Message shown to players on join

World settings are different

Difficulty, death penalty, raid frequency, PvP, hunger and the other world rules are set when the world is first generated and can't be changed by editing server.cfg afterwards. The accepted difficulty values are CASUAL, ADVENTURE, CLASSIC (the default), HARD and BRUTAL. There's no Easy/Normal/Hard set, and a value the game doesn't know falls back to the default without warning. To change world rules on an existing world, an admin types /difficulty, /deathpenalty, /raids or /settings in the game's chat, then /save.

Admin

There's no admin entry in server.cfg. Launch the server with -owner YourCharacterName and join with exactly that character name to get owner permissions. They unlock the in-game /permissions command for promoting other players.

On a hosted Necesse dedicated server from Survival Servers, you edit every server.cfg key except port, slots and password in Server Config in the Command Center, and the admin name is its own field. The password is the Lock Password in the settings form, slots come with your plan and we set the port. Every change applies on the next restart.