Skip to content

feat: Players window (A to join) and hot join in every game (experimental), on the shared MenuSettings state - #47

Merged
megabitt01 merged 3 commits into
megabitt01:master-chieffrom
kirklandsig:upstream/09-players
Nov 20, 2026
Merged

megabitt01 merged 3 commits into
megabitt01:master-chieffrom
kirklandsig:upstream/09-players

Conversation

@kirklandsig

Copy link
Copy Markdown

Players and hot join, PR 9 of the series: a Players window where each controller presses A to join, and hot join (experimental), so a player can join in the middle of a mission in every game. It works on your shared MenuSettings state, so the dashboard and the F1 menus always show the same players.

What players get

  • The Players window (debug overlay menu bar -> Players), with a card per player.
    • At MCC's menus, any controller presses A to join as the next player, B to leave, and Y to pick Spartan or Elite (Halo 2, Halo 3 and Reach, from the next game).
    • A join or a leave changes the players and their controllers in MenuSettings, as the Splitscreen window's player count does. Both menus show it, a game start applies it, and the next menu save writes it. The window itself writes no file, and keeps no imgui.ini entry either.
  • Hot join (a checkbox in the Players window, experimental, on until MCC closes): in a mission, a controller nobody plays with presses A, and the player comes in beside a teammate.
    • Halo 3, ODST, Reach and Halo 4 sign the player in, as the engine does for a controller signing in mid-game.
    • Halo CE and Halo 2 make their players as a mission loads. Their modules (halo1/hotjoin.cpp, halo2/hotjoin.cpp) start a hot-join mission with all four players and hold back the ones who haven't joined. So in those two games, hot join is chosen at MCC's menus before the mission.
    • In Halo CE the last player can also leave mid-mission (B in the Players window). In the other games, players leave at MCC's menus.
  • While hot join is chosen, every game start keeps split screen on, so a lone player 1 can be the first of several.
  • In a hot-join Halo CE or Halo 2 game, the player count changes only by joining and leaving. The dashboard's count and the Splitscreen window's -/+ are held (the dashboard plays its denied sound) until the game ends.

How it works

  • Joining (mcc/splitscreen/Join.cpp) polls the pads on the render thread and edits MenuSettings::State() under MenuSettings::Mutex().
    • A join waits for the next game tick.
    • The press a player joined with doesn't reach the game.
    • The joined count is published with a release store and read with acquire loads.
    • While the dashboard is open, it has the controllers and joins wait.
  • Bind in the Splitscreen window keeps the controllers while its player's page waits for a press. A press either side acted on isn't taken by the other.
  • Halo CE / Halo 2 hot join:
    • The game's local player count, which its views, HUD and input follow, is held at the joined count. Players held back don't spawn.
    • Where a joiner comes in:
      • Halo CE spawns players only at the mission's starting places, so a joiner comes in on a spot a teammate walked through lately.
      • Halo 2 uses its co-op respawn beside a teammate. Where the game gives none (Legendary, Iron), the joiner comes in at a starting place.
    • After a checkpoint revert, a joined player comes back beside a teammate again.
    • Halo 2's checkpoints stay safe with players held back. Its "everyone is dead" / "one is dead" accounting walks the whole players array as the game's own iterator reads it, skipping only the held-back local players, so network co-op teammates still count.
  • Small changes to your files:
    • MenuSettings::ApplySplitscreen keeps b_override on while hot join is chosen.
    • CStateMachine::handleOption refuses the count mid hot-join game.
    • The profile apply calls ApplySpecies, and the overlay frame calls HotJoinPoll.
  • Offsets: 10 new, all DefOffset with byte patterns (Halo CE 9, Halo 2 1). Each hot-join module is a feature of every offset it uses. On an MCC build missing one, that game's missions start as they do without hot join. check_gates.py passes.

Known limits

  • Halo CE's join trail can keep a spot from slow, level vehicle flight (a hovering Banshee), so a joiner could be placed in the air. The fix needs the unit's vehicle / ground state from CE's object layout, which I want to check in game first.
  • A player who joins mid-mission doesn't get a team change. The per-player team is applied at a game start, only to players within the count.
  • In Halo CE and Halo 2, hot join has to be chosen before the mission starts.

Testing (MCC 1.3528, Steam under Proton on Batocera, with virtual pads; not on Windows)

  • Build: clean on current master-chief (cea8227, after feat: spawn menus - vehicles, weapons and AI in front of any player (Halo CE, 2, 3, ODST), a menu per player on the D-pad #46). check_gates.py passes. The rebase brought no line changes.
  • Box, on MenuChange (master-chief 2c66a60 plus this series, 2026-10-27):
    • Halo 2 hot join: pad 2 joins mid-mission. Opening and closing F1 saved the joined count (menu file player count 1 -> 2).
    • Halo CE hot join: "controller 2 joins as player 2", and both views are right. F1's -/+ is held, with its tooltip; + does nothing.
    • Halo 2 Classic multiplayer, 2 players: loads and plays.
  • Box, on the older base (before MenuChange, with your files):
    • Players window at MCC's menus: pad 2's A joined (card "Controller 2, Spartan"), and B left.
    • Reach, 1-player mission with hot join on: pad 2's A gives "Hot join: controller 2 joins as player 2", the screen splits, and player 2 is in the mission.
  • Not exercised: a Reach join on MenuChange, and a Halo 2 checkpoint revert after a join. The test box isn't available now, so nothing has run since the rebases. Please give it a run on Windows. The quick check is the Players window at MCC's menus (pad 2: A, then B), then Halo 3 with hot join on and pad 2 pressing A mid-mission.
  • Codex adversarial review: approved in round 3 on this base.
    • Round 1 found Halo 2's death accounting dropping network co-op teammates (the second commit).
    • Round 2 found the CI gate check failing on the new players-array use (fixed in the feature) and the CE trail limit above.
    • The old version of this PR, before the rework onto MenuSettings, took 11 rounds.
    • The last commit only wraps the Hot join tooltip, which ran off a 1080p screen.

Doesn't depend on any open PR. The last one in the series is PR 10 (README and reverse-engineering notes), which I'll rewrite against your current README and the combined menu.

🤖 Generated with Claude Code

kirklandsig and others added 3 commits November 19, 2026 20:28
The Players window: every controller presses A to join as the next
player, B to leave and Y to pick Spartan or Elite. Hot join
(experimental) lets players join in the middle of a mission: a
controller nobody plays with presses A. Halo 3, ODST, Reach and Halo 4
sign the player in; Halo CE and Halo 2 make their players as a mission
loads, so their modules (halo1/hotjoin.cpp, halo2/hotjoin.cpp) start a
hot-join mission with all four and hold back the ones who haven't
joined. Nine new offsets with byte patterns (gen_patterns.py) for those
modules.

On the shared menu state (mcc/settings/MenuSettings): a join or a leave
changes the players and their controllers there, as the Splitscreen
window's player count does, so both menus show it, a game start applies
it, and a menu saving writes it. Every game start keeps split screen on
while hot join is chosen (ApplySplitscreen). In a hot-join Halo CE or
Halo 2 game the player count changes only by joining and leaving: the
dashboard's count and the Splitscreen window's -/+ are held.

The rest, as in my fork (kirklandsig/AlphaRing v2.0): Halo 2 checkpoints
stay safe with players held back, and a player who joined comes back
beside a teammate after a checkpoint revert in Halo CE and Halo 2; a
join waits for the next tick; the press a player joined with doesn't
reach the game; the joined count is published with a release store and
read with acquire loads; Bind in the Splitscreen window has the
controllers while its player's page waits, and a press either side acted
on isn't taken by the other.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… but the held-back ones

Account replaced the game's "every player is dead" and "one is dead"
flags (players globals +4/+5) with values worked out over the local
players who joined only. The game's own routine (0x6A16F0) walks the
whole players array, so in network co-op a remote teammate's death or
life was dropped: everyone could count as dead while a remote teammate
lived (a revert), or a remote teammate's death could stop vetoing
checkpoints. It now walks the array as the game's iterator (0x67B050)
reads it - count +0x3C, in-use bits, element size +0x24 - and skips only
the local players held back. Found by a Codex adversarial review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It was one long line and ran off a 1080p screen (seen on the test box).
It now wraps at 35 font sizes, as a tooltip paragraph.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@megabitt01
megabitt01 merged commit 33653c7 into megabitt01:master-chief Nov 20, 2026
1 check passed
@kirklandsig
kirklandsig deleted the upstream/09-players branch November 20, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants