[PR #1731] [CLOSED] Client: apply remote living-entity attributes and simulation distance #3725

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1731
Author: @RVZO6
Created: 10/25/2026
Status: ❌ Closed

Base: main ← Head: fix/remote-entity-attributes


📝 Commits (1)

  • 5a73f65 Apply server attribute snapshots to displayed living entities

📊 Changes

10 files changed (+201 additions, -14 deletions)

View changed files

📝 crates/horizon-client/src/game/perspective.rs (+9 -0)
📝 crates/horizon-client/src/game/remote.rs (+23 -4)
📝 crates/horizon-client/src/lan/attributes.rs (+104 -0)
📝 crates/horizon-client/src/mobs.rs (+10 -0)
📝 crates/horizon-client/src/mobs/aquatic.rs (+1 -1)
📝 crates/horizon-client/src/mobs/control.rs (+2 -2)
📝 crates/horizon-client/src/mobs/finalize.rs (+16 -0)
📝 crates/horizon-client/src/mobs/living.rs (+25 -6)
📝 crates/horizon-client/src/mobs/nav.rs (+2 -1)
📝 crates/horizon-client/src/mobs/render.rs (+9 -0)

📄 Description

🤖 Opened by RVZO6's AI agent (OpenAI Codex, gpt-6.1-sol), not by RVZO6.

What and why

The client applied attribute snapshots only to its own player. Other living entities could retain their default scale and attributes. Apply received snapshots with the existing native-exact attribute evaluator, preserve per-entity computed values without applying local effects a second time, and use them for dimensions, rendering and client entity consumers. Keep the local player's displayed model in step with its scale too.

Also retain server simulation distance from both login and set_simulation_distance, matching ClientLevel.setServerSimulationDistance (which stores the supplied value). Expose both values through the control status for end-to-end verification.

Verification

  • Client lib/bins compile checks passed.
  • Snapshot replacement, sanitization and unknown-attribute tests passed.
  • The shared attribute evaluator passed 1,404,798 output-line comparisons against each of the pinned Java client and server jars (test_attribute_parity.py). This is existing evaluator coverage, not a claim that every new client consumer has that many tests.
  • A real isolated Java 26.3 server sent a pig's scale=2 and max_health=40; the Rust client retained both with zero decode errors. Login simulation distance=3 was retained.
  • Player scale=1.5 produced eye height=2.430000066757202 in both in-frame and server-thread single-player fixtures, using fresh test data directories.
  • Targeted Clippy passed on the initial patch with the existing unrelated boxed_local lint in streaming.rs allowed. Stock Clippy remains blocked by that pre-existing warning on local Rust 1.98.

All jars, generated reports and screenshots remain local. This does not add locally simulated server mob AI or fix the separate tag/feature/recipe gaps.

🤖 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/1731 **Author:** [@RVZO6](https://github.com/RVZO6) **Created:** 10/25/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/remote-entity-attributes` --- ### 📝 Commits (1) - [`5a73f65`](https://github.com/horizon-rust/horizon/commit/5a73f657c70b1c8cf12b6edcd266b914edc9bf59) Apply server attribute snapshots to displayed living entities ### 📊 Changes **10 files changed** (+201 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/perspective.rs` (+9 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+23 -4) 📝 `crates/horizon-client/src/lan/attributes.rs` (+104 -0) 📝 `crates/horizon-client/src/mobs.rs` (+10 -0) 📝 `crates/horizon-client/src/mobs/aquatic.rs` (+1 -1) 📝 `crates/horizon-client/src/mobs/control.rs` (+2 -2) 📝 `crates/horizon-client/src/mobs/finalize.rs` (+16 -0) 📝 `crates/horizon-client/src/mobs/living.rs` (+25 -6) 📝 `crates/horizon-client/src/mobs/nav.rs` (+2 -1) 📝 `crates/horizon-client/src/mobs/render.rs` (+9 -0) </details> ### 📄 Description > 🤖 Opened by RVZO6's AI agent (OpenAI Codex, gpt-6.1-sol), not by RVZO6. ## What and why The client applied attribute snapshots only to its own player. Other living entities could retain their default scale and attributes. Apply received snapshots with the existing native-exact attribute evaluator, preserve per-entity computed values without applying local effects a second time, and use them for dimensions, rendering and client entity consumers. Keep the local player's displayed model in step with its scale too. Also retain server simulation distance from both login and set_simulation_distance, matching ClientLevel.setServerSimulationDistance (which stores the supplied value). Expose both values through the control status for end-to-end verification. ## Verification - Client lib/bins compile checks passed. - Snapshot replacement, sanitization and unknown-attribute tests passed. - The shared attribute evaluator passed 1,404,798 output-line comparisons against each of the pinned Java client and server jars (`test_attribute_parity.py`). This is existing evaluator coverage, not a claim that every new client consumer has that many tests. - A real isolated Java 26.3 server sent a pig's scale=2 and max_health=40; the Rust client retained both with zero decode errors. Login simulation distance=3 was retained. - Player scale=1.5 produced eye height=2.430000066757202 in both in-frame and server-thread single-player fixtures, using fresh test data directories. - Targeted Clippy passed on the initial patch with the existing unrelated boxed_local lint in streaming.rs allowed. Stock Clippy remains blocked by that pre-existing warning on local Rust 1.98. All jars, generated reports and screenshots remain local. This does not add locally simulated server mob AI or fix the separate tag/feature/recipe gaps. 🤖 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:11:46 +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#3725
No description provided.