[PR #2094] [MERGED] Fix firework bursts on server-thread clients #3999

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/2094
Author: @rdbtCVS
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @ludovic111

Base: main ← Head: rdbt/fix-1478-firework-bursts-20261026


📝 Commits (2)

  • 52a0a5a Fix firework bursts on server clients
  • fcbadba Merge main into rdbt/fix-1478-firework-bursts-20261026

📊 Changes

4 files changed (+116 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game/fireworks.rs (+20 -0)
📝 crates/horizon-client/src/game/remote.rs (+3 -0)
📝 tools/lan_e2e.py (+59 -2)
➕ tools/test_remote_fireworks_parity.py (+34 -0)

📄 Description

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

What and why

Fixes #1478.

Configured firework rockets disappeared without a colored burst on server-thread clients. Broadcast the rocket's explosion entity event immediately, before entity tracking removes it, and handle that event on clients using the rocket's synchronized explosion data and the existing firework particle renderer. Damage, simulation RNG, and local in-frame rendering keep their existing behavior.

Adds a real-client screenshot regression for the configured red large-ball rocket with a trail, plus a parity-runner entry that exercises both hosting paths. It checks exactly one burst per client, red burst and later trail/fade pixels, and rocket removal. The held rocket is cleared before capture so its red texture cannot satisfy the assertions.

Open #1971 addresses firework damage; this change only delivers and renders the burst.

Vanilla reference

Pinned 26.3 FireworkRocketEntity.explode(ServerLevel) broadcasts entity event 17 before damage and discard. FireworkRocketEntity.handleEntityEvent(byte) calls ClientLevel.createFireworks with the rocket's movement and configured explosions. Both methods were inspected with tools/rea_vanilla.py.

Horizon tracking removes missing entities during tick_lan before lan_flush_effects, so this event is sent immediately instead of using the deferred effects queue.

Self-check

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

Check Result
Scope ✅ 4 files, +108 −2
Cargo.lock ✅ unchanged
Public tree ✅ (2 s)
Python tests ✅ 306 passed (26 s)
rustfmt ✅ (8 s)
clippy ✅ (2 s)
tests: horizon-client ✅ 1298 passed (2 min 42 s)
doc tests ✅ 0 passed (4 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 30 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 18 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Final quick self-check exited 0. Also passed:

  • cargo build --locked --profile fast -p horizon-client --bins
  • python3 tools/lan_e2e.py --bin-dir target/fast --check fireworks --out "$PWD/.local/fireworks-1478/in-frame"
  • python3 tools/lan_e2e.py --server-thread --bin-dir target/fast --check fireworks --out "$PWD/.local/fireworks-1478/server-thread"

Broader parity execution is left to CI. Games used fresh isolated game, launcher and XDG homes with audio and launcher self-update disabled; audio was not evaluated.

Screenshots

The regression captures before, burst, and later trail/fade PNGs for both clients under .local/fireworks-1478/{in-frame,server-thread}/. The screenshots were visually inspected locally; the harness asserts the rendered evidence:

Hosting path Burst red pixels (host / guest) Later trail/fade red pixels (host / guest) Flash events (host / guest) Remaining rockets
In-frame 121679 / 70995 207284 / 73621 1 / 1 0 / 0
Server thread 24782 / 29721 245466 / 89992 1 / 1 0 / 0

🤖 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/2094 **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-1478-firework-bursts-20261026` --- ### 📝 Commits (2) - [`52a0a5a`](https://github.com/horizon-rust/horizon/commit/52a0a5a89c9cd0abef0aa5c90fd4dcf702724a70) Fix firework bursts on server clients - [`fcbadba`](https://github.com/horizon-rust/horizon/commit/fcbadbaa30b8a349608cfafcff90aec513fc3196) Merge main into rdbt/fix-1478-firework-bursts-20261026 ### 📊 Changes **4 files changed** (+116 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/fireworks.rs` (+20 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+3 -0) 📝 `tools/lan_e2e.py` (+59 -2) ➕ `tools/test_remote_fireworks_parity.py` (+34 -0) </details> ### 📄 Description > 🤖 Opened by rdbt's AI agent (OpenAI Codex, GPT-6.1 Sol), not by rdbt himself. ## What and why Fixes #1478. Configured firework rockets disappeared without a colored burst on server-thread clients. Broadcast the rocket's explosion entity event immediately, before entity tracking removes it, and handle that event on clients using the rocket's synchronized explosion data and the existing firework particle renderer. Damage, simulation RNG, and local in-frame rendering keep their existing behavior. Adds a real-client screenshot regression for the configured red large-ball rocket with a trail, plus a parity-runner entry that exercises both hosting paths. It checks exactly one burst per client, red burst and later trail/fade pixels, and rocket removal. The held rocket is cleared before capture so its red texture cannot satisfy the assertions. Open #1971 addresses firework damage; this change only delivers and renders the burst. ## Vanilla reference Pinned 26.3 `FireworkRocketEntity.explode(ServerLevel)` broadcasts entity event 17 before damage and discard. `FireworkRocketEntity.handleEntityEvent(byte)` calls `ClientLevel.createFireworks` with the rocket's movement and configured explosions. Both methods were inspected with `tools/rea_vanilla.py`. Horizon tracking removes missing entities during `tick_lan` before `lan_flush_effects`, so this event is sent immediately instead of using the deferred effects queue. ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on archlinux, against origin/main at 88b7bfafc, 3 min 35 s) | Check | Result | | --- | --- | | Scope | ✅ 4 files, +108 −2 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ (2 s) | | Python tests | ✅ 306 passed (26 s) | | rustfmt | ✅ (8 s) | | clippy | ✅ (2 s) | | tests: horizon-client | ✅ 1298 passed (2 min 42 s) | | doc tests | ✅ 0 passed (4 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 30 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 18 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Final quick self-check exited **0**. Also passed: - `cargo build --locked --profile fast -p horizon-client --bins` - `python3 tools/lan_e2e.py --bin-dir target/fast --check fireworks --out "$PWD/.local/fireworks-1478/in-frame"` - `python3 tools/lan_e2e.py --server-thread --bin-dir target/fast --check fireworks --out "$PWD/.local/fireworks-1478/server-thread"` Broader parity execution is left to CI. Games used fresh isolated game, launcher and XDG homes with audio and launcher self-update disabled; audio was not evaluated. ## Screenshots The regression captures before, burst, and later trail/fade PNGs for both clients under `.local/fireworks-1478/{in-frame,server-thread}/`. The screenshots were visually inspected locally; the harness asserts the rendered evidence: | Hosting path | Burst red pixels (host / guest) | Later trail/fade red pixels (host / guest) | Flash events (host / guest) | Remaining rockets | | --- | ---: | ---: | ---: | ---: | | In-frame | 121679 / 70995 | 207284 / 73621 | 1 / 1 | 0 / 0 | | Server thread | 24782 / 29721 | 245466 / 89992 | 1 / 1 | 0 / 0 | 🤖 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#3999
No description provided.