GenerallyLitServerMod
Day length, night length, stack size and item weight. Independent day/night, server-authoritative, no restart to change. Nothing else.
模組介紹 作者原文
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.
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: