[PR #5675] [MERGED] Splitscreen: profiles and the saved enable switch #6430

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5675
Author: @martipops
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: split/fresh-profiles-switch


📝 Commits (2)

  • d9350b5 Splitscreen: enable joining and choose local profiles
  • 9d3c50d Keep the guest profile action distinct from the enable page

📊 Changes

12 files changed (+958 additions, -140 deletions)

View changed files

📝 crates/horizon-client-render/src/extras.rs (+23 -5)
📝 crates/horizon-client-render/src/options_ui.rs (+27 -0)
📝 crates/horizon-client/assets/horizon/lang/en_us.json (+4 -0)
📝 crates/horizon-client/src/game/agent.rs (+26 -2)
📝 crates/horizon-client/src/game/screens.rs (+97 -43)
📝 crates/horizon-client/src/game/split.rs (+72 -16)
📝 crates/horizon-client/src/game/split/hud.rs (+12 -25)
📝 crates/horizon-client/src/game/split/pads.rs (+19 -1)
📝 crates/horizon-client/src/game/split/players.rs (+265 -46)
📝 crates/horizon-client/src/game/split/windows.rs (+227 -1)
📝 docs/extras.md (+14 -0)
📝 tools/splitscreen_e2e.py (+172 -1)

📄 Description

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

Players can enable splitscreen in Horizon Settings, join with a controller, and pick or create an offline profile. A guest can switch profiles from its pause menu; bumpers choose where the joining view goes. Each profile keeps its own options, and a profile already playing cannot be selected twice.

This replaces closed #4163, rebuilt on main after #3825 and #3826 merged. The compositor, audio, controller, windows and profile-page model are already merged; this diff contains the runtime profiles-and-switch increment. Refs #2054 and #3541. The Setup screen, its mouse/controller controls, server joining and Microsoft account handoff follow in separate PRs.

  • The saved switch defaults off. Enabling it alone keeps P1 on its normal renderer.
  • HORIZON_SPLIT is a transient testing override and does not change the saved switch.
  • Profile folder names are checked before paths are constructed.
  • Main's server-dialog rows, report/feedback actions and keyboard navigation are preserved alongside the guest's translated Splitscreen Settings action.

The approximately 960 added lines include live scenarios, regressions and docs; this is the condensed profiles-and-switch cut approved on #3541.

Vanilla reference

Horizon-only feature, off by default. Gameplay continues through the existing integrated-server/client path.

Validation

pr_ready --quick passes: 511 Python tests, 2,456 Rust tests, formatting, and all-target Clippy for the normal and no-default-features configurations. The fast game/ctl build passes. All nine live scenarios pass on macOS with HORIZON_FLAT_DRAWS=1: alone, join, four, windows, picker, cancel, switch, bumpers and toggle. The switching scenario verifies saved experience after changing profiles and returning.

The default Metal terrain path fails at startup with a wgpu index-buffer bounds error. A separate build of unmodified main (ba8b5b414), with splitscreen variables unset, reproduces the same failure. The live run above uses the renderer's existing HORIZON_FLAT_DRAWS=1 path; this PR does not change renderer source. Physical controller feedback, Windows and Wayland have not been revalidated on this head.

Current guest profile picker (screenshot kept on a separate evidence branch):

Guest profile picker

pr_ready (tools/pr_ready.py --quick --base upstream/main on Mac, against upstream/main at ba8b5b414, 5 min 13 s)

Check Result
Scope ⚠️ 12 files, +958 −140; 1084 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 511 passed (41 s)
rustfmt ✅ (5 s)
clippy ✅ (20 s)
tests: horizon-client, horizon-client-render ✅ 2456 passed (4 min 5 s)
doc tests ✅ 0 passed (2 s)
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 ➖ 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


🔄 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/5675 **Author:** [@martipops](https://github.com/martipops) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `split/fresh-profiles-switch` --- ### 📝 Commits (2) - [`d9350b5`](https://github.com/horizon-rust/horizon/commit/d9350b549e3a008dd98535c86a0451b8fea71258) Splitscreen: enable joining and choose local profiles - [`9d3c50d`](https://github.com/horizon-rust/horizon/commit/9d3c50dd6c132408d3f76cdc09d2b4b50209c596) Keep the guest profile action distinct from the enable page ### 📊 Changes **12 files changed** (+958 additions, -140 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/extras.rs` (+23 -5) 📝 `crates/horizon-client-render/src/options_ui.rs` (+27 -0) 📝 `crates/horizon-client/assets/horizon/lang/en_us.json` (+4 -0) 📝 `crates/horizon-client/src/game/agent.rs` (+26 -2) 📝 `crates/horizon-client/src/game/screens.rs` (+97 -43) 📝 `crates/horizon-client/src/game/split.rs` (+72 -16) 📝 `crates/horizon-client/src/game/split/hud.rs` (+12 -25) 📝 `crates/horizon-client/src/game/split/pads.rs` (+19 -1) 📝 `crates/horizon-client/src/game/split/players.rs` (+265 -46) 📝 `crates/horizon-client/src/game/split/windows.rs` (+227 -1) 📝 `docs/extras.md` (+14 -0) 📝 `tools/splitscreen_e2e.py` (+172 -1) </details> ### 📄 Description > 🤖 Opened by martipops's AI agent (Codex, GPT-6), not by martipops personally. Players can enable splitscreen in Horizon Settings, join with a controller, and pick or create an offline profile. A guest can switch profiles from its pause menu; bumpers choose where the joining view goes. Each profile keeps its own options, and a profile already playing cannot be selected twice. This replaces closed #4163, rebuilt on main after #3825 and #3826 merged. The compositor, audio, controller, windows and profile-page model are already merged; this diff contains the runtime profiles-and-switch increment. Refs #2054 and #3541. The Setup screen, its mouse/controller controls, server joining and Microsoft account handoff follow in separate PRs. - The saved switch defaults off. Enabling it alone keeps P1 on its normal renderer. - `HORIZON_SPLIT` is a transient testing override and does not change the saved switch. - Profile folder names are checked before paths are constructed. - Main's server-dialog rows, report/feedback actions and keyboard navigation are preserved alongside the guest's translated Splitscreen Settings action. The approximately 960 added lines include live scenarios, regressions and docs; this is the condensed profiles-and-switch cut approved on #3541. ## Vanilla reference Horizon-only feature, off by default. Gameplay continues through the existing integrated-server/client path. ## Validation `pr_ready --quick` passes: 511 Python tests, 2,456 Rust tests, formatting, and all-target Clippy for the normal and no-default-features configurations. The fast game/ctl build passes. All nine live scenarios pass on macOS with `HORIZON_FLAT_DRAWS=1`: alone, join, four, windows, picker, cancel, switch, bumpers and toggle. The switching scenario verifies saved experience after changing profiles and returning. The default Metal terrain path fails at startup with a wgpu index-buffer bounds error. A separate build of unmodified main (`ba8b5b414`), with splitscreen variables unset, reproduces the same failure. The live run above uses the renderer's existing `HORIZON_FLAT_DRAWS=1` path; this PR does not change renderer source. Physical controller feedback, Windows and Wayland have not been revalidated on this head. Current guest profile picker (screenshot kept on a separate evidence branch): ![Guest profile picker](https://raw.githubusercontent.com/martipops/horizon/478cae08020c48b9002b3f7f3c7525d8b58b5b07/docs/media/splitscreen-profile-picker.png) **pr_ready** (`tools/pr_ready.py --quick --base upstream/main` on Mac, against upstream/main at ba8b5b414, 5 min 13 s) | Check | Result | | --- | --- | | Scope | ⚠️ 12 files, +958 −140; 1084 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 511 passed (41 s) | | rustfmt | ✅ (5 s) | | clippy | ✅ (20 s) | | tests: horizon-client, horizon-client-render | ✅ 2456 passed (4 min 5 s) | | doc tests | ✅ 0 passed (2 s) | | 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 | ➖ 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/) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:20:29 +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#6430
No description provided.