[PR #1904] [MERGED] Advance remote fireballs between server tracker updates #3853

Closed
opened 2026-11-03 04:12:47 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1904
Author: @rdbtCVS
Created: 10/25/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @ludovic111

Base: main ← Head: fix/remote-fireball-motion


📝 Commits (1)

  • 9c7909f Advance remote fireballs between server tracker updates

📊 Changes

4 files changed (+137 additions, -14 deletions)

View changed files

📝 crates/horizon-client/src/game/remote.rs (+23 -0)
📝 crates/horizon-client/src/game/remote_projectiles.rs (+19 -1)
📝 crates/horizon-client/src/projectiles.rs (+33 -13)
➕ tools/test_remote_fireball_parity.py (+62 -0)

📄 Description

🤖 Opened by rdbtCVS's AI agent (OpenAI Codex, GPT-6.1).

A connected client left ghast fireballs stationary between tracker updates. This made the visible projectile diverge from the server and broke normal click deflection in server-thread single player.

Advance remote large fireballs with the existing hurting-projectile inertia, apply authoritative position/rotation and velocity corrections, and share the inertia calculation with server simulation while preserving custom acceleration power. Vanilla reference: 26.3 AbstractHurtingProjectile.tick / applyInertia and Entity.createInterpolationHandler.

Add remote_fireball integration parity: summon a moving fireball and sample the guest's visible position every two ticks, more often than the tracker interval. It fails on unchanged main in both hosting modes because the projectile stalls, then passes in both modes with this fix. A Rust regression also preserves custom acceleration. The original deflection check passed as part of #1567's combined 119-case run before extraction.

This targets main independently. Only the fireball gameplay fix and its regression harness are extracted from #1567.

Validation: remote_fireball passed for server-thread and in-frame hosts; source checks below use lab.game_env() scratch homes. Broad parity is listed for CI.

pr_ready (tools/pr_ready.py --quick on archlinux, against origin/main at 8177a6f45, 3 min 37 s)

Check Result
Scope ✅ 4 files, +137 −14
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 287 passed (29 s)
rustfmt ✅ (5 s)
clippy ✅ (24 s)
tests: horizon-client ✅ 1242 passed (2 min 28 s)
doc tests ✅ 0 passed (1 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 107 affected, to run in CI (--quick): ambient_sound, arrow, audio_attributes, auto_jump, block_entity_anim, block_entity_render, block_entity_tickers, block_particles, block_removal, block_transformer, breaking_model, camera and 95 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 Generated with OpenAI 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/1904 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/remote-fireball-motion` --- ### 📝 Commits (1) - [`9c7909f`](https://github.com/horizon-rust/horizon/commit/9c7909f77006d76fda223ecb8396039f2a108188) Advance remote fireballs between server tracker updates ### 📊 Changes **4 files changed** (+137 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/remote.rs` (+23 -0) 📝 `crates/horizon-client/src/game/remote_projectiles.rs` (+19 -1) 📝 `crates/horizon-client/src/projectiles.rs` (+33 -13) ➕ `tools/test_remote_fireball_parity.py` (+62 -0) </details> ### 📄 Description > 🤖 Opened by rdbtCVS's AI agent (OpenAI Codex, GPT-6.1). A connected client left ghast fireballs stationary between tracker updates. This made the visible projectile diverge from the server and broke normal click deflection in server-thread single player. Advance remote large fireballs with the existing hurting-projectile inertia, apply authoritative position/rotation and velocity corrections, and share the inertia calculation with server simulation while preserving custom acceleration power. Vanilla reference: 26.3 `AbstractHurtingProjectile.tick` / `applyInertia` and `Entity.createInterpolationHandler`. Add `remote_fireball` integration parity: summon a moving fireball and sample the guest's visible position every two ticks, more often than the tracker interval. It fails on unchanged `main` in both hosting modes because the projectile stalls, then passes in both modes with this fix. A Rust regression also preserves custom acceleration. The original deflection check passed as part of #1567's combined 119-case run before extraction. This targets `main` independently. Only the fireball gameplay fix and its regression harness are extracted from #1567. Validation: `remote_fireball` passed for server-thread and in-frame hosts; source checks below use `lab.game_env()` scratch homes. Broad parity is listed for CI. **pr_ready** (`tools/pr_ready.py --quick` on archlinux, against origin/main at 8177a6f45, 3 min 37 s) | Check | Result | | --- | --- | | Scope | ✅ 4 files, +137 −14 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 287 passed (29 s) | | rustfmt | ✅ (5 s) | | clippy | ✅ (24 s) | | tests: horizon-client | ✅ 1242 passed (2 min 28 s) | | doc tests | ✅ 0 passed (1 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 107 affected, to run in CI (--quick): ambient_sound, arrow, audio_attributes, auto_jump, block_entity_anim, block_entity_render, block_entity_tickers, block_particles, block_removal, block_transformer, breaking_model, camera and 95 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 Generated with [OpenAI 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 04:12:47 +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#3853
No description provided.