[PR #1905] [MERGED] Emit sculk movement events for each server player #3854

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

📋 Pull Request Information

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

Base: main ← Head: fix/server-player-sculk-events


📝 Commits (2)

  • 84a3f1e Emit sculk movement events for each server player
  • eb443cd Merge origin/main into fix/server-player-sculk-events

📊 Changes

3 files changed (+116 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game/lan_actions.rs (+5 -0)
📝 crates/horizon-client/src/game/sculk.rs (+24 -1)
➕ tools/test_server_player_sculk_parity.py (+87 -0)

📄 Description

🤖 Opened by rdbtCVS's AI agent (OpenAI Codex, GPT-6.1).

Walking server players did not activate sculk sensors: movement emission read the local Game.player, while integrated-server players live in the guest hub. LAN guests had the same gap.

Emit player events while each guest's authoritative state is installed. Keep step distance and previous health with that player across guest swaps, resetting the history for a new body; retain the existing local-player and mob emission paths. Vanilla reference: 26.3 Entity.move, applyMovementEmissionAndPlaySound and Player.getMovementEmission.

Add server_player_sculk integration parity. For host and guest in both hosting modes, install a sensor after setup movement settles, assert it stays inactive while stationary, walk using normal client input, verify movement on client and server, and require both clients to observe activation. Existing deterministic sculk parity remains alongside this execution-boundary regression.

This targets main independently. Only the server-player sculk fix and its regression harness are extracted from #1567.

Validation: all 4/4 host/guest × hosting-mode checks pass; the unchanged main comparison failed for both server-thread players and the in-frame guest, while its local host passed. The vanilla sculk oracle matches 435/435 scenarios on every tick.

Source checks below ran with lab.game_env() scratch homes. Broad parity is listed for CI; the two sculk harnesses ran separately.

pr_ready (tools/pr_ready.py --quick on archlinux, against origin/main at 8177a6f45, 3 min 31 s)

Check Result
Scope ✅ 3 files, +116 −1
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 287 passed (26 s)
rustfmt ✅ (5 s)
clippy ✅ (19 s)
tests: horizon-client ✅ 1241 passed (2 min 29 s)
doc tests ✅ 0 passed (2 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 25 affected, to run in CI (--quick): arrow, block_removal, command_exec, composter, crafter, dedicated_server, dispenser, locator_bar, mace, online_mode, sculk, section_mesh and 13 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 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/1905 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/server-player-sculk-events` --- ### 📝 Commits (2) - [`84a3f1e`](https://github.com/horizon-rust/horizon/commit/84a3f1ee1832967b8d1eed3b55dfae767efaeee9) Emit sculk movement events for each server player - [`eb443cd`](https://github.com/horizon-rust/horizon/commit/eb443cdacc3aa07199f2ecf4e1e79f78fcaec87c) Merge origin/main into fix/server-player-sculk-events ### 📊 Changes **3 files changed** (+116 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/lan_actions.rs` (+5 -0) 📝 `crates/horizon-client/src/game/sculk.rs` (+24 -1) ➕ `tools/test_server_player_sculk_parity.py` (+87 -0) </details> ### 📄 Description > 🤖 Opened by rdbtCVS's AI agent (OpenAI Codex, GPT-6.1). Walking server players did not activate sculk sensors: movement emission read the local `Game.player`, while integrated-server players live in the guest hub. LAN guests had the same gap. Emit player events while each guest's authoritative state is installed. Keep step distance and previous health with that player across guest swaps, resetting the history for a new body; retain the existing local-player and mob emission paths. Vanilla reference: 26.3 `Entity.move`, `applyMovementEmissionAndPlaySound` and `Player.getMovementEmission`. Add `server_player_sculk` integration parity. For host and guest in both hosting modes, install a sensor after setup movement settles, assert it stays inactive while stationary, walk using normal client input, verify movement on client and server, and require both clients to observe activation. Existing deterministic sculk parity remains alongside this execution-boundary regression. This targets `main` independently. Only the server-player sculk fix and its regression harness are extracted from #1567. Validation: all **4/4 host/guest × hosting-mode checks pass**; the unchanged `main` comparison failed for both server-thread players and the in-frame guest, while its local host passed. The vanilla sculk oracle matches **435/435 scenarios on every tick**. Source checks below ran with `lab.game_env()` scratch homes. Broad parity is listed for CI; the two sculk harnesses ran separately. **pr_ready** (`tools/pr_ready.py --quick` on archlinux, against origin/main at 8177a6f45, 3 min 31 s) | Check | Result | | --- | --- | | Scope | ✅ 3 files, +116 −1 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 287 passed (26 s) | | rustfmt | ✅ (5 s) | | clippy | ✅ (19 s) | | tests: horizon-client | ✅ 1241 passed (2 min 29 s) | | doc tests | ✅ 0 passed (2 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 25 affected, to run in CI (--quick): arrow, block_removal, command_exec, composter, crafter, dedicated_server, dispenser, locator_bar, mace, online_mode, sculk, section_mesh and 13 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 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:12:47 +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#3854
No description provided.