[PR #7466] [MERGED] Flame bow arrows burn on every client (send and read the arrow's fire flag) #7617

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7466
Author: @ludovic111
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: fix/flame-arrow-fire-7356


📝 Commits (3)

  • 431ae73 Send and read a burning arrow's fire flag
  • 66a1845 lan_e2e flame-arrows: give the arrow after the bow, sample after the draw
  • 3625654 Merge remote-tracking branch 'origin/main' into t3/flame-arrow-fire-overlay

📊 Changes

4 files changed (+71 additions, -6 deletions)

View changed files

📝 crates/horizon-client/src/game/lan_entities.rs (+6 -0)
📝 crates/horizon-client/src/game/remote_projectiles.rs (+10 -1)
📝 tools/lan_e2e.py (+50 -2)
📝 tools/test_server_entities_parity.py (+5 -3)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Fixes #7356: an arrow shot from a Flame bow burned its target, but no client drew it on fire while it flew. This happened in single player (server thread), on LAN and on dedicated servers.

Cause. The server set the arrow on fire (release_bow → ignite_for_seconds). The entity tracker never sent Entity.DATA_SHARED_FLAGS_ID (index 0, FLAG_ONFIRE 0x01) for projectiles, and the client ignored index 0 for them. The arrow renderer already draws the flames when the arrow's fire is set, so nothing more is needed there.

Fix (vanilla 26.3: Entity.baseTick → setSharedFlagOnFire(remainingFireTicks > 0), Entity.isOnFire on a client):

  • game/lan_entities.rs: a burning arrow's tracked data carries (0, BYTE, 0x01). When the fire goes out, the tracker sends the default 0 again.
  • game/remote_projectiles.rs: index 0 sets the arrow's fire on the client, the same way remote_mob_data.rs does for mobs. The client doesn't count it down. status reports on_fire for projectiles.

Tests

  • server_entities (vanilla oracle): the scene now includes a burning arrow (Fire:2000s). Vanilla's dedicated server pairs it with 0=1, and Horizon now sends the same transcript line (pairing 0=1 | data {0=0 1, 10=8 true}). Before this fix Horizon sent no index 0, so the harness would fail. PASS (88 s).
  • lan_e2e --check flame-arrows (new): the host and the guest each shoot a Flame bow and a plain bow. Both clients see the Flame arrow burning in flight and the plain one not burning: {'host flame': {'own': [True], 'other': [True]}, 'host plain': {'own': [False], 'other': [False]}, 'guest flame': …[True]…, 'guest plain': …[False]…} PASS.
  • Single player on the server thread, offscreen with horizon-ctl: the Flame arrow is drawn with the fire overlay in flight and where it lands (screenshots checked).

pr_ready (tools/pr_ready.py on ludovics-mac-mini, against origin/main at 9a6f7dd5a, 44 min 39 s)

Check Result
Scope ✅ 4 files, +71 −6
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ❌ 612 run, FAILED (errors=1, skipped=1)
rustfmt ✅ (52 s)
clippy ✅ (28 min 23 s)
tests: horizon-client ✅ 692 passed (6 min 17 s)
doc tests ✅ 0 passed (2 s)
content root tests ➖ content root untouched
mod API up to date ✅ (22 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ❌ not run: local unreachable?
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Notes on the two ❌ lines:

  • Python tests: the one error was test_density_parity…test_corpus_replays…, interrupted by a signal (SystemExit from build_times' handler). Rerun alone: tests.test_density_parity 2 tests OK.
  • Parity: pr_ready's harness step failed with no output on this busy Mac. I ran tools/parity.py --fresh server_entities separately: PASS. The other 50 selected harnesses (dedicated server/server play, picked because the game binary changed) are left to CI's parity job.

No label: this is a fix.

🤖 Generated with Claude Code


🔄 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/7466 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/flame-arrow-fire-7356` --- ### 📝 Commits (3) - [`431ae73`](https://github.com/horizon-rust/horizon/commit/431ae7341ab965a25d3cd595aaa9ed2466de075e) Send and read a burning arrow's fire flag - [`66a1845`](https://github.com/horizon-rust/horizon/commit/66a18454ca36906c0db96a36ded2cdaeaeb14151) lan_e2e flame-arrows: give the arrow after the bow, sample after the draw - [`3625654`](https://github.com/horizon-rust/horizon/commit/36256545f804f3f5941ee15d550c4124a5c476e7) Merge remote-tracking branch 'origin/main' into t3/flame-arrow-fire-overlay ### 📊 Changes **4 files changed** (+71 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/lan_entities.rs` (+6 -0) 📝 `crates/horizon-client/src/game/remote_projectiles.rs` (+10 -1) 📝 `tools/lan_e2e.py` (+50 -2) 📝 `tools/test_server_entities_parity.py` (+5 -3) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Fixes #7356: an arrow shot from a Flame bow burned its target, but no client drew it on fire while it flew. This happened in single player (server thread), on LAN and on dedicated servers. **Cause.** The server set the arrow on fire (`release_bow` → `ignite_for_seconds`). The entity tracker never sent `Entity.DATA_SHARED_FLAGS_ID` (index 0, `FLAG_ONFIRE` 0x01) for projectiles, and the client ignored index 0 for them. The arrow renderer already draws the flames when the arrow's fire is set, so nothing more is needed there. **Fix (vanilla 26.3: `Entity.baseTick` → `setSharedFlagOnFire(remainingFireTicks > 0)`, `Entity.isOnFire` on a client):** - `game/lan_entities.rs`: a burning arrow's tracked data carries `(0, BYTE, 0x01)`. When the fire goes out, the tracker sends the default 0 again. - `game/remote_projectiles.rs`: index 0 sets the arrow's fire on the client, the same way `remote_mob_data.rs` does for mobs. The client doesn't count it down. `status` reports `on_fire` for projectiles. **Tests** - `server_entities` (vanilla oracle): the scene now includes a burning arrow (`Fire:2000s`). Vanilla's dedicated server pairs it with `0=1`, and Horizon now sends the same transcript line (`pairing 0=1 | data {0=0 1, 10=8 true}`). Before this fix Horizon sent no index 0, so the harness would fail. PASS (88 s). - `lan_e2e --check flame-arrows` (new): the host and the guest each shoot a Flame bow and a plain bow. Both clients see the Flame arrow burning in flight and the plain one not burning: `{'host flame': {'own': [True], 'other': [True]}, 'host plain': {'own': [False], 'other': [False]}, 'guest flame': …[True]…, 'guest plain': …[False]…}` PASS. - Single player on the server thread, offscreen with horizon-ctl: the Flame arrow is drawn with the fire overlay in flight and where it lands (screenshots checked). **pr_ready** (`tools/pr_ready.py` on ludovics-mac-mini, against origin/main at 9a6f7dd5a, 44 min 39 s) | Check | Result | | --- | --- | | Scope | ✅ 4 files, +71 −6 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ❌ 612 run, FAILED (errors=1, skipped=1) | | rustfmt | ✅ (52 s) | | clippy | ✅ (28 min 23 s) | | tests: horizon-client | ✅ 692 passed (6 min 17 s) | | doc tests | ✅ 0 passed (2 s) | | content root tests | ➖ content root untouched | | mod API up to date | ✅ (22 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ❌ not run: local unreachable? | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Notes on the two ❌ lines: - Python tests: the one error was `test_density_parity…test_corpus_replays…`, interrupted by a signal (`SystemExit` from build_times' handler). Rerun alone: `tests.test_density_parity` 2 tests OK. - Parity: pr_ready's harness step failed with no output on this busy Mac. I ran `tools/parity.py --fresh server_entities` separately: PASS. The other 50 selected harnesses (dedicated server/server play, picked because the game binary changed) are left to CI's parity job. No label: this is a fix. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 07:20:53 +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#7617
No description provided.