[PR #5105] [MERGED] lan_e2e: the owner keeps position and items over Save and Quit (reopen_player) #6077

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

📋 Pull Request Information

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

Base: main ← Head: fix/lan-e2e-reopen-player


📝 Commits (1)

  • 42f5148 lan_e2e: reopen_player, the owner keeps position and items over Save and Quit

📊 Changes

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

View changed files

📝 tools/lan_e2e.py (+47 -0)

📄 Description

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

What

A lan_e2e check, reopen_player: host and guest stand at their own spots (on a glass block, so nobody is falling) with their own items; the guest leaves, the host uses Save and Quit to Title, reopens the world and opens it to LAN again, the guest rejoins; both must be where they were with what they held.

Why

#4866 made save_game_metadata skip the player file whenever options.dedicated is set, and the integrated server thread sets it too, so single player stopped writing players/data/<singleplayer uuid>.dat (#5065, #5075). Nothing caught it: no check reopens a world and looks at the owner. The fix is the contributor's #5092; this is the regression check that would have caught it. Merge after #5092: until then the check fails on main (by design), and CI's lan_integration runs the whole lan_e2e suite.

Checked

  • On main at c3905131b (server thread): reopen_player fails as the reports say: the host is back at spawn holding nothing, the guest (saved through their own file) is fine:
    before={'host': {'position': [40.5, 120.0, -30.5], 'held': 7}, 'guest': {'position': [-25.5, 110.0, 45.5], 'held': 5}}, after={'host': {'position': [-8.5, 70.0, 8.5], 'held': 0}, 'guest': {'position': [-25.5, 110.0, 45.5], 'held': 5}}
  • With #5092 merged into main: reopen_player and recipe_settings pass (python3 tools/lan_e2e.py --check reopen_player --check recipe_settings).

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at c3905131b, 2 min 37 s)

Check Result
Scope ✅ 1 files, +47 −0
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 495 passed (2 min 37 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 4 affected, to run in CI (--quick): lan_integration, remote_fireball, remote_fireworks, server_player_sculk
Label skip-release

🤖 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/5105 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/lan-e2e-reopen-player` --- ### 📝 Commits (1) - [`42f5148`](https://github.com/horizon-rust/horizon/commit/42f51485f4ab83a162220eed079faedcffbfd01d) lan_e2e: reopen_player, the owner keeps position and items over Save and Quit ### 📊 Changes **1 file changed** (+47 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `tools/lan_e2e.py` (+47 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What A lan_e2e check, `reopen_player`: host and guest stand at their own spots (on a glass block, so nobody is falling) with their own items; the guest leaves, the host uses Save and Quit to Title, reopens the world and opens it to LAN again, the guest rejoins; both must be where they were with what they held. ## Why #4866 made `save_game_metadata` skip the player file whenever `options.dedicated` is set, and the integrated server thread sets it too, so single player stopped writing `players/data/<singleplayer uuid>.dat` (#5065, #5075). Nothing caught it: no check reopens a world and looks at the owner. The fix is the contributor's #5092; this is the regression check that would have caught it. **Merge after #5092**: until then the check fails on main (by design), and CI's `lan_integration` runs the whole lan_e2e suite. ## Checked - On main at c3905131b (server thread): `reopen_player` fails as the reports say: the host is back at spawn holding nothing, the guest (saved through their own file) is fine: `before={'host': {'position': [40.5, 120.0, -30.5], 'held': 7}, 'guest': {'position': [-25.5, 110.0, 45.5], 'held': 5}}, after={'host': {'position': [-8.5, 70.0, 8.5], 'held': 0}, 'guest': {'position': [-25.5, 110.0, 45.5], 'held': 5}}` - With #5092 merged into main: `reopen_player` and `recipe_settings` pass (`python3 tools/lan_e2e.py --check reopen_player --check recipe_settings`). **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at c3905131b, 2 min 37 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +47 −0 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 495 passed (2 min 37 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 4 affected, to run in CI (--quick): lan_integration, remote_fireball, remote_fireworks, server_player_sculk | | Label | `skip-release` | 🤖 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 06:11:27 +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#6077
No description provided.