[PR #425] [MERGED] LAN guest: the guest sees himself (own player model on a server) #2557

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

📋 Pull Request Information

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

Base: main ← Head: fix/lan-guest-self-model


📝 Commits (1)

  • dd856ec LAN guest: tick the player's own model on a server, so the guest sees himself

📊 Changes

1 file changed (+4 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game/remote.rs (+4 -0)

📄 Description

What

A LAN (or server) guest now sees himself: his own player model exists in third person (F5) and in the inventory's preview.

Why

The guest's client never built his own model on a server. tick_remote moved the avatar (tick_avatar) but never called tick_player_model, which the single-player tick calls every tick, so player_model stayed None: no body in F5 and an empty inventory preview. Vanilla's LocalPlayer ticks and renders the same way in single player and on a server.

How

tick_remote calls tick_player_model() after tick_avatar. The guest's status.server reports player_model so the test can see it.

How tested

Two-client test (tools/lan_e2e.py, its own PR, #424): a host and a guest, both real games offscreen on the Mac mini, the guest joining over 127.0.0.1. Each check is reported on its own, with screenshots of both sides.

check origin/main this branch alone all six fixes merged
self FAIL (no model) PASS PASS

Screenshots, before and after, both sides: ~/code/horizon-parity/shots/lan/ (before-*, *-after-*, after-all-*).

Self-check on the integration commit (origin/main + the six LAN fixes):

cargo fmt --all --check                                       clean
cargo clippy --workspace --all-targets -- -D warnings         clean (exit 0)
cargo test -p horizon-client                                  743 passed, 0 failed
tools/parity.py --changed origin/main                         81 harnesses depend on the change: 81 passed, 0 failed

What needs Ludovic

  • Nothing to decide. Not tested: two physical machines (every run was host and guest on one Mac over loopback).

Fixes #366 (one of six PRs; merge order: self-model, armour, chest lids, name tags, crafting, damage, then the test).

🤖 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/425 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/15/2026 **Status:** ✅ Merged **Merged:** 10/15/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/lan-guest-self-model` --- ### 📝 Commits (1) - [`dd856ec`](https://github.com/horizon-rust/horizon/commit/dd856ec5f69334e347b894f68e6c4ba1136c21ee) LAN guest: tick the player's own model on a server, so the guest sees himself ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/remote.rs` (+4 -0) </details> ### 📄 Description ## What A LAN (or server) guest now sees himself: his own player model exists in third person (F5) and in the inventory's preview. ## Why The guest's client never built his own model on a server. `tick_remote` moved the avatar (`tick_avatar`) but never called `tick_player_model`, which the single-player tick calls every tick, so `player_model` stayed `None`: no body in F5 and an empty inventory preview. Vanilla's `LocalPlayer` ticks and renders the same way in single player and on a server. ## How `tick_remote` calls `tick_player_model()` after `tick_avatar`. The guest's `status.server` reports `player_model` so the test can see it. ## How tested **Two-client test** (`tools/lan_e2e.py`, its own PR, #424): a host and a guest, both real games offscreen on the Mac mini, the guest joining over `127.0.0.1`. Each check is reported on its own, with screenshots of both sides. | check | origin/main | this branch alone | all six fixes merged | |---|---|---|---| | self | FAIL (no model) | PASS | PASS | Screenshots, before and after, both sides: `~/code/horizon-parity/shots/lan/` (`before-*`, `*-after-*`, `after-all-*`). **Self-check** on the integration commit (origin/main + the six LAN fixes): ``` cargo fmt --all --check clean cargo clippy --workspace --all-targets -- -D warnings clean (exit 0) cargo test -p horizon-client 743 passed, 0 failed tools/parity.py --changed origin/main 81 harnesses depend on the change: 81 passed, 0 failed ``` ## What needs Ludovic - Nothing to decide. Not tested: two physical machines (every run was host and guest on one Mac over loopback). Fixes #366 (one of six PRs; merge order: self-model, armour, chest lids, name tags, crafting, damage, then the test). 🤖 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:57:11 +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#2557
No description provided.