[PR #2104] [MERGED] Fix evoker fangs rendering on server clients #4008

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

📋 Pull Request Information

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

Base: main ← Head: fix/1482-evoker-fangs


📝 Commits (5)

  • f98528b Fix evoker fangs rendering on server clients
  • 02897ac Merge main into fix/1482-evoker-fangs
  • 5eef2be Clean up evoker summons after fang integration check
  • 7ac90ff Merge main into fix/1482-evoker-fangs
  • 84f8205 Merge main into fix/1482-evoker-fangs

📊 Changes

6 files changed (+138 additions, -5 deletions)

View changed files

📝 crates/horizon-client/src/game/control.rs (+3 -0)
📝 crates/horizon-client/src/game/fangs.rs (+37 -5)
📝 crates/horizon-client/src/game/lan_entities.rs (+3 -0)
📝 crates/horizon-client/src/game/remote.rs (+1 -0)
📝 crates/horizon-client/src/game/remote_projectiles.rs (+10 -0)
📝 tools/lan_e2e.py (+84 -0)

📄 Description

🤖 Opened by rdbt's AI agent (OpenAI Codex, GPT-6.1 Sol), not by rdbt personally.

What and why

Fixes #1482.

Evoker attacks damaged their targets on the server thread, but the jaws never reached its clients. Give fangs stable entity IDs and track their spawn/removal, deliver vanilla's start event, and advance the existing jaw animation on clients. Damage remains in the authoritative tick. Clear client fangs when entities or levels are removed.

The new lan_e2e.py --check fangs regression checks matching IDs and authoritative positions, invisible warmup, event-driven start, animation progress, actual renderer geometry, and removal on both clients.

Vanilla reference

Read the pinned 26.3 client jar with javap -p -c: EvokerFangs.tick, handleEntityEvent (event 4), getAnimationProgress, EvokerFangsRenderer.extractRenderState/submit, and EntityTypes' fang tracker settings (range 6, interval 2, no deltas). The client waits for the start event, advances its 22-tick animation and waits for server removal. The existing in-frame rendering and server damage logic are retained.

Self-check

pr_ready (tools/pr_ready.py --quick on archlinux, against origin/main at 707348fcd, 2 min 35 s)

Check Result
Scope ✅ 6 files, +137 −5
Cargo.lock ✅ unchanged
Public tree ✅ (2 s)
Python tests ✅ 306 passed (23 s)
rustfmt ✅ (7 s)
clippy ✅ (1 s)
tests: horizon-client ✅ 1299 passed (1 min 52 s)
doc tests ✅ 0 passed (3 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 29 affected, to run in CI (--quick): block_removal, command_exec, composter, crafter, cursor_death, dedicated_server, dispenser, hardcore_respawn, locator_bar, lore_tooltip, mace, online_mode and 17 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Command: python3 tools/pr_ready.py --quick --base origin/main; exit status 0.

Focused validation (all exit 0):

  • cargo build --locked --profile fast -p horizon-client --bins
  • python3 -m py_compile tools/lan_e2e.py
  • python3 tools/lan_e2e.py --bin-dir target/fast --check fangs --out "$PWD/.local/1482-in-frame": PASS; 15 fangs, both sides received warmup, rendered/animated jaws and removed them.
  • python3 tools/lan_e2e.py --bin-dir target/fast --server-thread --check fangs --out "$PWD/.local/1482-server-thread": PASS; 16 fangs, the same lifecycle checks passed for both server clients.

The machine's existing integration adapter launches offscreen and gives each game fresh data/config/launcher homes. An initial relative --out invocation stopped before the check because screenshots resolve paths from the game's scratch directory; the corrected absolute-path runs above passed.

Screenshots

Captured and visually inspected the remote guest's visible jaws in both play paths. Local artifacts (not uploaded to GitHub):

  • .local/1482-in-frame/{host,guest}-evoker-fangs.png
  • .local/1482-server-thread/{host,guest}-evoker-fangs.png
  • Matching evoker-fangs.json lifecycle traces in those directories.

The issue contains the original paired-run evidence of missing threaded jaws.

Audio was disabled for the focused runs; no audio fidelity claim. Full parity was intentionally left to CI (--quick).

🤖 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/2104 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/1482-evoker-fangs` --- ### 📝 Commits (5) - [`f98528b`](https://github.com/horizon-rust/horizon/commit/f98528bbfc49fbe1c92deef00b953623903302c8) Fix evoker fangs rendering on server clients - [`02897ac`](https://github.com/horizon-rust/horizon/commit/02897ac73127b6ae2fcdda75c5a732dc4053423e) Merge main into fix/1482-evoker-fangs - [`5eef2be`](https://github.com/horizon-rust/horizon/commit/5eef2bea0c1ed8ea945ce84fff9d391f97d45329) Clean up evoker summons after fang integration check - [`7ac90ff`](https://github.com/horizon-rust/horizon/commit/7ac90ff0b8dbf7fb333c2b4df3ee6e5e23caad4a) Merge main into fix/1482-evoker-fangs - [`84f8205`](https://github.com/horizon-rust/horizon/commit/84f8205bdd8621aee6479a9cf64fa6fb48c527c4) Merge main into fix/1482-evoker-fangs ### 📊 Changes **6 files changed** (+138 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/control.rs` (+3 -0) 📝 `crates/horizon-client/src/game/fangs.rs` (+37 -5) 📝 `crates/horizon-client/src/game/lan_entities.rs` (+3 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+1 -0) 📝 `crates/horizon-client/src/game/remote_projectiles.rs` (+10 -0) 📝 `tools/lan_e2e.py` (+84 -0) </details> ### 📄 Description > 🤖 Opened by rdbt's AI agent (OpenAI Codex, GPT-6.1 Sol), not by rdbt personally. ## What and why Fixes #1482. Evoker attacks damaged their targets on the server thread, but the jaws never reached its clients. Give fangs stable entity IDs and track their spawn/removal, deliver vanilla's start event, and advance the existing jaw animation on clients. Damage remains in the authoritative tick. Clear client fangs when entities or levels are removed. The new `lan_e2e.py --check fangs` regression checks matching IDs and authoritative positions, invisible warmup, event-driven start, animation progress, actual renderer geometry, and removal on both clients. ## Vanilla reference Read the pinned 26.3 client jar with `javap -p -c`: `EvokerFangs.tick`, `handleEntityEvent` (event 4), `getAnimationProgress`, `EvokerFangsRenderer.extractRenderState`/`submit`, and `EntityTypes`' fang tracker settings (range 6, interval 2, no deltas). The client waits for the start event, advances its 22-tick animation and waits for server removal. The existing in-frame rendering and server damage logic are retained. ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on archlinux, against origin/main at 707348fcd, 2 min 35 s) | Check | Result | | --- | --- | | Scope | ✅ 6 files, +137 −5 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ (2 s) | | Python tests | ✅ 306 passed (23 s) | | rustfmt | ✅ (7 s) | | clippy | ✅ (1 s) | | tests: horizon-client | ✅ 1299 passed (1 min 52 s) | | doc tests | ✅ 0 passed (3 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 29 affected, to run in CI (--quick): block_removal, command_exec, composter, crafter, cursor_death, dedicated_server, dispenser, hardcore_respawn, locator_bar, lore_tooltip, mace, online_mode and 17 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Command: `python3 tools/pr_ready.py --quick --base origin/main`; exit status **0**. Focused validation (all exit 0): - `cargo build --locked --profile fast -p horizon-client --bins` - `python3 -m py_compile tools/lan_e2e.py` - `python3 tools/lan_e2e.py --bin-dir target/fast --check fangs --out "$PWD/.local/1482-in-frame"`: PASS; 15 fangs, both sides received warmup, rendered/animated jaws and removed them. - `python3 tools/lan_e2e.py --bin-dir target/fast --server-thread --check fangs --out "$PWD/.local/1482-server-thread"`: PASS; 16 fangs, the same lifecycle checks passed for both server clients. The machine's existing integration adapter launches offscreen and gives each game fresh data/config/launcher homes. An initial relative `--out` invocation stopped before the check because screenshots resolve paths from the game's scratch directory; the corrected absolute-path runs above passed. ## Screenshots Captured and visually inspected the remote guest's visible jaws in both play paths. Local artifacts (not uploaded to GitHub): - `.local/1482-in-frame/{host,guest}-evoker-fangs.png` - `.local/1482-server-thread/{host,guest}-evoker-fangs.png` - Matching `evoker-fangs.json` lifecycle traces in those directories. The issue contains the original paired-run evidence of missing threaded jaws. Audio was disabled for the focused runs; no audio fidelity claim. Full parity was intentionally left to CI (`--quick`). 🤖 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:13:59 +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#4008
No description provided.