[PR #6059] [MERGED] Stop stale boat rotation after reboarding #6633

Closed
opened 2026-11-03 06:24:06 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6059
Author: @oskal675-design
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/boat-ice-reboard-spin


📝 Commits (3)

  • 326c368 Clear cached boat motion when the client stops driving
  • 52da609 Merge main into #6059 (lan_e2e: boat_ice_reboard beside blast-projectiles)
  • 516927b Merge main into #6059 (lan_e2e: boat_ice_reboard beside piglin_offspring)

📊 Changes

6 files changed (+306 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+5 -0)
➕ crates/horizon-client/src/game/boat_authority_fixture.rs (+51 -0)
📝 crates/horizon-client/src/game/remote_vehicles.rs (+4 -0)
➕ mods/horizon/src/test/java/dev/horizonlab/parity/VanillaBoatAuthorityOracle.java (+98 -0)
📝 tools/lan_e2e.py (+69 -2)
➕ tools/test_boat_authority_parity.py (+79 -0)

📄 Description

🤖 Opened by oskal675-design's AI agent (Codex, GPT-6), not by oskal675-design personally.

What and why

After steering a boat on ice, dismounting with steering keys held and boarding it again reused the client's previous angular velocity. The boat and camera continued making large turns without input. Clear cached velocity and angular velocity on client copies that the local player does not drive, matching vanilla's non-authoritative tick branch. Controlled motion remains unchanged.

Fixes #5953. Claimed and assigned before implementation. The production change is two assignments in the client boat ticker; the remaining changes add native and real-client regression coverage.

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Vanilla reference

Read actual 26.3 AbstractBoat.tick, Entity.isLocalInstanceAuthoritative, Entity.isClientAuthoritative and LocalPlayer.rideTick with tools/rea_vanilla.py. A non-authoritative boat copy sets its velocity to zero and deltaRotation to zero. The passenger's input is latched by LocalPlayer.rideTick.

  • python3 tools/test_boat_authority_parity.py: 90/90 scenarios and 225 tick states match vanilla bit-for-bit. The real AbstractBoat.tick / floatBoat run in an empty stand-in client level; unrelated bookkeeping, displacement and network sends are isolated. A headless component fixture loads Horizon's resources and invokes the actual Game::tick_boat / tick_remote_boat_bubbles. Tests cover zero and signed spin, nonzero velocity, controlled ticks, loss of control and re-entry. Before the fix, 73/90 scenarios differ.
  • python3 tools/lan_e2e.py --bin-dir <fixed binaries> --check boat_ice_reboard --check boats: pass, using two real clients on the default integrated server in fresh isolated homes. Host/guest × boat/raft steer on ice, dismount while steering, release keys, reboard the same boat and sample both boat and camera angles. Unpatched: about 398.6° of unintended turn in the early sample window. Fixed: about 17.1° of small coasting turn, decaying to 3.27–3.34° in a later window. The check allows one previously latched steering input and ice friction, then requires settling.
  • --check boat_input_latch: pass in its own fresh session after an initial timing-sensitive failure under concurrent load. Ordinary boarding, steering and breaking also pass.
  • python3 tools/port_ledger.py check --base origin/main: no new gaps or stale citations. Merge-tree checks against current main and #6029 are clean; the fix does not modify #6029's functions.

Other projects' code

none

Self-check

pr_ready (tools/pr_ready.py --quick on omarchy, against origin/main at c05ef84a5, 2 min 17 s)

Check Result
Scope ✅ 6 files, +306 −2
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 525 passed (22 s)
rustfmt ✅ (6 s)
clippy ✅
tests: horizon-client ✅ 1713 passed (1 min 47 s)
doc tests ✅ 0 passed
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 319 affected, to run in CI (--quick): blending, block_removal, block_survival, boat_authority, boat_paddle_reset, bundle_weight, camera, canyon_carver, carving_geometry, carving_mask, cauldron, cave_carver and 307 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Checks used CARGO_INCREMENTAL=0 to limit disk growth and an isolated network namespace with scratch /tmp. --quick lists broader harnesses for CI; the focused native and integrated-server checks above ran locally.

Screenshots

Measured boat and camera rotation after reboarding with steering released. Before measurements, fixed measurements.

Measured rotation

The game views at the end of the early sampling window:

Before
After

Please enable Allow edits by maintainers.

🤖 Generated with Codex.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/6059 **Author:** [@oskal675-design](https://github.com/oskal675-design) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/boat-ice-reboard-spin` --- ### 📝 Commits (3) - [`326c368`](https://github.com/horizon-rust/horizon/commit/326c36879b1b2925b823b4f55d8118dce4fb6e10) Clear cached boat motion when the client stops driving - [`52da609`](https://github.com/horizon-rust/horizon/commit/52da60975d310774361035c3934c33e79b4eac42) Merge main into #6059 (lan_e2e: boat_ice_reboard beside blast-projectiles) - [`516927b`](https://github.com/horizon-rust/horizon/commit/516927b342f9c6fab007fef1d80f8493ea1bf683) Merge main into #6059 (lan_e2e: boat_ice_reboard beside piglin_offspring) ### 📊 Changes **6 files changed** (+306 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+5 -0) ➕ `crates/horizon-client/src/game/boat_authority_fixture.rs` (+51 -0) 📝 `crates/horizon-client/src/game/remote_vehicles.rs` (+4 -0) ➕ `mods/horizon/src/test/java/dev/horizonlab/parity/VanillaBoatAuthorityOracle.java` (+98 -0) 📝 `tools/lan_e2e.py` (+69 -2) ➕ `tools/test_boat_authority_parity.py` (+79 -0) </details> ### 📄 Description > 🤖 Opened by oskal675-design's AI agent (Codex, GPT-6), not by oskal675-design personally. ## What and why After steering a boat on ice, dismounting with steering keys held and boarding it again reused the client's previous angular velocity. The boat and camera continued making large turns without input. Clear cached velocity and angular velocity on client copies that the local player does not drive, matching vanilla's non-authoritative tick branch. Controlled motion remains unchanged. Fixes #5953. Claimed and assigned before implementation. The production change is two assignments in the client boat ticker; the remaining changes add native and real-client regression coverage. ## Kind - [x] parity: Horizon now does what vanilla 26.3 does - [ ] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [ ] docs ## Vanilla reference Read actual 26.3 `AbstractBoat.tick`, `Entity.isLocalInstanceAuthoritative`, `Entity.isClientAuthoritative` and `LocalPlayer.rideTick` with `tools/rea_vanilla.py`. A non-authoritative boat copy sets its velocity to zero and `deltaRotation` to zero. The passenger's input is latched by `LocalPlayer.rideTick`. - `python3 tools/test_boat_authority_parity.py`: **90/90 scenarios and 225 tick states match vanilla bit-for-bit**. The real `AbstractBoat.tick` / `floatBoat` run in an empty stand-in client level; unrelated bookkeeping, displacement and network sends are isolated. A headless component fixture loads Horizon's resources and invokes the actual `Game::tick_boat` / `tick_remote_boat_bubbles`. Tests cover zero and signed spin, nonzero velocity, controlled ticks, loss of control and re-entry. Before the fix, 73/90 scenarios differ. - `python3 tools/lan_e2e.py --bin-dir <fixed binaries> --check boat_ice_reboard --check boats`: **pass**, using two real clients on the default integrated server in fresh isolated homes. Host/guest × boat/raft steer on ice, dismount while steering, release keys, reboard the same boat and sample both boat and camera angles. Unpatched: about 398.6° of unintended turn in the early sample window. Fixed: about 17.1° of small coasting turn, decaying to 3.27–3.34° in a later window. The check allows one previously latched steering input and ice friction, then requires settling. - `--check boat_input_latch`: **pass** in its own fresh session after an initial timing-sensitive failure under concurrent load. Ordinary boarding, steering and breaking also pass. - `python3 tools/port_ledger.py check --base origin/main`: no new gaps or stale citations. Merge-tree checks against current main and #6029 are clean; the fix does not modify #6029's functions. ## Other projects' code none ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on omarchy, against origin/main at c05ef84a5, 2 min 17 s) | Check | Result | | --- | --- | | Scope | ✅ 6 files, +306 −2 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 525 passed (22 s) | | rustfmt | ✅ (6 s) | | clippy | ✅ | | tests: horizon-client | ✅ 1713 passed (1 min 47 s) | | doc tests | ✅ 0 passed | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 319 affected, to run in CI (--quick): blending, block_removal, block_survival, boat_authority, boat_paddle_reset, bundle_weight, camera, canyon_carver, carving_geometry, carving_mask, cauldron, cave_carver and 307 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Checks used `CARGO_INCREMENTAL=0` to limit disk growth and an isolated network namespace with scratch `/tmp`. `--quick` lists broader harnesses for CI; the focused native and integrated-server checks above ran locally. ## Screenshots Measured boat and camera rotation after reboarding with steering released. [Before measurements](https://raw.githubusercontent.com/oskal675-design/horizon/aa46e6bb6adcf071c36231e04473ec638fe1dd66/before.json), [fixed measurements](https://raw.githubusercontent.com/oskal675-design/horizon/aa46e6bb6adcf071c36231e04473ec638fe1dd66/after.json). ![Measured rotation](https://raw.githubusercontent.com/oskal675-design/horizon/aa46e6bb6adcf071c36231e04473ec638fe1dd66/rotation.png) The game views at the end of the early sampling window: ![Before](https://raw.githubusercontent.com/oskal675-design/horizon/aa46e6bb6adcf071c36231e04473ec638fe1dd66/before.png) ![After](https://raw.githubusercontent.com/oskal675-design/horizon/aa46e6bb6adcf071c36231e04473ec638fe1dd66/after.png) Please enable Allow edits by maintainers. 🤖 Generated with [Codex](https://openai.com/codex/). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:24:06 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#6633
No description provided.