Repository navigation
feat(libSceNpScoreRanking): model the score requests offline - #9894
Merged
oneandonlydean merged 2 commits intoOct 24, 2026
Merged
oneandonlydean merged 2 commits into
oneandonlydean merged 2 commits into
Conversation
The 15 exports threw. They now keep title contexts and requests, run shadPS4's argument checks in its order, and answer the record, ranking and board calls with SCE_NP_ERROR_SIGNED_OUT, which also finishes the request, as shadPS4 does for a user with no connection.
Progress report (9e568a3 → 5090249)📈 System libraries: 43.48% (+0.13%, +15 implemented functions) ✅ 15 implemented
|
|
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.
Some 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.
|
12 tasks done
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
All 15 libSceNpScoreRanking exports threw. They now follow shadPS4's np_score.cpp offline:
sceNpScoreCreateNpTitleCtxrefuses the invalid service label0xFFFFFFFFbefore a null NpId; more than 32 title contexts or 32 requests isTOO_MANY_OBJECTS; an unknown id isINVALID_ID; deleting a title context deletes its requests.sceNpScoreAbortRequestfinishes an unfinished request withABORTED, which later calls on it return;sceNpScorePollAsyncreports running until a request has a result.includeSelf, size 24, its start rank), and the array sizes (INVALID_ALIGNMENTunless 0x80 per rank, 0x88 per player rank, 36 per NpId, 64 per comment and 200 per game info, the sizes shadPS4 asserts innp_score.h).SCE_NP_ERROR_SIGNED_OUTand finishes its request with it, in both forms. This is what shadPS4 does when the user has no connection: itsNpHandlerreturnsSIGNED_OUT, which the call records on the request and returns.No output is written; shadPS4 clears the rank, comment and info arrays before contacting its server, and that is left out. A null
boardInfothrows, because shadPS4 answers it by the title's SDK version. Nothing is measured on a PS5; the new debt file says so.#9874 declares other libSceNpScoreRanking exports and creates the same debt file;
pr_overlap.pyfinds no conflict inExport.cpp, and whichever lands second keeps both debt sections.Tested
Ubuntu 26.04.1, kernel 7.0.0-38, GCC 15.2.0, Release, full build with
BUILD_TESTING=ON. Windows was not compiled. No title was run.guest_np_score_offline(core/libs/tests/GuestNpScoreOffline.cpp): the 32-context and 32-request limits, deleting a context with its requests, abort before and after a result, polling, every argument check of the record, range, NpId, friends and board calls with the order between neighbouring checks, the 100, 101 and 102 boundaries,SIGNED_OUTfrom both forms with the request finished, and no output array or rank written.main(sceNpScoreCreateNpTitleCtx not implemented) and passes with this change. 22 mutations of the new code (each limit and boundary, each check order tested, each size check, the friend option rules, abort and result storage, the null poll result) each fail it.tools/check_conventions.py --base upstream/mainpasses;tools/pr_overlap.pylists only feat(prx): declare exports for 3 inventory-covered NP libraries #9874, described above.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)