[PR #2088] [MERGED] Fix guardian charging beams on server clients #3996

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

📋 Pull Request Information

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

Base: main ← Head: rdbt/fix-1491-guardian-beams-20261026


📝 Commits (3)

  • 8c6ec16 Fix guardian charging beams on server clients
  • ae63b23 lan_e2e guardian-beams: the host reads the guardian's own level
  • 804a288 Merge main into rdbt/fix-1491-guardian-beams-20261026

📊 Changes

6 files changed (+185 additions, -14 deletions)

View changed files

📝 crates/horizon-client/src/game/creatures.rs (+1 -0)
📝 crates/horizon-client/src/game/lan.rs (+28 -7)
📝 crates/horizon-client/src/game/remote.rs (+7 -0)
📝 crates/horizon-client/src/game/remote_mob_data.rs (+60 -4)
📝 crates/horizon-client/src/mobs/guardian.rs (+8 -3)
📝 tools/lan_e2e.py (+81 -0)

📄 Description

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

What and why

Fixes #1491. Guardian and elder guardian charging beams now render on server clients and clear when the attack completes or the target is lost. Send vanilla moving/attack-target metadata, resolve the actual host/guest/mob target, and advance the client's visual charge clock. Attack goals, damage, timing and RNG are unchanged.

Vanilla reference

Read the pinned 26.3 client jar with javap -p -c: Guardian.defineSynchedData, onSyncedDataUpdated, getActiveAttackTarget, and aiStep; GuardianRenderer.extractRenderState and renderBeam. Moving defaults to false, target id to zero; target changes reset the capped 80/60-tick client charge clock.

Regression coverage: a unit test for guardian/elder target mapping, clock reset/cap and clearing; lan_e2e.py --check guardian-beams for charging, damage completion and target loss, each targeting both host and guest.

Validation

  • cargo build --profile fast -p horizon-client --bins — exit 0.
  • python3 tools/lan_e2e.py --bin-dir target/fast --check guardian-beams --out "$PWD/.local/guardian-1491-in-frame" — exit 0, all four cases passed.
  • python3 tools/lan_e2e.py --bin-dir target/fast --server-thread --check guardian-beams --out "$PWD/.local/guardian-1491-server-thread" — exit 0, all four cases passed.
  • Both paths retained first-hit damage: guardian 20→14, elder guardian 20→12. Each client's beam clock advances during charging and clears after the hit and target loss. All game runs use disposable homes via the existing harness environment helper.
  • Parity execution left to CI as requested.

Self-check

pr_ready (tools/pr_ready.py --quick on archlinux, against origin/main at 88b7bfafc, 2 min 53 s)

Check Result
Scope ✅ 6 files, +183 −14
Cargo.lock ✅ unchanged
Public tree ✅ (2 s)
Python tests ✅ 306 passed (26 s)
rustfmt ✅ (6 s)
clippy ✅ (9 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 ➖ 76 affected, to run in CI (--quick): arrow, auto_jump, block_entity_anim, block_entity_render, block_entity_tickers, block_particles, block_removal, breaking_model, cauldron, chat_screen, command_exec, command_parse and 64 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Screenshots

Before: the paired reproduction captures described in #1491. After: both focused LAN checks save charging screenshots under .local/guardian-1491-in-frame/ and .local/guardian-1491-server-thread/; inspected the guest's server-thread charging capture and confirmed the beam is visible. These are local validation artifacts.

🤖 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/2088 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `rdbt/fix-1491-guardian-beams-20261026` --- ### 📝 Commits (3) - [`8c6ec16`](https://github.com/horizon-rust/horizon/commit/8c6ec16c9961c473f61f4f1a6df7b22e8404449e) Fix guardian charging beams on server clients - [`ae63b23`](https://github.com/horizon-rust/horizon/commit/ae63b23dd6ce432ab2cac7614f2c4a677c1a1cdd) lan_e2e guardian-beams: the host reads the guardian's own level - [`804a288`](https://github.com/horizon-rust/horizon/commit/804a288214d31aefa6eb7f11f0d05fd1129bba37) Merge main into rdbt/fix-1491-guardian-beams-20261026 ### 📊 Changes **6 files changed** (+185 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/creatures.rs` (+1 -0) 📝 `crates/horizon-client/src/game/lan.rs` (+28 -7) 📝 `crates/horizon-client/src/game/remote.rs` (+7 -0) 📝 `crates/horizon-client/src/game/remote_mob_data.rs` (+60 -4) 📝 `crates/horizon-client/src/mobs/guardian.rs` (+8 -3) 📝 `tools/lan_e2e.py` (+81 -0) </details> ### 📄 Description > 🤖 Opened by rdbt's AI agent (OpenAI Codex, GPT-6.1 Sol), not by rdbt himself. ## What and why Fixes #1491. Guardian and elder guardian charging beams now render on server clients and clear when the attack completes or the target is lost. Send vanilla moving/attack-target metadata, resolve the actual host/guest/mob target, and advance the client's visual charge clock. Attack goals, damage, timing and RNG are unchanged. ## Vanilla reference Read the pinned 26.3 client jar with `javap -p -c`: `Guardian.defineSynchedData`, `onSyncedDataUpdated`, `getActiveAttackTarget`, and `aiStep`; `GuardianRenderer.extractRenderState` and `renderBeam`. Moving defaults to false, target id to zero; target changes reset the capped 80/60-tick client charge clock. Regression coverage: a unit test for guardian/elder target mapping, clock reset/cap and clearing; `lan_e2e.py --check guardian-beams` for charging, damage completion and target loss, each targeting both host and guest. ## Validation - `cargo build --profile fast -p horizon-client --bins` — exit 0. - `python3 tools/lan_e2e.py --bin-dir target/fast --check guardian-beams --out "$PWD/.local/guardian-1491-in-frame"` — exit 0, all four cases passed. - `python3 tools/lan_e2e.py --bin-dir target/fast --server-thread --check guardian-beams --out "$PWD/.local/guardian-1491-server-thread"` — exit 0, all four cases passed. - Both paths retained first-hit damage: guardian 20→14, elder guardian 20→12. Each client's beam clock advances during charging and clears after the hit and target loss. All game runs use disposable homes via the existing harness environment helper. - Parity execution left to CI as requested. ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on archlinux, against origin/main at 88b7bfafc, 2 min 53 s) | Check | Result | | --- | --- | | Scope | ✅ 6 files, +183 −14 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ (2 s) | | Python tests | ✅ 306 passed (26 s) | | rustfmt | ✅ (6 s) | | clippy | ✅ (9 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 | ➖ 76 affected, to run in CI (--quick): arrow, auto_jump, block_entity_anim, block_entity_render, block_entity_tickers, block_particles, block_removal, breaking_model, cauldron, chat_screen, command_exec, command_parse and 64 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | ## Screenshots Before: the paired reproduction captures described in #1491. After: both focused LAN checks save charging screenshots under `.local/guardian-1491-in-frame/` and `.local/guardian-1491-server-thread/`; inspected the guest's server-thread charging capture and confirmed the beam is visible. These are local validation artifacts. 🤖 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:54 +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#3996
No description provided.