R1NS3-SkipSleep icon

SkipSleep

Mod that allows players to skip the night when only part of the online users are sleeping

Last updated 8 months ago
Total downloads 7613
Total rating 9 
Categories Mods Server-side Client-side
Dependency string R1NS3-SkipSleep-1.0.5
Dependants 9 other mods depend on this mod

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.601 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.

Preferred version: 5.4.601

README

Skip Sleep

A simple server-side (or client-side) mod that allows players to skip the night (by sleeping) when only a part of the online users are sleeping. Inspired by the Minecraft Morpheus mod.

Configuration

When running the server (or your game) for the first time after having installed this mod, a config file will be generated in <Install directory>\BepInEx\config named SkipSleep.cfg. In this config file, you can change various settings.

Ratio (ratio = 0.5)

This ratio is the amount of players that must be sleeping divided by the total amount of online players in order to skip the night. For example, if your servers has 3 players online and you'd like to skip the night when only 1 player is sleeping, a ratio of 0.33 or lower would work since then (1/3) = 0.3333... > 0.33 would be sleeping.

Make sure the ratio is always greater than 0, since having a ratio of 0 will cause the game to continuously skip days.

Message (showMessage = true)

When turned on, this will display a simple message above everyone's head when at least 1 player is sleeping showing the amount of players currently sleeping. Note: this does not show the selected ratio needed, only the current amount of players sleeping (and a percentage).

How to install

Extract the .dll to your plugins folder located in <Valheim server install directory>\BepInEx\.

Requirements

This mod works both as a server-side only mod or as a client-side mod if you are hosting a server from the client.

Credits

https://github.com/Measurity/ModTemplateValheim - Mod template.

Changelog

  • 1.0.5:
    • Removed server process restrictions (thanks SirFrostingham)
  • 1.0.4:
    • Removed unused code
  • 1.0.3:
    • Fixed UnpatchAll warning
  • 1.0.2:
    • Added toggleable info message that shows how many players are currently sleeping (default on)
  • 1.0.1:
    • Added repo to Thunderstore
  • 1.0.0:
    • Initial release

Planned features

  • A better way to show how many players are currently sleeping
  • A way to "vote" whether to sleep or not since some players might not want to sleep all the time
  • A way to completely skip the "ZZZzzz..." screen (if possible) as to not impact players who aren't in bed currently

Available versions

Please note that the install buttons only work if you have compatible client software installed, such as the Thunderstore Mod Manager. Otherwise use the zip download links instead.

Upload date Version number Downloads Download link  
2021-3-30 1.0.5 4523 Version 1.0.5 Install
2021-3-3 1.0.4 1953 Version 1.0.4 Install
2021-3-3 1.0.3 55 Version 1.0.3 Install
2021-2-24 1.0.2 728 Version 1.0.2 Install
2021-2-24 1.0.1 107 Version 1.0.1 Install
2021-2-22 1.0.0 247 Version 1.0.0 Install