[PR #6399] Splitscreen: join P1’s server or LAN world #6847

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6399
Author: @martipops
Created: 11/1/2026
Status: 🔄 Open

Base: main ← Head: split/fresh-servers


📝 Commits (10+)

  • bd7849a Splitscreen: the others join the server P1 is on
  • f7920f3 Merge branch 'split/fresh-controller-setup' into split/fresh-servers
  • 77b7eae Validate every splitscreen admission before opening a connection
  • 3a539aa Merge branch 'split/fresh-controller-setup' into split/fresh-servers
  • 1e3317a Merge branch 'split/fresh-controller-setup' into split/fresh-servers
  • ddacea4 Merge native mouse ownership fixes and native input regressions
  • 77cce1d Extend native input coverage to both players cameras
  • c00651d Keep native desktop tests opt-in with cleanup on setup failure
  • 7441ce9 Merge portable native mouse fixture updates
  • a74c130 Use position stability in native input regression checks

📊 Changes

10 files changed (+295 additions, -26 deletions)

View changed files

📝 crates/horizon-client/assets/horizon/lang/en_us.json (+2 -0)
📝 crates/horizon-client/assets/horizon/lang/fr_fr.json (+2 -0)
📝 crates/horizon-client/src/game/remote.rs (+5 -0)
📝 crates/horizon-client/src/game/server_packs.rs (+13 -0)
📝 crates/horizon-client/src/game/split.rs (+14 -2)
📝 crates/horizon-client/src/game/split/players.rs (+69 -22)
📝 crates/horizon-client/src/reconnect.rs (+1 -1)
📝 crates/horizon-client/src/server_packs.rs (+4 -0)
📝 docs/extras.md (+6 -1)
📝 tools/splitscreen_e2e.py (+179 -0)

📄 Description

🤖 Opened by martipops's AI agent (Codex, GPT-6), not by martipops personally.

What and why

When P1 joins an external server, extra local players connect to the same address as their own offline profiles. Duplicate names and offline profiles on online-mode servers are rejected before connecting. A server refusal returns a joining guest to its profile page; a later kick removes it. Leaving with P1 takes the other local players out too.

Guests follow P1's resource-pack answer. The launcher's Microsoft-account handoff remains a separate follow-up; offline profiles still cannot join online-mode servers.

The last part of the splitscreen Setup series, on top of #6395, #6397 and #6398 (all merged). Replaces closed #4202. Refs #2054 and #3541.

Kind

  • feature: something new for players (listed under New in the release notes)

Suggested label: feature.

Vanilla reference

Horizon-only. Java Edition has no local splitscreen; world simulation uses the existing integrated-server and multiplayer paths.

Other projects' code

None. This ports the remaining pieces of the existing splitscreen series in this repository.

Localization

The two online-mode messages (an offline profile can't join an online-mode server) are language keys in English and French.

Validation

  • Live (tools/splitscreen_e2e.py, macOS Metal) at this head: server, packs, dedicated_profiles and integrated_profiles pass (10 checks): guests join P1's server, one shared resource-pack download, inventory/health/XP/position kept across standalone joins and a dedicated-server restart, and LAN profile continuity.
  • The full suite (without the opt-in native_pointer) passed earlier on the series head.
  • Windows and Wayland have not been revalidated on this rebuild. Local vanilla parity was not run (CI's parity job picks the affected harnesses).

Self-check

Updated by martipops's AI agent (Claude Code, Claude Opus 5.5) after #6398 merged: main d2b1fd886 merged in, so this diff is this part alone.

pr_ready (tools/pr_ready.py --quick --base refs/hz/main on Mac, against refs/hz/main at d2b1fd886, 6 min 51 s)

Check Result
Scope ✅ 10 files, +295 −26
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 611 passed (42 s)
rustfmt ✅ (5 s)
clippy ✅ (1 min 14 s)
tests: horizon-client, horizon-client-lib ✅ 2080 passed (4 min 36 s)
doc tests ✅ 0 passed (3 s)
content root tests ➖ content root untouched
mod API up to date ✅ (10 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 Generated with Codex

🤖 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/6399 **Author:** [@martipops](https://github.com/martipops) **Created:** 11/1/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `split/fresh-servers` --- ### 📝 Commits (10+) - [`bd7849a`](https://github.com/horizon-rust/horizon/commit/bd7849a6cb6043d3d2236a6c74ab6322e8cb8d17) Splitscreen: the others join the server P1 is on - [`f7920f3`](https://github.com/horizon-rust/horizon/commit/f7920f30f7607cdf5d7ce5d54fb898ac78f1b1cc) Merge branch 'split/fresh-controller-setup' into split/fresh-servers - [`77b7eae`](https://github.com/horizon-rust/horizon/commit/77b7eae96d1541bf50cfa334dfbab38c801b5eb1) Validate every splitscreen admission before opening a connection - [`3a539aa`](https://github.com/horizon-rust/horizon/commit/3a539aa588df3b3941007b466447a6897af27cbd) Merge branch 'split/fresh-controller-setup' into split/fresh-servers - [`1e3317a`](https://github.com/horizon-rust/horizon/commit/1e3317a9e28faaaacd99e631643c1efe05a5e8ea) Merge branch 'split/fresh-controller-setup' into split/fresh-servers - [`ddacea4`](https://github.com/horizon-rust/horizon/commit/ddacea4d6f7b9447799baa03497e797c776ef323) Merge native mouse ownership fixes and native input regressions - [`77cce1d`](https://github.com/horizon-rust/horizon/commit/77cce1d217a59b0900b19b1b183ae6cb906c8910) Extend native input coverage to both players cameras - [`c00651d`](https://github.com/horizon-rust/horizon/commit/c00651d4d09bd946dc2d9f60b08bdafe42e96118) Keep native desktop tests opt-in with cleanup on setup failure - [`7441ce9`](https://github.com/horizon-rust/horizon/commit/7441ce96dad20df5ad6ec4289c27c93c25d99be6) Merge portable native mouse fixture updates - [`a74c130`](https://github.com/horizon-rust/horizon/commit/a74c13032b864de81ff5fbbd2ec8ca64322dc359) Use position stability in native input regression checks ### 📊 Changes **10 files changed** (+295 additions, -26 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/assets/horizon/lang/en_us.json` (+2 -0) 📝 `crates/horizon-client/assets/horizon/lang/fr_fr.json` (+2 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+5 -0) 📝 `crates/horizon-client/src/game/server_packs.rs` (+13 -0) 📝 `crates/horizon-client/src/game/split.rs` (+14 -2) 📝 `crates/horizon-client/src/game/split/players.rs` (+69 -22) 📝 `crates/horizon-client/src/reconnect.rs` (+1 -1) 📝 `crates/horizon-client/src/server_packs.rs` (+4 -0) 📝 `docs/extras.md` (+6 -1) 📝 `tools/splitscreen_e2e.py` (+179 -0) </details> ### 📄 Description > 🤖 Opened by martipops's AI agent (Codex, GPT-6), not by martipops personally. ## What and why When P1 joins an external server, extra local players connect to the same address as their own offline profiles. Duplicate names and offline profiles on online-mode servers are rejected before connecting. A server refusal returns a joining guest to its profile page; a later kick removes it. Leaving with P1 takes the other local players out too. Guests follow P1's resource-pack answer. The launcher's Microsoft-account handoff remains a separate follow-up; offline profiles still cannot join online-mode servers. The last part of the splitscreen Setup series, on top of #6395, #6397 and #6398 (all merged). Replaces closed #4202. Refs #2054 and #3541. ## Kind - [x] feature: something new for players (listed under New in the release notes) Suggested label: `feature`. ## Vanilla reference Horizon-only. Java Edition has no local splitscreen; world simulation uses the existing integrated-server and multiplayer paths. ## Other projects' code None. This ports the remaining pieces of the existing splitscreen series in this repository. ## Localization The two online-mode messages (an offline profile can't join an online-mode server) are language keys in English and French. ## Validation - Live (`tools/splitscreen_e2e.py`, macOS Metal) at this head: `server`, `packs`, `dedicated_profiles` and `integrated_profiles` pass (10 checks): guests join P1's server, one shared resource-pack download, inventory/health/XP/position kept across standalone joins and a dedicated-server restart, and LAN profile continuity. - The full suite (without the opt-in `native_pointer`) passed earlier on the series head. - Windows and Wayland have not been revalidated on this rebuild. Local vanilla parity was not run (CI's parity job picks the affected harnesses). ## Self-check Updated by martipops's AI agent (Claude Code, Claude Opus 5.5) after #6398 merged: main `d2b1fd886` merged in, so this diff is this part alone. **pr_ready** (`tools/pr_ready.py --quick --base refs/hz/main` on Mac, against refs/hz/main at d2b1fd886, 6 min 51 s) | Check | Result | | --- | --- | | Scope | ✅ 10 files, +295 −26 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 611 passed (42 s) | | rustfmt | ✅ (5 s) | | clippy | ✅ (1 min 14 s) | | tests: horizon-client, horizon-client-lib | ✅ 2080 passed (4 min 36 s) | | doc tests | ✅ 0 passed (3 s) | | content root tests | ➖ content root untouched | | mod API up to date | ✅ (10 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 Generated with [Codex](https://openai.com/codex/) 🤖 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>
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#6847
No description provided.