Skip to main content

ServerSettings

A class in Root.Township, Alta.Utilities.

The game's own server settings, loaded from ServerConfiguration.json. Server: read them through ServerHandler.Current.ServerConfig.Settings. Marked obsolete in favour of GlobalConstants, but still what the game reads.

Constructors​

MemberWhat it is
ServerSettings()Creates a ServerSettings with default values.

Properties​

MemberWhat it is
bool AvoidSpawnCollectedPages { get; set; }Default true. Nothing in the server build reads it.
bool CanOnlyBuySkillsAfterPracticing { get; set; }Default true. When false, every skill slot counts as practised, so it can be bought straight away.
float ChiselingXPX { get; set; }Experience multiplier for the chiseling path, applied before XPX.
float CommunityStorageMultiplier { get; set; }Scales how many interactions a charge allows in restricted (community) storage. Default 1.
float CookingXPX { get; set; }Experience multiplier for the cooking path, applied before XPX.
float DamageX { get; set; }Global multiplier on impact and area-of-effect damage. Default 1.
float DecayMultiplier { get; set; }Speeds up decay: decay times are divided by it. Default 1.
int DownedStateDuration { get; set; }Seconds a downed player has to be revived (0 to 120). Default 60.
bool DropAllOnDeath { get; set; }If true, players drop everything they carry when they die (unless revived).
int EmptyServerShutdownTimeInSeconds { get; set; }Dev setting, default 300. Nothing in the server build reads it.
float FixedDaytime { get; set; }If 0 or more, freezes the time of day at this value. Default -1 (time runs).
float ForgingXPX { get; set; }Experience multiplier for the forging path, applied before XPX.
int FPSForMaximumFixedFrameCount { get; set; }Server frame rate at which physics runs at MaximumPhysicsFixedFramesPerSecond. Default 20.
int FPSForMinimumFixedFrameCount { get; set; }Server frame rate at which physics drops to MinimumPhysicsFixedFramesPerSecond. Default 5.
bool HandoverRequireConfirmation { get; set; }Default true. Nothing in the server build reads it.
bool HasAFKTimer { get; set; }Turns the AFK timer on or off. Default true.
bool HasInGameSettings { get; set; }Whether players get the in-game server settings board. Default false; console commands can switch it.
bool HasRunRepairBoxFix { get; set; }Saved flag for a one-off repair box fix. Nothing in the server build reads it.
float HealthRegenMultiplier { get; set; }Scales health regained from being well fed. Default 1.
bool HungerDealsDamage { get; set; }If true, players starve (lose health) when their fullness runs low. Default true.
float HungerTick { get; set; }Hunger lost on every stat update. Default 0.0005.
float ImpactInvincibilityTime { get; set; }Seconds a player ignores impacts after their controller spawns on the server or they use a cave teleporter. Default 12.
AvailablePlayerSaveData.Available InitialPlayerInventory { get; set; }Which PlayerSaveData asset new players start with, matched by name. None gives nothing.
bool IsAdvancingTimeWhenOffline { get; set; }If true, the world clock catches up on the time the server was down when it loads. Default true.
bool IsAutoSaving { get; set; }Dev setting: whether the server saves on a timer. Read at start-up. Default true.
bool IsCustomizationEnabled { get; set; }Dev setting: whether new players are sent to character customisation on first join. Default true.
bool IsPVPEnabled { get; set; }If false, players do no damage to each other. Default false.
bool IsResetingHungerOnDeath { get; set; }If true, a player's hunger stat is reset when they die.
bool IsSaving { get; set; }Whether the server writes save files at all. Default true.
bool IsUpdatingPhysicsFixedFrameCount { get; set; }Dev setting: whether the physics rate follows the server frame rate. Default true.
int MaximumPhysicsFixedFramesPerSecond { get; set; }Highest physics rate (fixed updates per second). Default 45.
float MeleeXPX { get; set; }Experience multiplier for the melee path, applied before XPX.
int MinimumPhysicsFixedFramesPerSecond { get; set; }Lowest physics rate when the server is struggling. Default 15.
float MiningXPX { get; set; }Experience multiplier for the mining path, applied before XPX.
float MinutesBetweenAutoSaving { get; set; }Dev setting: autosave interval in minutes (1 to 60). Read at start-up. Default 5.
float PlayerDamageTakenMultiplier { get; set; }Scales all health damage players take. Default 1.
PlayerLandmarkMode PlayerLandmarkMode { get; set; }Which players show on the map: ShowAll, FriendsOnly or Hidden.
int PlayerLimit { get; set; }Maximum players. -1 means no limit; simple servers cap it at 8.
PlayerSmoothingLevel PlayerSmoothingLevel { get; set; }Movement smoothing level that PlayerSmoothManager syncs to clients.
float PVPCrippleMultiplier { get; set; }Scales cripple damage between players when PvP is on. Default 0.3.
float PVPMultiplier { get; set; }Scales health damage between players when PvP is on. Default 0.1.
float RangedXPX { get; set; }Experience multiplier for the ranged path, applied before XPX.
float RespawnTimeSeconds { get; set; }Default 4. Nothing in the server build reads it.
float SpawningRateMultiplier { get; set; }Population spawn rate multiplier, exposed as NetworkScene.SpawnRateMultiplier. Default 1.
float TimeSpeedMultiplier { get; set; }Speed of the world clock, set on the timeline at start-up. Default 1.
float UnspentExperienceLostOnDeath { get; set; }Fraction of unspent experience each path loses on death. 0 turns it off.
bool WipesWhenEmpty { get; set; }Dev setting. Nothing in the server build reads it.
float WoodcuttingXPX { get; set; }Experience multiplier for the woodcutting path, applied before XPX.
float XPX { get; set; }Global experience multiplier, applied after the per-path one. Default 1.

Methods​

1 private and internal method
MemberWhat it is
private object System.ICloneable.Clone()Returns a shallow copy of the settings.

Used in​

Members of other types that take, return or hold a ServerSettings: