Repository navigation
fix: startup crash with split screen saved on; Game Pass install notes - #42
Open
adrianpabon wants to merge 1 commit into
Open
adrianpabon wants to merge 1 commit into
adrianpabon wants to merge 1 commit into
Conversation
CGameManager::Initialize hooked its eight table functions one at a time, creating and enabling each before the next. The get_player_profile detour (enabled first) reaches ppOriginal.get_xbox_user_id through get_xuid(0), which is only filled when the third hook is created. With split screen saved on, MCC asks for a profile during that window and calls through null (ACCESS_VIOLATION executing 0x0 right after "initialized GameEngine"). Hook::Detour now creates every hook before enabling any, so all originals are set first, and get_xuid returns 0 instead of calling an unset original. Also drops the "only supports the steam version" warning (the Game Pass 1.3528 executable is handled through pattern mode) and adds the Game Pass install path and no-EAC Start menu entry to the README.
JCorcho
pushed a commit
to JCorcho/AlphaRing
that referenced
this pull request
Nov 3, 2026
…eam PR megabitt01#42) Cherry-picked from megabitt01/AlphaRing pull request megabitt01#42 (9ac3d87, by Adrián Pabón Mendoza): Hook::Detour creates every hook before enabling any, and get_xuid returns 0 while the originals aren't set yet, so MCC asking for a profile during CGameManager::Initialize no longer calls through null. Drops the Steam-only warning; Game Pass notes in the README. (cherry picked from commit 9ac3d87) Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Gt378zyZWqKFkyBtAuBoBn
|
Thanks for this. The cause is right and so is the fix. Notes from reading it against current
Looks good to merge from my side. |
kirklandsig
added a commit
to kirklandsig/AlphaRing
that referenced
this pull request
Nov 20, 2026
…klist megabitt01#49, megabitt01#42 review) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What happened
With split screen saved on (
alpha_ring_menu.binwith override on), MCC crashed at startup right afterMCC: initialized GameEngine:The same build started fine when split screen was saved off.
Cause
CGameManager::Initializehooks eight table functions throughHook::Detour, which created and enabled each hook before creating the next.get_player_profileis hooked first, and with override on it callsget_xuid(0)→ppOriginal.get_xbox_user_id, which is only filled when the third hook is created. If MCC asks for a profile during that window, it calls through null.Fix
Hook::Detour(Detour_t)creates every hook first (so everyppOriginalis set) and only then enables them.CGameManager::get_xuidreturns 0 instead of calling an unset original (the callers already handle 0).Also
== This version only supports the steam version of the game ==warning: on the Game Pass build (MCCWinStore-Win64-Shipping.exe1.3528.0.0) pattern mode finds all 11 MCC offsets, and the values match the ones verified by hand in Windows Store / Game Pass: version check reads the on-disk exe, which has no version resource — assert then aborts the game #19 (0x1DF35C,0x1DF6C0,0x5852BC,0x376558,0x373764,0x3E4EFF8,0x3E4EFF7,0x3DC9800,0x3E4FFC0,0x3E4F018).Tested
Game Pass, MCC 1.3528.0.0, Windows 11, Release build from this branch:
3c5520b): crash above on startup with split screen saved on.AlphaRing initialization completeand the main menu.tools/offsets/check_gates.pypasses.Relates to #19.