You are viewing a potentially older version of this package. View all versions.
Wubarrk-RuneboundRest-1.1.5 icon

RuneboundRest

Server-authoritative overhaul of Valheim's Rested/Comfort system: config-driven comfort, resting conditions and rested duration, plus a new Well Rested buff for sleeping a full night in your own claimed bed.

Date uploaded 2 weeks ago
Version 1.1.5
Download link Wubarrk-RuneboundRest-1.1.5.zip
Downloads 128
Dependency string Wubarrk-RuneboundRest-1.1.5

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2360 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.

Preferred version: 5.4.2360

README

πŸ›οΈ RuneboundRest

RUNEBOUNDREST VERSION SERVER + CLIENTS

The skald swore he had rested. He had sat by the fire for the length of a song, steam rising from his wet furs, a greydwarf glaring at him from the treeline. The gods disagreed. Tonight the gods have been overruled.

Sit by the fire. Sleep the night through. Wake up better.

RuneboundRest reworks Valheim's Rested and Comfort system end to end: how fast comfort builds, what lets you rest at all, how long the Rested buff lasts and how much it is worth. On top of that it adds a new buff, Well Rested, for actually sleeping through the night in your own claimed bed.

Every gameplay setting is server-synced and admin-lockable. On a multiplayer world the server's config file is the one that matters.


NEW IN 1.1.0

Sleep a full night in your own bed and wake up Well Rested.

You It
Sleep in your own claimed bed until the whole group is asleep and the night skips to morning the moment you wake, you are Well Rested
Carry it into the day bonus health regen, stamina regen and skill XP for its duration
Rest as well its skill XP bonus stacks with the normal Rested bonus

πŸŒ™ A separate buff, not a stronger Rested Β· πŸ”§ Every number is a setting Β· 🚫 Only want the comfort system? EnableWellRested = false turns it off


BEFORE YOU INSTALL

If… Then…
🀝 you play on a server the server and every player need RuneboundRest, on the same version. Update them together: an older version is refused.
πŸ”’ you run the server the server's config decides every gameplay setting; it is pushed over each player's own when they connect.
πŸ“¦ you wonder what else to install nothing. It is one file and bundles its own config-sync library.

I

Rested lasts longer and is worth more.

⏳ Base duration twice vanilla's by default
πŸͺ‘ Per comfort level twice vanilla's by default, so a cosy hall pays off
πŸ“ˆ Skill XP while Rested 3Γ— by default (vanilla is 1.5Γ—)
♾️ Always Rested for servers that want the buff permanently on; the timer never runs down

II

You decide what lets a Viking rest.

Rule
πŸ”₯ Fire required by default; switch it off and a shelter is enough
🏠 Shelter not required by default; switch it on to demand a roof
πŸ’§ Wet blocks resting by default; allow it if you like
πŸ‘Ή Enemies nearby being sensed by enemies blocks resting by default; allow it if you like
⏱️ Time to Rested 4 seconds of resting by default (vanilla is 10)
πŸ“– Read the saga β€” why these are rules, not hard-coded

Vanilla hard-codes what lets you start Resting: a fire, shelter, being dry and not being sensed by enemies. RuneboundRest replaces that logic with rules you can switch one by one.

Other systems that ask the game whether a player is "safe at home" get the same answer the Resting buff uses, so a server that allows resting near enemies is never contradicted by the game's own check.


III

Your furniture counts from farther away, and sitting down pays.

🧭 Comfort radius the game scans 30 m for comfort pieces by default (vanilla is 10 m)
πŸ” Rescan interval every 6 seconds by default (vanilla is 2)
πŸͺ‘ Sitting extra comfort points, and Rested builds faster
πŸ›οΈ Lying in a bed more comfort points still, and Rested builds faster still

Sitting and lying each have their own comfort bonus and their own build-speed multiplier.


THE TOOLBOX

First ten minutes: install on the server and every player β†’ start the server once and stop it β†’ edit the server's config β†’ restart β†’ sit down by a fire.

There are no keys and no commands: everything is a setting.

πŸ› οΈ Set up a dedicated server
  1. Install BepInEx on the server, exactly as on a client.
  2. Put RuneboundRest.dll in the server's BepInEx/plugins/.
  3. Start the server once, then stop it. That writes BepInEx/config/wubarrk.runeboundrest.cfg.
  4. Edit the server's config. Every gameplay setting is server-synced: on connect the server pushes its values over each player's own, so the server's file decides everything except EnableDebugLogging.
  5. Restart.

MULTIPLAYER

In single player On a server Needs RuneboundRest on both ends
your own config is the one used the server's config decides every gameplay setting; LockConfiguration keeps it to admins the server and every player

⚠️ Versions must match. Update the server and its players together; an older version is refused rather than left running mismatched settings.


COMPATIBILITY

Mod
Valheim10Compatibility Not needed. RuneboundRest's config sync works on its own.
Other mods that use ServerSync RuneboundRest carries its own copy, merged and internalized into its DLL, so there is nothing extra to install.
Mods that ask whether a player is safe at home They get the same answer the Resting buff uses.

