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

RejoinStateRecovery

Restore reconnecting players to their last known session state.

By YenRex
Date uploaded 6 months ago
Version 1.0.0
Download link YenRex-RejoinStateRecovery-1.0.0.zip
Downloads 10
Dependency string YenRex-RejoinStateRecovery-1.0.0

README

RejoinStateRecovery

RejoinStateRecovery restores reconnecting players to their last known state in an active session.

Highlights

  • Restores position/rotation, movement, focus, pomodoro, and key UI panel state.
  • Uses host snapshots first, with local fallback when needed.
  • Includes safe position validation + ground snap.
  • Includes delayed focus restore to prevent early bench/seat focus at spawn.
  • No otAPI dependency.

Config

Config file:

  • BepInEx/config/io.damon.ontogether.rejoinstaterecovery.cfg

Important keys:

  • Fallback.LocalFallbackDelaySeconds
  • Safety.SafePositionRestore
  • Safety.MaxRestoreDistanceMeters
  • Safety.GroundSnapMaxUpwardAdjust
  • Focus.FocusRestoreDelaySeconds
  • Fishing.ResumeFishingOnRestore

Verify It Is Working

Check BepInEx/LogOutput.log for:

  • Applied snapshot v...
  • Delaying focus restore for snapshot ...
  • Applied focus restore for snapshot ...

CHANGELOG

Changelog

v1.0.9

  • Added FocusRestoreDelaySeconds config to delay focus restore until after spawn/reposition settles.
  • Focus restore no longer runs immediately during snapshot apply; it is handled by the delayed retry flow.
  • Reduced early-focus bench/seat snaps caused by same-frame focus restore on reconnect.
  • Updated docs for release packaging and configuration guidance.

v1.0.8

  • Primed PlayerFocusController internal selector state before calling SetFocus.
  • Added FocusTypeValue snapshot data as a fallback when main focus index is unavailable.
  • Tightened focus readiness checks to avoid premature restore calls.

v1.0.7

  • Aligned local pose capture/apply with TextChannelManager.MainPlayer (with mirror to secondary transform).
  • Improved local fallback reliability and safety handling around reconnect snapshots.

v1.0.0

  • Initial release.