You are viewing a potentially older version of this package. View all versions.
Phoenixf-InnangardServerLagFix-1.0.0 icon

InnangardServerLagFix

Multiplayer patches aimed at Innangard 0.1.9 (improves fps / eliminate network delay / desync)

Date uploaded 2 days ago
Version 1.0.0
Download link Phoenixf-InnangardServerLagFix-1.0.0.zip
Downloads 6
Dependency string Phoenixf-InnangardServerLagFix-1.0.0

This mod requires the following mods to function

Yololo-Innangard-0.1.9 icon
Yololo-Innangard

Build a living settlement: recruit villagers, give each a craft, stake out fields, and join your villages with roads your own people help you build.

Preferred version: 0.1.9

README

Install on both Server and Client, with Innangard- These are patches/safeties I believe Innangard should have by default

CURRENT BEHAVIOR

----------------

1. Station reservations no longer steal station ZDO ownerships merely because a settler is

planning, walking to, waiting for, renewing, or releasing a job reservation. This is not needed for the most part and is what caused stations to de-sync.

2. StationClaim.Take is deduplicated when the same valid claim is already present.

3. StationClaim.Renew only rewrites the lease when <=15 seconds remain.

4. StationClaim.Release uses a 1-second same-station retake grace period to avoid

needless release/take churn when AI immediately chooses the same station again.

5. Innangard's existing mutation-time Ownership.Take calls remain at their audited

real action callsites. Actual world/inventory/machine mutations still acquire

authority when they genuinely need it.

6. On a dedicated server, the ordinary-object JIT (Just In Time) ownership guard prevents an

Innangard mutation path from stealing a ZNetView already owned by a connected

client. It also conservatively leaves an ownerless ordinary object alone while a

player is within HandoffRadius so normal Valheim/client ownership can handle it.

7. Locally-owned Innangard_Settler replication is throttled to reduce redundant ZDO

writes while preserving normal local movement, animation and AI execution:

transform: 20 Hz

velocity: 20 Hz

animation float: 20 Hz per parameter

Immediate writes bypass the rate limit for meaningful changes:

transform distance: >=0.25 m

transform angle: >=10 degrees

velocity delta: >=0.50

animation delta: >=0.10 This saves up to 70% networking deltas that don't change anything visually. Big contributor to network delays/desync if you fill the pipe. Could probably be reduced to 10hz fine.

8. Settler ownership and simulator selection remain Innangard/Valheim default. This

plugin does not alter Innangard's normal resident ownership logic.

9. Client death/respawn safety: on player clients, station-lease overrides are

inactive whenever there is no live local player, and pending deferred releases /

shadow leases are discarded on entry to that state. On every non-dedicated peer,

settler replication throttling is inactive without a live local player. Sync-write

scopes are finalizer-protected so they are restored even if a patched sync method

throws. Dedicated-server behavior is unaffected by this safety gate.

CHANGELOG

1.0.7

  • Fixed ItemDrawers API harmony warning spam if there is no ItemDrawer API. Also caches type to prevent re-looking this up in future.
  • Items that would be ignored on the ground like eggs are no longer ignored while in storage (now they can be sorted properly)

1.0.6

  • Crafting from Frith now works, instead of just visually! Whoops.
  • Settlers tried to exit chairs to pick/check tasks every second. Now they will exit a chair only if their task wants them to.

1.0.5

  • Fixed Craft/Build from Frith not using ItemDrawers. Now supported and checked prior to chests. Optimised.
  • Settlers now prefer to get out at the same position they got into chairs from. Otherwise it will fall back to old nearby logic.
  • Settlers can now be assigned beds with Ctrl+E and then Ctrl+E on a bed. They will swap beds, or fill an empty one.
  • Added Stations (!!) tab to Innangard Frith, allows you to enable or disable them from using specific stations like campfires, or multiple kilns so they only run one. Sorted by distance. You can also Ctrl+E on relevant stations to toggle them. These are stored in the ZDO so are replicated to other players and saved.
  • Improved stale hostile-target cleanup further.

1.0.4

  • Added body-aware settler/path clearance.
  • Added live collider/planner radius configuration.
  • Improved storage and machine approach routing.
  • Added full storage standing-position fallback search.
  • Added improved chair/table approach routing.
  • Fixed meal seating timeout being consumed by travel to food.
  • Added stale hostile-target cleanup.
  • Added deliver-first caretaker sorting.
  • Added blocked/stalled CollectMore and deposit recovery.
  • Added Better Organisation rule/UI integration.
  • Improved lumberjack tree/log target choice.

1.0.3

  • Bumped Readme/Changelog (no functional changes- new mod maker bla bla)

1.0.2

  • More Fixes for Innangard. Listed fixes are in readme

1.0.0/1

  • Initial Release. Reuploaded as 1.0.1 to fix Readme/Changelog (no functional changes)