SETTINGS

BepInEx/config/wubarrk.runeboundrest.cfg, written the first time the game or server runs.

πŸ”’ Server-synced β€” set on the server; on a locked server the host's values win
Section Setting Default What it does
0. Server Sync LockConfiguration true only server admins change the synced settings
1. Core Rested Buff AlwaysRested false permanently Rested; the timer never runs down
1. Core Rested Buff BaseRestedDuration 960 base Rested duration in seconds (vanilla 480)
1. Core Rested Buff DurationPerComfortLevel 120 seconds added per comfort level (vanilla 60)
1. Core Rested Buff SkillXPMultiplier 3.0 skill XP multiplier while Rested (vanilla 1.5)
2. Resting Conditions RequireFireForResting true a nearby fire is needed to start Resting
2. Resting Conditions RequireShelterForResting false shelter is needed to start Resting
2. Resting Conditions AllowRestingWhileWet false being wet no longer blocks Resting
2. Resting Conditions AllowRestingNearEnemies false being sensed by enemies no longer blocks Resting
2. Resting Conditions SecondsToAchieveRested 4 seconds of Resting before the buff is granted (vanilla 10)
3. Comfort Area ComfortSearchRadius 30 metres scanned for comfort pieces (vanilla 10)
3. Comfort Area ComfortUpdateInterval 6 seconds between comfort rescans (vanilla 2)
4. Sitting & Lying SittingComfortBonus 2 extra comfort while sitting
4. Sitting & Lying SleepingComfortBonus 4 extra comfort while lying in a bed
4. Sitting & Lying SittingRestedBuildSpeedMultiplier 2.0 how much faster Rested builds while sitting
4. Sitting & Lying SleepingRestedBuildSpeedMultiplier 4.0 how much faster Rested builds while lying down
6. Well-Rested Buff EnableWellRested true grant Well Rested for a full night in your own claimed bed
6. Well-Rested Buff WellRestedDuration 1200 Well Rested duration in seconds
6. Well-Rested Buff WellRestedHealthRegenBonus 0.25 extra health regen (+25%)
6. Well-Rested Buff WellRestedStaminaRegenBonus 0.25 extra stamina regen (+25%)
6. Well-Rested Buff WellRestedSkillXPBonus 0.5 extra skill XP (+50%), stacking with the Rested bonus
πŸ–₯️ Local to your game β€” yours alone
Section Settings
5. Utility EnableDebugLogging β€” verbose [RuneboundRest Debug] lines in the BepInEx log

CREDITS

Needs: BepInExPack Valheim 5.4.2360. Install with a mod manager, or unzip into BepInEx/plugins, on the server and on every player's game.

🏰 Come play it with us. RuneboundRest is one piece of a bigger table: Wubarrk builds several mods for Valheim, meant to be run together on Wubarrk's modded server. How to join is on the Discord.

Forged by Wubarrk β€” ravenirongames.com. Rest well. Join us on Discord. License: MIT β€” use, modify and redistribute freely, including commercially; keep the copyright notice.

CHANGELOG

Changelog

[1.1.5]

  • Store page only: the README was rewritten to the new layout and is now the same on every store, and the website link now goes to https://ravenirongames.com/.
  • No change to the mod: RuneboundRest.dll is the same file as in 1.1.4.

[1.1.4]

  • Rebuilt for Valheim 1.0.21. Rebuilt against the Valheim 1.0.21 game assemblies (network version 41) on BepInExPack 5.4.2360, and re-verified: static reference check clean against both the client and dedicated-server assemblies, and the mod boots on a real 1.0.21 dedicated server. Player.UpdateBaseValue changed (the comfort record is now read with GetStat(MaxComfort, DifficultyRequirement.Any)), but the 2f scan-interval constant the transpiler anchors on is still the first ldc.r4 2 in the method, and SE_Rested, SE_Cozy, SE_Stats and ObjectDB are byte-for-byte unchanged. No source change.
  • Website link moved to https://www.rossgilsonlabs.dev.
  • The BepInExPack dependency is now denikson-BepInExPack_Valheim-5.4.2360.
  • No gameplay change. MinimumRequiredVersion follows the mod version to 1.1.4, as it always has, so 1.1.3 clients are refused rather than silently running mismatched settings.

[1.1.3]

  • Rebuilt for Valheim 1.0.16. Rebuilt against the 1.0.16 game assemblies (client build 25527674 / dedicated server build 25527701, network version 40) on BepInEx 5.4.2350. No source change was needed: both transpilers still find their anchors - GetNearbyComfortPieces still loads 10f for the comfort radius and UpdateBaseValue still compares the scan timer against 2f - and every Harmony target and SE_Rested / comfort member the patches read is unchanged.
  • No gameplay change. Verified on the real 1.0.16 dedicated server: static reference check against both the 1.0.16 client and dedicated-server assemblies is clean (1089 references, 26 Harmony targets, same counts as 1.1.2), and the comfort-update-interval transpiler still patches successfully with no Harmony errors.

