Repository navigation
Conversation
sceNpCmpOnlineId compares online ids; NpMatching2 and NpSignaling keep their initialized state; sceNpLookupCreateTitleCtx reports a signed-out user. The other imports these titles need from the libraries this branch adds are declared and throw. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 19, 2026
sceNpCmpNpId matches two NpIds when their online ids match and their opt and reserved bytes are equal. NpId takes the SDK's 36-byte layout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e trophy package Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 20, 2026
Owner
|
Thanks @savvaniss. boykopovar#6977 is now a draft integration branch, and its own work is split into boykopovar#9429 to boykopovar#9433 (details). The maintainers asked that the branch not land anything without its own review, so could you open this upstream against AI-assisted: yes (Claude Code) 🤖 Generated with Claude Code |
This was referenced Oct 21, 2026
Author
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
On Windows a converted PS4 executable loads only when every import resolves. Risk and Monopoly Plus from CUSA03312 (Hasbro Family Fun Pack) import functions that this branch's PS4 libraries do not export yet, and call a few of them while they start. This targets boykopovar#6977's branch, beside #1, because these libraries exist only here.
Implemented, following the signed-out model the NP libraries already use:
sceNpCmpOnlineId(libSceNpCommon) compares the first 16 characters of two online ids. Equal ids return 0, othersSCE_NP_UTIL_ERROR_NOT_MATCH(0x80550609), and a null id returnsINVALID_ARGUMENT, as shadPS4'snp_common.cppdoes.sceNpCmpNpId(libSceNpCommon) matches two NpIds when their online ids match as above and theiroptandreservedbytes are equal, with the same results.NpIdtakes the SDK's 36-byte layout (online id, 8optbytes, 8reservedbytes); it was 24 bytes. UnityNpToolkit in Boggle and Trivial Pursuit Live! zeroes a 36-byte NpId, fills it withsceNpGetNpIdand compares it with this function.sceNpMatching2InitializeandsceNpMatching2Terminatekeep the library state. Initialization checks the parameter'ssizefield (0x28, or 0x30 with an SSL pool) and returnsALREADY_INITIALIZEDa second time; termination returnsNOT_INITIALIZEDwhen nothing was initialized. No thread starts and no server is reached. Monopoly Plus initializes it at startup.sceNpSignalingInitializeandsceNpSignalingTerminatekeep the library state the same way, withALREADY_INITIALIZEDandNOT_INITIALIZED. Monopoly Plus initializes it at startup.sceNpTrophyGetGameInfo,sceNpTrophyGetGroupInfoandsceNpTrophyGetTrophyInfo(libSceNpTrophy) answer for a registered context from the trophy package the library already opens. They threwnot implemented. UnityNpToolkit in Boggle and Trivial Pursuit Live! asks for the game info when it registers its trophy context and allocates one request per trophy fromnumTrophies, so a count of 0 leaves it reading an unset request. The configurationTROPCONF.ESFMis encrypted, so the trophy count is the number ofTROPnnn.PNGicons, the group count the number ofGRnnn.PNGicons, and unlocks come from the stored trophy state. Grades are reported as unknown, names and descriptions are empty, and progress is unlocked trophies over all trophies. Asizefield other than the SDK's (0x4a0, 0x20, 0x4a0, 0x28, 0x498 and 0x18) or two null outputs returnINVALID_ARGUMENT, an unregistered contextNOT_REGISTERED, and an id past the packageINVALID_TROPHY_IDorINVALID_GROUP_ID. The base game group (-1) is answered with the game's counts; an existing group, and trophy info in a package with groups, still throw, because group membership is listed only in the configuration. The debt file records each of these.sceNpLookupCreateTitleCtxreturnsSCE_NP_ERROR_SIGNED_OUT, orSCE_NP_COMMUNITY_ERROR_INSUFFICIENT_ARGUMENTfor a null NP id: a lookup context belongs to a signed-in user, and none is. Monopoly Plus creates one from the NP idsceNpGetNpIdleft zeroed, and goes on without it.Declared, each throwing
NotImplemented_nid_no_patch:sceNpMatching2AbortContextStart,GrantRoomOwner,SignalingGetConnectionStatusandSignalingGetPingInfo;sceNpSignalingDeactivateConnection;sceNpLookupAbortRequest,CreateAsyncRequestandPollAsync;sceNpTrophyAbortHandleandsceInvitationDialogClose;sceGnmMapComputeQueueWithPriority,sceGnmDrawInitDefaultHardwareState200andsceGnmUpdate{Ps,Vs,Gs,Hs}Shader.Risk calls the GNM ones at startup. Locally I run stand-ins for them, which #1 lists; I don't know the 2.00 default-state sequence, or the context-register packets the update functions leave. The debt file of each library records what it gets here.
Tested
Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, on boykopovar#6977's head
93eeee014.guest_np_ps4_imports(new) covers each implemented function, including every error above and an NpId that differs only inoptor only inreserved, and checks that each declared NP function throws<name> not implemented. It passes, and the GNM, NpTrophy and InvitationDialog libraries build.sceNpSignalingInitialize,sceNpMatching2InitializeandsceNpLookupCreateTitleCtxto its loading screen.sceNpCmpNpId not implemented; with the comparison it goes on to render its first scene (the next stop is a multisampled color target).tools/check_conventions.py --base 93eeee014passes.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code