You are viewing a potentially older version of this package. View all versions.
rewbensandwich-ValheimRAFT_Rewben-5.1.106 icon

ValheimRAFT Rewben

Rewben ValheimRAFT fork: native portal synchronization repairs and RaftRebalance behavior.

Date uploaded a month ago
Version 5.1.106
Download link rewbensandwich-ValheimRAFT_Rewben-5.1.106.zip
Downloads 116
Dependency string rewbensandwich-ValheimRAFT_Rewben-5.1.106

This mod requires the following mods to function

ValheimModding-Jotunn-2.30.2 icon
ValheimModding-Jotunn

Jötunn (/ˈjɔːtʊn/, 'giant'), the Valheim Library was created with the goal of making the lives of mod developers easier. It enables you to create mods for Valheim using an abstracted API so you can focus on the actual content creation.

Preferred version: 2.30.2

README

ValheimRAFT Rewben

ValheimRAFT with native ship-portal synchronization fixes and integrated RaftRebalance behavior. Based on upstream ValheimRAFT 5.1.1.

Thunderstore package and runtime fork: 5.1.106. Audits identify saved portal copies at the same ship-relative position and print a short confirmed-cleanup command. Cleanup runs only on explicit admin request, in small networked batches. Update both the server and every client to 5.1.106 before connecting.

Installation

  1. Close Valheim and back up your profile and world before replacing mods.
  2. Remove upstream ValheimRAFT and the separate RaftRebalance plugin. When moving from a local ZIP installation to Thunderstore, remove that local fork copy too.
  3. Install rewbensandwich-ValheimRAFT_Rewben through Gale or another compatible mod manager. Keep Jotunn installed. Manual installations place the contents of this ZIP's plugins directory in a dedicated BepInEx plugins subdirectory.
  4. All players and the server must use the same runtime fork version. Keep the existing RAFT configuration and legacy vhrf.RaftRebalance.cfg for migration.

The first fork startup migrates settings once, preserving unrelated settings. Rebalance controls are under [Rebalance] and [Rebalance Recipes] in RAFT's configuration. [Rebalance Migration] Schema = 1 records completion. Remove RaftRebalance's DLL; keeping its old configuration file is safe after migration.

Changes

  • Ship portals keep their network IDs while their position and rotation update. Registry membership and tracking are deduplicated; duplicate live instances of the same record are guarded. TargetPortal-managed portals bypass vanilla pairing.
  • Native rebalance policy caps hull clearance at 1.5 meters by default, disables flight/ballast under the policy, restricts administrative commands, and allows ordinary creative editing with at most 5 meters of lift.
  • Rams target creatures. Cannon harvesting restrictions preserve damage to creatures, spawners and player buildings. Hauling uses 10 stamina per meter by default and stops at exhaustion.
  • Supplied recipe overrides and vhrf_paid_v1 refund markers are supported.

Portal auditing and repair

Server-admin console commands:

vehicle portals audit [ship-id]
vehicle portals repair <audit-id>
vehicle portals repair <audit-id> --dedupe --confirm
vehicle portals repair <audit-id> --remove <record-id>,<record-id> --confirm

An audit prints its total and at most ten saved portal records. The final line repeats AUDIT ID: A1B2C3 with the total portal count. IDs are six characters, accept uppercase or lowercase, and expire after five minutes. They belong to the requesting admin's current connection; reconnecting requires a new audit. Complete reports are saved on the server under BepInEx/config/PortalAudits/<id>.txt. The client prints only a small loaded-instance counter, not another full report. Periodic diagnostics also print counters without formatting all record details.

Reports include saved records, live instances, positions, ship IDs and registry anomalies, plus duplicateGroups and duplicateRecords. The full file records every saved ID, its unrounded local position, and the ID selected to survive.

Audit is read-only. To remove its detected extra saved records, run the printed repair <id> --dedupe --confirm command. It matches the same ship, portal prefab, coordinate frame and local 3D position within 1 mm. Missing/invalid local positions are skipped. It keeps one named portal where available, then chooses a stable ID. World-position rounding and ship-center coordinates are not used for selection.

Cleanup yields between batches of at most 32 and waits for Valheim to acknowledge deletions. Keep the admin connected until CLEANUP <id> COMPLETE appears. A changed record, moved keeper, lost admin session or world change stops further work; run a fresh audit before continuing. No automatic position-based deletion runs during normal play. Basic repair without deletion flags still preserves saved records. Repairs provide no resource refunds. TargetPortal's temporary pins are cleared after repair; close and reopen the portal map to refresh it.

Status and source

Runtime 5.1.102 previously completed dedicated-server startup and configuration migration. Runtime 5.1.104 completed dedicated-server startup. Runtime 5.1.106 passes headless regression checks, including a 16,248-record confirmed cleanup with asynchronous deletion acknowledgements. Dedicated-server startup and multiplayer validation of 5.1.106 remain pending. Tests use inspected game contracts and do not simulate Unity networking or establish that all reported disconnects are resolved.

Source, maintenance, full snapshot rollback and upstream update instructions: Rewben/ValheimMods.

Licensing and attribution

ValheimRAFT/ValheimMods is by zolantris and contributors, retaining earlier ValheimRAFT contributions by Sarcen and others. This fork retains GPL-3.0 licensing and attribution. See LICENSE. RaftRebalance 1.2.0 (vhrf) contributed the balance policy, recipes, migration keys and paid-cost compatibility requirements. ServerSync v1.20 is bundled under its included license; only its unsigned PE debug filename has been sanitized. See ServerSync.PROVENANCE.md.

