Valheim
You are viewing a potentially older version of this package. View Latest Version
Install with App

Details

Date Uploaded
Downloads
300
Size
17KB
ADDatHost Valheim hosting
30% off

Generally Lit Server Mod

Four numbers. Nothing else. No content, no new items, no UI, no external calls.

Setting Default What it does
Day length in seconds 840 How long daylight lasts
Night length in seconds 360 How long night lasts
Stack size multiplier 1 Multiplies max stack of things that already stack
Item weight multiplier 1 Multiplies the weight of every item

At the defaults it changes nothing: 840/360 reproduces vanilla exactly.

Generally Lit server runs: 7200s day, 300s night, 5x stacks, 0.8x weight.

Independent day and night

Vanilla keeps one cycle length and splits it 70/30 in EnvMan.RescaleDayFraction (raw 0.15-0.85 of the cycle is daylight). That split is hard-coded, which is why mods exposing only "day length" can never give a long day and a short night.

This rebuilds the same curve from your two values, so a two hour day with a five minute night works.

Server-authoritative

The server sends its values to every client on join. Clients use them while connected, are told in the log when they differ, and get their own back on leaving. Editing your config while on a server does nothing and says so, rather than looking like a broken mod.

Clients do not strictly need it: stack size and weight come from the server's item database and the cycle runs off server time. Installing it everywhere keeps tooltips and lighting consistent.

Config changes need no restart

The config file is watched. Edit it and the values apply within a second and are pushed to everyone connected. Nobody gets disconnected for a number change.

One warning worth reading

Lowering the stack multiplier destroys items. Anything stacked above the new maximum is cut down the next time the world loads - not when you change the setting. On a dedicated server that is the next restart, often minutes after the last player leaves, so it looks fine for hours and then is not.

The mod remembers the highest multiplier it has run with and prints a loud warning when you lower it. Back up the world first, or spread over-sized stacks out before changing it. Raising is always safe.

Install

r2modman: Settings -> Import local mod -> pick the zip. Manual: drop GenerallyLitServerMod.dll into BepInEx/plugins/.

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.