Dostlar STUDIO / Mods / Sleep Hunter

Sleep Hunter

Sleep window · Realism

Early developmentFS25_SleepHunter

In multiplayer the clock belongs to everyone: one player sleeping at noon drags the player working the field into the night. Sleep Hunter confines sleeping to a configured window. Outside it the sleep panel does not open at all and a warning is shown instead. Whatever hour is picked in the panel, sleep is cut at the latest wake time and the player is told what time they woke up. Two layers guard the window, the bed interaction itself and the sleep manager, so direct calls from other mods or triggers go through the same check.

Status: Early development. The mod is being tested on our own server; the feature list describes the goal and the released version may differ.

Features

What it does

  • Earliest sleep time and latest wake time are set as HH:MM; 20:00 to 08:00 by default.
  • Outside the window the sleep panel does not open and the player gets an on-screen warning.
  • Whatever hour is picked in the panel, the wake limit ends the sleep and reports the wake-up time.
  • Two layers: the bed interaction and the sleep manager. Direct calls go through the same check.
  • The window may cross midnight; setting both hours to the same value disables the limit.
  • A malformed time value does not break the current setting; a warning goes to the log.
  • The debug switch writes the sleep system structure to log.txt and adds the shDump console command.

Setup

How to use it

  1. Put the zip into the mods folder of the server and of the connecting players.
  2. Set the hours in modSettings/FS25_SleepHunter.xml. The file is created with defaults on first run.
  3. No key binding needed. The warning appears when you walk up to the bed.