feat(npmanager): implement sceNpGetUserIdByAccountId #2852
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2852"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-10T16:37:01Z.
What
Implements
sceNpGetUserIdByAccountId(account id, user id output), which still calledNotImplemented_nid_no_patch:SCE_NP_ERROR_INVALID_ARGUMENT.SCE_NP_ERROR_SIGNED_OUTwithout writing the output, assceNpGetAccountIdAdoes. NP is always signed out here, so no account id resolves to a user.The signature and errors follow shadPS4. The entry is in
docs/dev/debt/libSceNpManager.md, and NpManager is removed from the TechnicalDebt list of PPSA14632 exports declared without parameters (it was the last NpManager export there).Title that stops at it: Marvel's Guardians of the Galaxy (PPSA01748) calls it at startup, right after opening
/app0/PatchChunks.dat. On plainmain1c5e62878(run by @Tamalero, comment):With this body the title takes the signed-out result and continues to swapchain creation.
Tested
Linux (Arch, GCC), Release build, this commit on
maind92a8dad3:guest_np_managerandguest_np_reachabilitypass 3/3 (--repeat until-fail:3).guest_np_managerchecks both invalid-argument cases, the signed-out result, and that the output is left untouched; it aborts without this change.tools/check_conventions.py --base upstream/mainpasses.Rebase by @nikowolf123 (
b28239055, the two earlier commits squashed); the code is unchanged, only the debt entry moved to the per-library file.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T16:38:41Z.
Progress report (
d92a8da→56d8b4f)📈 System libraries: 88.74% (+0.03%, +1 implemented functions)
✅ 1 implemented
sceNpGetUserIdByAccountIdImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-10T19:18:06Z.
Does PPSA14632 call
sceNpGetUserIdByAccountIdon main? Please add thenot implementedline it stops at; the import alone isn't enough, and otherwise I'll close it until a title reaches it.Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-10T21:18:44Z.
Windows validation of the current head
0d5fb6a0merged ontomain262c0316.Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,
BUILD_TESTING=ON, full build including thelibstarget.guest_np_managerpasses 3/3 (--repeat until-fail:3).ctest -j8 -E "^agc_|video_out"passes 388/388.main'slibSceNpManager/Export.cppand this PR's test,guest_np_managerfails, so the coverage detects the previous behaviour.Validation run with Claude Code assistance.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T00:18:38Z.
Review: CHANGES_REQUESTED
Code, test and TechnicalDebt line look right (signature matches shadPS4, errors match the other NpManager calls,
guest_np_managerfails without the change here too).Open request from @oneandonlydean above, still unanswered: please add the
not implementedline where PPSA14632 stops atsceNpGetUserIdByAccountIdon main. Importing it isn't enough; without a title that reaches it this stays a stub nobody needs. Once that's posted this is ready to merge.Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-11T09:45:20Z.
No title I can run reaches
sceNpGetUserIdByAccountIdon currentmain(90c152e8):color views of several array slices are unsupported(#2102). My local test branch gets past that and other stops; there it played 385 s with scripted input, through New Game and a save, without callingsceNpGetUserIdByAccountId.not implementedline before it.I'm converting this to a draft until a title stops at it. Then I'll post the title ID and the log line and mark it ready.
Rebased onto
main(TechnicalDebt conflict resolved).Tested: Linux, GCC, Release, RX 9070 XT (RADV): full
ctest813/813 (4video_out_flip_*skipped) onmain90c152e8merged with this branch, #2847, #2849 and #2850;tools/check_conventions.pypasses.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by Tamalero on 2026-10-13T00:55:22Z.
@oneandonlydean A title that reaches it on current
main: Marvel's Guardians of the Galaxy (PPSA01748) callssceNpGetUserIdByAccountIdat startup, right after it opens/app0/PatchChunks.dat. On plainmain1c5e62878it aborts there:I then ran the same
mainwith only this function changed, and the body was identical to this PR's:INVALID_ARGUMENTfor account id 0 or a null output, otherwiseSIGNED_OUTwithout writing the output. The title takes the signed-out result and carries on. It creates its swapchain and opens about 560 files, then stops at an unrelated runtime-indexed image table (GetImageResource dword 0at pc0x588, which #757 and #758 cover).Linux (CachyOS), GCC 16, Release, RTX 4090; the title relinked with
--to-intel.Tested and written by Claude (AI assistant) on a contributor's machine.
Imported from boykopovar/AnyPS5. Originally posted by nikowolf123 on 2026-10-14T17:12:42Z.
@adriadam10 the open point in your review was a title that reaches this call on
main. @Tamalero has now posted one in this run: Marvel's Guardians of the Galaxy (PPSA01748) aborts at start-up withsceNpGetUserIdByAccountId not implementedon plainmain1c5e62878, and gets past that call with a body identical to this PR's. PPSA14632 did not reach it in @alfalfa-star's 385 s run. On currentmainthe call is still the throwing stub (Export.cpp#L241-L244 ate34c47921).What's left is the rebase. Against
e34c47921,git merge-treereports a conflict only indocs/dev/TechnicalDebt.md, caused by the per-library debt split and by #2853 editing the same PPSA14632 line.tools/debt_split.py resolverefuses to resolve it, because the commit also edits that PPSA14632 line, which stays in the index. Two edits by hand fix it:sceNpGetUserIdByAccountIdentry todocs/dev/debt/libSceNpManager.md, under "Unknown function info" aftersceNpSetTimeout, and change its link to../../../core/libs/prx/libSceNpManager/Export.cpp.NpManagerfrom the PPSA14632 line, asc867b89a2(#2853) did for NpWebApi2.sceNpGetUserIdByAccountIdis the last NpManager export declared without parameters.@alfalfa-star that rebase is ready on nikowolf123/AnyPS5
help/H1-2852-np-user-id-rebase. It is one commit,b28239055: your two commits squashed together, keeping your authorship and your feat message. Run this from yourfeat/np-user-id-by-account-idcheckout:Then add PPSA01748 and its log line to the description, and mark the PR ready. Maintainer edits are enabled on this PR, so a maintainer can also push the rebase.
Checks on
b28239055:guest_np_managerandguest_np_reachabilitypass 3/3 (--repeat until-fail:3).main'sExport.cppand the PR's test,guest_np_manageraborts withsceNpGetUserIdByAccountId not implemented.tools/check_conventions.pyfrommainpasses with this PR's title and body.a453108cfand merges cleanly intoe34c47921.@Tamalero you said #757 and #758 cover the next stop (
GetImageResource dword 0at pc0x588). Both are merged now, so if you have time, a rerun of currentmainplus this PR would show where Guardians stops next.AI-assisted: written with Claude Code. I checked the stub, the debt index and
docs/dev/debt/libSceNpManager.mdonmaine34c47921, as well as the PR's diff, this thread and #2853's commit. I ran:git merge-tree;tools/debt_split.py resolverefused, so I resolved the conflict by hand;tools/check_conventions.py;guest_np_managerandguest_np_reachability, on the rebased commit and withmain'sExport.cpp.I did not run the title.
Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-15T06:14:52Z.
Thanks @nikowolf123 for the rebase and @Tamalero for the PPSA01748 run. I force-pushed
b28239055onto currentmain(now56d8b4f68). The code is unchanged and the debt entry is indocs/dev/debt/libSceNpManager.md. The description now has PPSA01748 and its log line, and the PR is marked ready.Rechecked here on Linux (Arch, GCC, Release,
maind92a8dad3+ this commit):guest_np_managerandguest_np_reachabilitypass 3/3, andtools/check_conventions.pypasses.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T06:42:34Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/TechnicalDebt.mdL23core/libs/tests/GuestNpManager.cppL9, L69Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
docs/dev/TechnicalDebt.mddocs/dev/TechnicalDebt.mddocs/dev/TechnicalDebt.mddocs/dev/TechnicalDebt.mddocs/dev/TechnicalDebt.mddocs/dev/TechnicalDebt.mddocs/dev/TechnicalDebt.mddocs/dev/TechnicalDebt.mddocs/dev/TechnicalDebt.mddocs/dev/TechnicalDebt.mddocs/dev/TechnicalDebt.mddocs/dev/TechnicalDebt.mddocs/dev/TechnicalDebt.mddocs/dev/TechnicalDebt.mddocs/dev/TechnicalDebt.mddocs/dev/TechnicalDebt.mddocs/dev/TechnicalDebt.mddocs/dev/TechnicalDebt.mddocs/dev/TechnicalDebt.mddocs/dev/TechnicalDebt.mddocs/dev/TechnicalDebt.mddocs/dev/TechnicalDebt.mddocs/dev/TechnicalDebt.mddocs/dev/TechnicalDebt.mddocs/dev/TechnicalDebt.mddocs/dev/TechnicalDebt.mddocs/dev/TechnicalDebt.mddocs/dev/TechnicalDebt.mdcore/libs/tests/GuestNpManager.cppImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-15T11:03:26Z.
Review: APPROVED
Checked: signature and errors match shadPS4 and the other NpManager calls;
guest_np_managerfails without the change and passes with it; scoped ctest (34 tests) is green on this head merged onto main. The open point is settled by @Tamalero's PPSA01748 run, which stops at this call on plainmainand gets past it with this body. Debt entry and conventions look right; merging once the full CI run is green.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-15T11:44:01Z.
Checked: signature and errors match shadPS4 and the other NpManager calls;
guest_np_managerfails without the change and passes with it; the scoped test run (34 tests) is green on this head merged onto main. The open point is settled by @Tamalero's PPSA01748 run, which stops at this call on plainmainand gets past it with this body. The one red in the full Build (agc_pending_key_stores) is unrelated to this diff (NpManager and docs only) and the same sha passed in another run; merging once the rerun is green.