[PR #887] [MERGED] LAN: players see each other eat and use items #2889

Closed
opened 2026-11-02 15:59:52 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: fix/lan-remote-item-use


📝 Commits (10+)

  • 238278a Startup: keep the title's atlas and panorama in one UI bundle (#712)
  • f021547 Biome zoom: mix the shared corner prefixes once in quart_at_block
  • e25672e Startup: split block assets into block data and render assets (#712)
  • 05ecd87 Startup: show the title before the world bundle finishes loading (#712)
  • 42d6546 Startup stage 3a: split shared resources into core and rest (#712)
  • d9686fa Startup stage 3b: publish world core before the simulation tail (#712)
  • a3cf97f Build the core renderer before starting audio
  • 4e854f8 Format launcher assertions for the shared telemetry checks
  • a5edc14 Startup stage 3c: keep world entry responsive while joining resources (#712)
  • 08532d6 Report the active tail phase while world entry waits

📊 Changes

213 files changed (+8873 additions, -1936 deletions)

View changed files

📝 Cargo.lock (+2 -0)
➕ benchmarks/server-mixed-2026-10-18/README.md (+125 -0)
➕ benchmarks/server-mixed-2026-10-18/load.txt (+286 -0)
➕ benchmarks/server-mixed-2026-10-18/mixed.json (+367 -0)
📝 crates/horizon-client/Cargo.toml (+4 -0)
📝 crates/horizon-client/examples/arrow_probe.rs (+3 -2)
📝 crates/horizon-client/examples/auto_jump_probe.rs (+3 -2)
📝 crates/horizon-client/examples/block_particles_fixture.rs (+2 -0)
📝 crates/horizon-client/examples/breaking_fixture.rs (+3 -1)
📝 crates/horizon-client/examples/chunk_bench.rs (+3 -0)
📝 crates/horizon-client/examples/lan_flat.rs (+2 -0)
📝 crates/horizon-client/examples/model_library_bench.rs (+3 -2)
📝 crates/horizon-client/examples/resource_memory.rs (+5 -3)
📝 crates/horizon-client/examples/save_batch_bench.rs (+0 -1)
📝 crates/horizon-client/examples/scene_collision_probe.rs (+3 -2)
📝 crates/horizon-client/examples/scene_motion_probe.rs (+3 -2)
📝 crates/horizon-client/examples/section_mesh_fixture.rs (+7 -3)
📝 crates/horizon-client/examples/streaming_bench.rs (+3 -0)
📝 crates/horizon-client/src/assets.rs (+18 -25)
📝 crates/horizon-client/src/bin/horizon-ctl/commands.rs (+1 -1)

...and 80 more files

📄 Description

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

Part of #803: "remote players' eating isn't shown".

What

  • The host sends DATA_LIVING_ENTITY_FLAGS (entity data 8: 1 while using an item, 2 for the off hand), for the host and for each guest (LivingEntity.startUsingItem / stopUsingItem). The LAN tracker only sends entries that changed and never resets one that disappears, so the entry is always included.
  • The host draws a guest's item use on that guest's model: eating, a drawn bow, a raised shield.
  • The guest's client applies the flags to other players. Their use timer runs, and Consumable.shouldEmitParticlesAndSounds spawns the eating crumbs every 4 ticks after the first 21.875 % of the use, as every client does for every entity. The server sends the eating sounds.

The other half of #803 (door prediction) is filed as #869.

Tested

New check eating in tools/lan_e2e.py: the host eats bread while the guest watches, then the other way round. Each side sees the other using an item over at least 3 samples, then stop. It fails on main.

Self-check

  • cargo fmt --all -- --check: clean.
  • cargo clippy --workspace --all-targets -- -D warnings: clean on this branch.
  • cargo test -p horizon-client -p horizon-protocol: 1019 passed, 0 failed. This ran on an integration commit of the seven #848 / #803 PRs merged together.
  • tools/lan_e2e.py, on that integration build:
    • The #848 / #803 checks (pvp hurt containers machines brewing chest clicks eat eating xp swings plates time light sleep) all pass without --server-thread.
    • With --server-thread, all pass except light, which fails on main too.
    • eating fails on main.
  • Full tools/lan_e2e.py suite compared with main (e508a5ce binaries), with --server-thread:
    • Main fails self walls crafting sign pvp trials xp light.
    • The integration fails self walls crafting sign pvp trials. These fail on main too.
  • Full suite without --server-thread: later checks are order-dependent on main as well, and main fails clicks sleep push. After an earlier check, the guest's client and the server can disagree on where the guest stands, so later interactions are out of reach.
  • tools/parity.py --changed origin/main (95 harnesses) is running on the integration commit. The result will follow in a comment.

🤖 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/887 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/18/2026 **Status:** ✅ Merged **Merged:** 10/18/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/lan-remote-item-use` --- ### 📝 Commits (10+) - [`238278a`](https://github.com/horizon-rust/horizon/commit/238278aa41e208364b394750a3c41c855d07e530) Startup: keep the title's atlas and panorama in one UI bundle (#712) - [`f021547`](https://github.com/horizon-rust/horizon/commit/f0215473e3bed0abc33dd3f89f310978621d8479) Biome zoom: mix the shared corner prefixes once in quart_at_block - [`e25672e`](https://github.com/horizon-rust/horizon/commit/e25672ed4f9df646317be31e6dda22dfea742f57) Startup: split block assets into block data and render assets (#712) - [`05ecd87`](https://github.com/horizon-rust/horizon/commit/05ecd873d4949a504c5ad3f1ad9545dd7b3f02e8) Startup: show the title before the world bundle finishes loading (#712) - [`42d6546`](https://github.com/horizon-rust/horizon/commit/42d65465a4e18b0f99a6814b4ce33b17d75f34da) Startup stage 3a: split shared resources into core and rest (#712) - [`d9686fa`](https://github.com/horizon-rust/horizon/commit/d9686faf3596eb160b188fc0322e6d5a50b629ac) Startup stage 3b: publish world core before the simulation tail (#712) - [`a3cf97f`](https://github.com/horizon-rust/horizon/commit/a3cf97f2fafd31c69bf16cdbb5f5fa19ccac5324) Build the core renderer before starting audio - [`4e854f8`](https://github.com/horizon-rust/horizon/commit/4e854f8ee380457c03ae67511f05cd97b952bc9a) Format launcher assertions for the shared telemetry checks - [`a5edc14`](https://github.com/horizon-rust/horizon/commit/a5edc14b973a266c1b9b5b2ef5760e54ecf8d980) Startup stage 3c: keep world entry responsive while joining resources (#712) - [`08532d6`](https://github.com/horizon-rust/horizon/commit/08532d6b1fee64057d14f9f5d121f3c70c7a0022) Report the active tail phase while world entry waits ### 📊 Changes **213 files changed** (+8873 additions, -1936 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+2 -0) ➕ `benchmarks/server-mixed-2026-10-18/README.md` (+125 -0) ➕ `benchmarks/server-mixed-2026-10-18/load.txt` (+286 -0) ➕ `benchmarks/server-mixed-2026-10-18/mixed.json` (+367 -0) 📝 `crates/horizon-client/Cargo.toml` (+4 -0) 📝 `crates/horizon-client/examples/arrow_probe.rs` (+3 -2) 📝 `crates/horizon-client/examples/auto_jump_probe.rs` (+3 -2) 📝 `crates/horizon-client/examples/block_particles_fixture.rs` (+2 -0) 📝 `crates/horizon-client/examples/breaking_fixture.rs` (+3 -1) 📝 `crates/horizon-client/examples/chunk_bench.rs` (+3 -0) 📝 `crates/horizon-client/examples/lan_flat.rs` (+2 -0) 📝 `crates/horizon-client/examples/model_library_bench.rs` (+3 -2) 📝 `crates/horizon-client/examples/resource_memory.rs` (+5 -3) 📝 `crates/horizon-client/examples/save_batch_bench.rs` (+0 -1) 📝 `crates/horizon-client/examples/scene_collision_probe.rs` (+3 -2) 📝 `crates/horizon-client/examples/scene_motion_probe.rs` (+3 -2) 📝 `crates/horizon-client/examples/section_mesh_fixture.rs` (+7 -3) 📝 `crates/horizon-client/examples/streaming_bench.rs` (+3 -0) 📝 `crates/horizon-client/src/assets.rs` (+18 -25) 📝 `crates/horizon-client/src/bin/horizon-ctl/commands.rs` (+1 -1) _...and 80 more files_ </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Part of #803: "remote players' eating isn't shown". ## What - **The host sends `DATA_LIVING_ENTITY_FLAGS`** (entity data 8: 1 while using an item, 2 for the off hand), for the host and for each guest (`LivingEntity.startUsingItem` / `stopUsingItem`). The LAN tracker only sends entries that changed and never resets one that disappears, so the entry is always included. - **The host draws a guest's item use** on that guest's model: eating, a drawn bow, a raised shield. - **The guest's client applies the flags to other players.** Their use timer runs, and `Consumable.shouldEmitParticlesAndSounds` spawns the eating crumbs every 4 ticks after the first 21.875 % of the use, as every client does for every entity. The server sends the eating sounds. The other half of #803 (door prediction) is filed as #869. ## Tested New check `eating` in `tools/lan_e2e.py`: the host eats bread while the guest watches, then the other way round. Each side sees the other using an item over at least 3 samples, then stop. It fails on main. ## Self-check - `cargo fmt --all -- --check`: clean. - `cargo clippy --workspace --all-targets -- -D warnings`: clean on this branch. - `cargo test -p horizon-client -p horizon-protocol`: 1019 passed, 0 failed. This ran on an integration commit of the seven #848 / #803 PRs merged together. - `tools/lan_e2e.py`, on that integration build: - The #848 / #803 checks (`pvp hurt containers machines brewing chest clicks eat eating xp swings plates time light sleep`) all pass without `--server-thread`. - With `--server-thread`, all pass except `light`, which fails on main too. - `eating` fails on main. - Full `tools/lan_e2e.py` suite compared with main (e508a5ce binaries), with `--server-thread`: - Main fails `self walls crafting sign pvp trials xp light`. - The integration fails `self walls crafting sign pvp trials`. These fail on main too. - Full suite without `--server-thread`: later checks are order-dependent on main as well, and main fails `clicks sleep push`. After an earlier check, the guest's client and the server can disagree on where the guest stands, so later interactions are out of reach. - `tools/parity.py --changed origin/main` (95 harnesses) is running on the integration commit. The result will follow in a comment. 🤖 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-02 15:59:52 +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#2889
No description provided.