[1.1.2]

  • Fixed: config sync was broken on Valheim 1.0.x without a compatibility patcher. 1.1.1 shipped with a prebuilt ServerSync.dll (built against a pre-1.0 game) merged into the plugin. Valheim 1.0 turned ZRoutedRpc.Everybody from a static field into a constant, and that old build still loads it as a field - which the game's Mono runtime refuses to compile (MissingFieldException: ... Using static instructions with literal field). The server booted fine and clients connected fine, but the first time the server pushed a synced value that differed from a client's own config file, the client's config-apply handler died mid-package: the remaining values stayed at the client's local settings and the admin lock never engaged. The mod only behaved correctly if the Valheim10Compatibility patcher happened to be installed (its ZRoutedRpcEverybodyStatic bridge papers over exactly this). RuneboundRest now compiles ServerSync from the shared source against the current game assemblies, like every other Wubarrk mod, so it binds on 1.0.7 / 1.0.12 on its own - no patcher, no bridge.
  • No gameplay change. MinimumRequiredVersion follows the mod version to 1.1.2, so 1.1.1 clients (which cannot sync correctly anyway) are refused rather than silently running mismatched settings.
  • Verified on the real 1.0.12 dedicated server (build 25253791, network version 40) with BepInEx 5.4.2350; static reference check against both the 1.0.12 client and dedicated-server assemblies is clean, including the new constant-field check that would have caught 1.1.1.

[1.1.1]

  • Valheim 1.0.7 compatibility. Rebuilt for 1.0.7 (client build 25185596 / dedicated server build 25185644, network version 39) on BepInEx 5.4.2350. No source change was needed: every Harmony target (Player.UpdateBaseValue / UpdateEnvStatusEffects / SetSleeping, SE_Rested.CalculateComfortLevel(Player) / GetNearbyComfortPieces / Setup / UpdateStatusEffect, SE_Cozy.Setup / UpdateStatusEffect, SE_Stats.Setup, ObjectDB.Awake / CopyOtherDB) and every SE_Rested / comfort member the patches read was checked against the 1.0.7 decompile. Both transpilers still find their anchors - GetNearbyComfortPieces still loads 10f for the comfort radius and UpdateBaseValue still compares the scan timer against 2f - and SE_Rested.CalculateComfortLevel gained a second overload (bool inShelter, Vector3 position) on 1.0 that the existing typeof(Player) pin already keeps unambiguous.
  • Verified the ServerSync merge on a Linux build: the ILRepack step runs, the merged DLL is the one staged into HexiumDist/plugins, and it resolves cleanly against both the 1.0.7 client and dedicated-server assemblies.
  • No behaviour change. MinimumRequiredVersion follows the mod version to 1.1.1, as it always has.
  • The Thunderstore dependency now names the 1.0 BepInEx pack (denikson-BepInExPack_Valheim-5.4.2350).

[1.1.0]

  • New: Well Rested β€” a separate buff from the comfort-driven Rested, granted for sleeping through a server-confirmed full night in your own claimed bed (health regen, stamina regen and a stacking skill XP bonus, all configurable, toggleable via EnableWellRested).
  • Fixed: the skill XP multiplier while Rested was miscalculated as roughly 201x instead of the intended 3x. The underlying field is additive to a 1.0 baseline multiplier, not a percentage scaled by 100 - a leftover from an earlier, incorrect assumption about the value's units. Every world running the default SkillXPMultiplier was getting a game-breaking XP bonus while Rested; it now applies correctly.
  • Fixed: Player.IsSafeInHome() could disagree with whether you actually had the Resting buff. The mod overrides vanilla's resting conditions, but the flag other systems read to ask "is this player safe at home" was still being computed from vanilla's original, un-overridden logic - so a server running AllowRestingNearEnemies could grant Resting while the game still considered the player not safe at home. It's now derived from the same config-driven decision the Resting buff itself uses.
  • Fixed: ServerSync.dll was not actually being bundled into the shipped plugin DLL. The merge step existed but pointed at a library search path that didn't exist, so it silently failed - meaning the mod as previously built would refuse to load on any machine that didn't happen to already have ServerSync.dll sitting in BepInEx/plugins from another mod. This is the library the server-authoritative config locking depends on, so it's now verified to be correctly merged and internalized into the single shipped DLL.
  • Hardened the comfort-scan-interval patch to match the same safety net the comfort-radius patch already had (stops after the first match, logs an error if the expected value ever isn't found), so a future Valheim update can't cause it to silently corrupt an unrelated value.
  • Chore: reference assemblies now come from the shared libs-Tools folder instead of a per-project copy, removed an unused Jotunn dependency and a leftover scratch file.

[1.0.0]

  • Initial build: config-driven Rested duration/XP, resting conditions, comfort radius/update interval, and sitting/lying bonuses, all server-synced and admin-lockable.