Blockheim-LetMeSleep icon

LetMeSleep

Skip the night with only some players in bed.

Last updated 4 months ago
Total downloads 2606
Total rating 3 
Categories Mistlands Update Mods Utility Server-side
Dependency string Blockheim-LetMeSleep-1.0.3
Dependants 16 other mods depend on this mod

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2102 icon
denikson-BepInExPack_Valheim

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

Preferred version: 5.4.2102

README

Let Me Sleep!

A simple server-side mod that allows players to skip to dawn when only some players are in bed.

How to install

  • Use the Thunderstore Mod Manager.
  • Only the server needs this mod installed.

Configuration

When running this mod for the first time, blockchaaain.LetMeSleep.cfg will be generated within <Install directory>\BepInEx\config

Ratio (ratio = 0.5)

This ratio is the fraction of online players that must "vote" to sleep. Configurable between 1% (0.01) and 100% (1.0).

Message (showMessage = true)

When enabled, the server will "shout" to all players whenever anyone "votes" to sleep. The message displays the current number of players in bed.

Requirements

Credits

SkipSleep - Original code for counting the number of players in bed.
JotunnModStub - Mod template.

LetMeSleep attempts to improve upon SkipSleep

  • Compatible with Mistlands!
    • The RPC_ChatMessage parameters have changed, causing exceptions in older mods.
    • The parameters changed a second time with 0.214!
  • Server message is sent to all players only once when someone gets in bed.
    • Does not continue to send messages each time Valheim checks sleep conditions.
  • Server message is not duplicated for each player online.
  • Source includes everything needed to build the project.
  • Intends to make the code more streamlined and readable at the same time.

Thanks

Ancastasia - Hosting modded Valheim.
radicalpi - Testing the mod.

Changelog

  • 1.0.3:
    • Catch exceptions while sending messages.
  • 1.0.2:
    • Modify for Valheim 0.214
  • 1.0.1:
    • Limit ratio value between 0.01 and 1.0.
    • Upload to Thunderstore.
  • 1.0.0:
    • Initial release

Source

https://github.com/blockchaaain/LetMeSleep

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  
2023-5-5 1.0.3 1247 Version 1.0.3 Install
2023-4-2 1.0.2 612 Version 1.0.2 Install
2023-2-7 1.0.1 747 Version 1.0.1 Install