Confirm with your password

ValheimRaftBedFix Updated

Unofficial update of ValheimRaftBedFix for Valheim 1.0.17 / ValheimRAFT 5.x. Reconnect onto a moved ship and respawn aboard it. Original mod by Viking Aquatic Longship Hazard Emergency Intervention Mission.

Client & Server

Stars
0
Downloads
19
Version
0.1.7
Updated
Author
CrownClown
Virus scan
✓ Scan successful
Runs on
Client & Server

Description

ValheimRaftBedFix (Updated)

Unofficial compatibility update of ValheimRaftBedFix by Viking Aquatic Longship Hazard Emergency Intervention Mission, who is not involved in this upload. The original has not been updated since the Valheim 1.0 release and crashes on current game versions. This package exists so that friends can install a working build from a shared mod profile.

If you are the original author and want this taken down, message the team on Hexium (Discord is linked) and it will be removed.

What it does

Valheim saves your logout and respawn positions as world coordinates. On a ship that keeps moving while you are offline, that leaves you in the ocean. This mod stores your position relative to the ship instead:

  • Reconnect restore – log out (or crash out) while aboard a ValheimRAFT vessel or a vanilla ship, and on login you are held above the ship's last known position until it loads, then placed back on deck where you were standing. Works even if the ship has sailed off since.
  • Respawn aboard – die on the ship and you respawn back onto it rather than at the bed's old world coordinates.
  • Server ship registry – when installed on the dedicated server as well, the server tracks where each ship is so clients can find it even if nobody has that area loaded.
  • Falls back to your claimed mobile bed, then to world origin, if the ship can't be found.

What changed in this update (0.1.6 – 0.1.7)

Tested on Valheim 1.0.17 with ValheimRAFT 5.0.9 (BepInEx 5.4.23.5).

  • Fixed MissingMethodException on MessageHud.ShowMessage – the game added a parameter; the mod crashed every frame during a restore and left players hanging in the air.
  • Fixed NullReferenceException in the ship registry while connecting to a server.
  • Fixed the restore triggering constantly while standing on a ship (it re-read its own "on ship" record every frame and kept yanking the player to the holding position).
  • Leaving a ship now clears the stored record, so logging out on land gives a normal login.
  • The holding position no longer goes through the game's distant-teleport sequence, which blocked the final placement on deck.
  • Capped the "wait for the ship to settle" phase at 10 s so a bobbing or beached ship can't stall the restore indefinitely.
  • Fall-height tracking is reset on placement, so dropping from the holding position never counts as fall damage.
  • Temporary god mode during restore now actually finds the field it looks for.
  • (0.1.7) Vehicle detection rewritten: the mod now asks ValheimRAFT which vehicle you are aboard instead of guessing from nearby objects. 0.1.6 treated trees, rocks and the player themself as "ships", so logging out on land still restored you onto the boat. Update from 0.1.6.
  • (0.1.7) Dying with your spawn bed on a ship now respawns you at that bed wherever the ship is, and re-points the vanilla spawn point at it. A bed on land respawns normally.

ValheimRAFT's DynamicLocations

ValheimRAFT 5.x bundles DynamicLocations, which is meant to do the same job but (as RAFT's own README notes) does not reliably update beds on moved ships, and its login path does not run on current Valheim. If both are active they fight over where you spawn. Disable its two features in BepInEx/config/zolantris.DynamicLocations.cfg on the server (they are admin-only synced settings, so the server's values override every client's):

enableDynamicSpawnPoints = false
enableDynamicLogoutPoints = false

In single player, change the same lines in your own config. The mod logs a warning at startup if they are still on.

No gameplay features were added or removed beyond what was needed to make the original work.

Install

Install with Gale (or any Thunderstore-compatible manager). Install it on the dedicated server too if you run one. Remove the original ValheimRaftBedFix package if it is in your profile – both use the same plugin ID, so BepInEx will load only the newer one, but there is no reason to keep both.

ValheimRAFT is an optional dependency and is not declared in the manifest because it is not published on Hexium. Install it separately from Thunderstore.

Configuration

BepInEx/config/DarkestReponse.valheimraftbedfix.cfg

Setting Default Meaning
DebugMode false Verbose logging of every restore step
MaxRestoreRetries 120 Attempts to find the ship before falling back
RetryDelaySeconds 0.5 Delay between attempts (120 × 0.5 s = 60 s window)
EnableCenterMessages true On-screen status messages during restore
HoldingHeight 10000 Height the player is held at while the ship loads
PostRestoreTrackingBlockSeconds 8 Grace period after restore before tracking resumes
StableFramesRequired 3 Consecutive stable checks wanted before placement (capped at 10 s)
ServerRegistryScanInterval 5 Server: seconds between ship registry scans

Credits

All design and original code: Viking Aquatic Longship Hazard Emergency Intervention Mission. This package only contains the compatibility fixes listed above.

Changelog

0.1.7 Latest
  • Rewrote vehicle detection. The old detector scored any networked object within 8 m as a "ship" (trees, rocks, the player themself), which caused logouts on land to restore onto the ship, bogus "Restoring position on boat" messages after dying on land, and a new ship GUID being generated every second. The mod now asks ValheimRAFT directly which vehicle the player is aboard (and vanilla Ship for karves/longships). Nothing else is ever treated as a ship.
  • Death now respawns at your spawn bed's current position when that bed is on a ship, waiting for the ship to load first. Vanilla wipes the spawn point when the bed has moved; the mod re-points it at the bed afterwards. A bed on land respawns normally.
  • Only a bed claim (setting spawn) is tracked now; sleeping or standing near some other bed no longer silently changes the tracked bed.
  • Warns at startup when ValheimRAFT's bundled DynamicLocations has its dynamic spawn/logout points enabled, since both mods would then move the player at spawn. See README.
  • If the ship's last known zone is loaded and the ship isn't there (destroyed, or a stale record), the restore gives up after ~10 s instead of holding the player for the full 60 s.
  • The fallback destination is now where the game spawned you (your bed, the start temple, or your logout point if it is on land) instead of world origin.
  • Fixed the infinite loading screen when dying far from a ship your spawn bed is on. Vanilla waits for every object in the bed's zone to exist, but ValheimRAFT only creates vehicle pieces once a player is nearby, so the wait never ended. The game now spawns you at the start location and the mod carries you to the bed once the ship has loaded.
0.1.6

Compatibility with Valheim 1.0.17 and ValheimRAFT 5.0.9.

  • Fixed crash on MessageHud.ShowMessage (new game parameter) that broke every restore.
  • Fixed NullReferenceException reading the world ID while connecting.
  • Restore now runs once per login/respawn instead of every frame while on a ship.
  • Leaving a ship clears the stored logout record.
  • Holding position set directly instead of via distant teleport; final placement no longer blocked.
  • "Wait for ship to settle" capped at 10 seconds.
  • Fall-height reset on placement (no fall damage from the holding position).
  • Temporary god mode during restore looks up the field on Player, where the game moved it.
0.1.5

Last upstream release.

Full version history & older downloads →

Manual installation instructions
1

Install BepInExPack Valheim

BepInExPack Valheim is required to run mods in Valheim.

Download BepInExPack Valheim 5.4.2351 · View mod page

Check out the mod page for detailed installation instructions.

2

Install ValheimRaftBedFix Updated

This mod must be installed on both the client and the server.

Download ValheimRaftBedFix Updated 0.1.7

Extract the ZIP and place the file(s) into the BepInEx/plugins/ folder inside your Valheim game folder.