The archive contains runtime mod assemblies, mod assets and public documentation. It does not include player saves, profile backups, server configs, logs, private deployment scripts, credentials, game reference assemblies or debug-symbol files.

CHANGELOG

Changelog

Package and runtime 5.1.108

  • Open portal audit and every repair form to all connected players, including non-admin clients and local hosted players. No admin or devcommands required. Other administrative vehicle commands and interval settings retain their locks.
  • Serialize manual and automatic cleanup with the same server job lock. Requests during cleanup return progress instead of creating a competing or queued job.
  • Enforce global five-second audit and repair cooldowns independently, so audit can be followed immediately by repair. Revalidate snapshots only after reserving the repair slot; extend the repair cooldown through five seconds after completion.
  • Keep audit ownership/expiry and explicit deletion confirmation. Retain at most one active audit per player connection; new audits replace that player's token. Cooldown/busy rejections preserve tokens. Stale audits require a fresh scan.
  • Deliver progress/completion to non-admin requesters. Disconnects stop further batches for manual jobs. Unknown/disconnected RPC senders cannot request work.
  • Add regression tests for simultaneous players, jobs lasting beyond the cooldown, automatic/manual contention, public client/host/explicit-ID access, requester ownership, disconnects and audit cooldowns. Server and clients need 5.1.108.

Package and runtime 5.1.107

  • Add server-side automatic ship-portal cleanup, enabled every ten minutes by default. Configure [Portal Maintenance] CleanupIntervalMinutes from 1 to 1440; 0 disables it. No admin needs to be connected. First pass waits up to two minutes after world load or interval changes; world saves are unaffected.
  • Reuse the manual 1 mm ship/prefab/coordinate-frame duplicate selection and batched, acknowledged network deletion. Preserve keepers, recheck each batch, skip invalid positions, and serialize automatic/manual cleanup jobs.
  • Write exact selections before deletion and retain the latest two automatic reports. Log results and retry failures at the next interval. Disable mid-job to stop new batches. Repair registries/live copies and refresh clients.
  • Keep manual audit/repair commands and their admin permissions. An automatic pass can invalidate a prior manual audit; request a new audit when that happens.
  • Add production-code regression coverage for scheduling, repeated passes, no-admin operation, client exclusion, config changes, cancellation, stale audits, report failures/rotation and preservation of distinct portals.
  • Build against Valheim 1.0.21. Server and all clients must update to 5.1.107. Live dedicated-server and multiplayer acceptance remain pending.

Package and runtime 5.1.106

  • Rebuild TargetPortal's cached portal set after explicit cleanup, including dead pooled ZDOs whose network IDs and hash codes changed. Clear temporary map pins after rebuilding so the deleted records cannot recreate them before the next TargetPortal refresh.
  • Match the game record's mutable-ID equality/hash behavior in regression doubles and verify stale pooled records are removed while the surviving portal remains.
  • Includes the confirmed position cleanup introduced in 5.1.105. Server and all clients must use 5.1.106. No saved-record cleanup runs during installation.

Package and runtime 5.1.105

  • Audit position-based saved-portal duplicates using ship, prefab, coordinate frame and unrounded local 3D position with a 1 mm tolerance. Keep one portal per group; missing or invalid local positions are excluded from cleanup.
  • Print duplicate counts and the exact short-ID --dedupe --confirm command. Audit stays read-only; complete keep/remove selections remain in the report.
  • Delete only after explicit admin confirmation, in batches of at most 32 with network deletion acknowledgements. Stop on changed records, keepers, sessions or worlds. Append repair selections/results to the audit file without refunds.
  • Rebuild portal registries in one pass and detach deletion batches efficiently. Replace the large repair-ID broadcast with a compact registry refresh signal.
  • Clear TargetPortal's temporary map pins and prune stale cached records after repair. Unrelated saved map pins are unaffected.
  • Add production-code tests for large cleanup, position boundaries, invalid coordinates, different ships/types, confirmation, cancellation and map refresh.
  • Server and clients must all update to runtime 5.1.105.

Package and runtime 5.1.104

  • Limit the server audit preview to ten portal records and show the total count and audit ID prominently at both the start and end of the response.
  • Replace the client's unbounded full-record dump with a small loaded-instance counter. Preserve complete server reports in PortalAudits/<id>.txt.
  • Use six-character, case-insensitive audit IDs with collision checks against active audits and saved report filenames. Keep admin/session ownership and five-minute expiry checks.
  • Periodic portal diagnostics no longer format a full per-record report only to discard it and print the first line.
  • Add regression coverage using the production audit commands with 16,248 saved records. Existing saved portals and deletion rules remain unchanged.
  • Server and clients must all update to runtime 5.1.104.

Package 5.1.103 / runtime 5.1.102

  • Put runtime DLLs and their Assets hierarchy under an explicit plugins/ folder so Gale/r2modman preserve sail textures and translations.
  • Rebuild with virtual source paths and without debug symbols.
  • Remove the bundled ServerSync binary's original machine-specific CodeView path; executable code, assembly identity and public attribution are retained.
  • Ship public installation documentation instead of developer build/deployment notes.
  • Validate allowed files, privacy patterns, checksums and asset placement before accepting the final ZIP. No changes to gameplay, saved identifiers or runtime network version are included in this packaging release.

Runtime 5.1.102

  • Fix the deployment check's false alarm on the container's informational log-filter declaration and return startup evidence over the deployment connection.

Runtime 5.1.101

  • Initial fork integrating portal synchronization corrections, TargetPortal pairing compatibility, admin portal tools and native RaftRebalance policy/migration/refunds.