WAYFINDER UNSTUCK 1.1.0

INSTALL / UPDATE
Close Valheim completely. Run Install-Unstuck.ps1 beside the WayfinderUnstuck
folder, or copy that folder into your modded profile's BepInEx/plugins folder.
The installer backs up an existing DLL and refuses to update a running game.
Launch your Modded Valheim profile again. This is separate from the Wayfinder
map/animal/pin bridge, which has its own version and updater.

USAGE
Enter a world, press Esc and select Unstuck below Continue. The menu closes
while recovery checks the area. Stay near the spot until the result appears.
If a teleport is active, allow up to 16 seconds for recovery. Terrain/object
loading can take up to 30 seconds; the landing is then checked for 10 seconds.
Successful recovery has a five-second repeat cooldown.

FIX IN 1.1
Previously, an active teleport blocked recovery entirely. An unchanged nearby
teleport can now be repaired after the normal game's teleport timeout, or
after 16 seconds of observation if its timer is frozen. New teleports and
teleports to another area are allowed to progress. Loaded terrain, object
readiness, character ownership and clear standing space are required first.

For a stalled teleport, replaces its destination and fallback position with
the validated landing, then finishes it through native UpdateTeleport. This
retains the game's velocity, fall-height and cloth reset. Ordinary recovery
uses native TeleportTo. Success is reported only after the teleport ends near
the landing with a clear capsule. Failure messages distinguish a busy teleport,
loading objects, loading terrain, blocked space and an unconfirmed landing.

HOW IT CHOOSES A HEIGHT
Reads the actual loaded Heightmap, including terrain edits, and waits for its
mesh collider. Downward physics rays find terrain, rocks, buildings and other
solid surfaces. The standing character capsule must fit, including headroom.
The same X/Z is tried first, moving upward only. If blocked, small offsets out
to three meters are tried. Feet are placed about 18 cm above support, accounting
for capsule scale and pivot. Offshore recovery can reach water level instead
of the seabed. Standing on a clear floor needs no move, but a stalled teleport
can still be finished there. Seed-generator heights are not used.

BOUNDARIES
Disabled inside dungeons/interiors and while seated or riding. Cancels if your
character/world changes or you move more than four horizontal meters while
waiting. No suitable landing means no recovery is started. Maximum upward
correction is 2048 meters. Does not lower a character floating above ground.
Does not edit terrain, inventory, skills, health or Map Teleport configuration.
Enemies, lava and other environmental hazards are outside the clearance check.

SETTINGS
BepInEx/config/local.nick.valheimunstuck.cfg:
Enabled = true
NearbySearchMeters = 3 (0 for strictly vertical; maximum 6)
MaximumLiftMeters = 2048 (clamped from 5 to 4096)

VALIDATION
Built against the installed Unity/BepInEx assemblies, with no game assemblies
distributed. Eighteen simulated geometry scenarios and seventeen teleport
regression checks cover loaded ground, rocks, floors, headroom, water, bounds,
fresh/stalled/frozen teleports, changing destinations, safe native fallback,
cooldown rejection and incompatible API contracts. Installed-game metadata
confirms the fields, methods and native velocity/fall-height reset. Actual
in-game recovery still needs verification after installing and restarting.

REMOVAL
Close Valheim and remove BepInEx/plugins/WayfinderUnstuck. Other mods can stay.

BUILD
dotnet build WayfinderUnstuck.csproj -c Release -p:ValheimManaged="path/to/Valheim/valheim_Data/Managed" -p:BepInExCore="path/to/profile/BepInEx/core"
No Harmony, Jotunn, browser, server plugin or console command is required.
