Stub missing SystemService / NpManager / NpWebApi2 imports (Palworld, PPSA23126) #2035
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!2035
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2035/head"
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?
@Ekt0re on GitHub · 2026-10-31 20:57 UTC · original
Ekt0re:Implement-m5CYKX20wfg-uaieF+glFPs-VgYczPGB5ss-KJdPcOGmK58-hOnIlcGrO6g→main· +57 −1 · 4 files · 3 commits · merged 2026-10-31 22:50 UTCStub missing SystemService / NpManager / NpWebApi2 imports (Palworld, PPSA23126)
Summary
Palworld (PPSA23126) reaches in-game but logs five unresolved imports as
Stubbed. This PR implements them so the game no longer hits the generic stub path:m5CYKX20wfgsceSystemServiceInitializePlayerDialogParamuaieF+glFPssceSystemServiceLaunchPlayerDialogVgYczPGB5sssceNpGetUserIdByAccountIdKJdPcOGmK58sceNpWebApi2PushEventDeleteFilterhOnIlcGrO6gsceNpWebApi2PushEventUnregisterCallbackRelated issue: #1960
KytyPS5-2026-10-27-ffc8137 (0.3.0)Changes
src/libs/libSystemService.cppSystemServiceInitializePlayerDialogParam()andSystemServiceLaunchPlayerDialog().PRINT_NAME()and returnOK. No system player dialog UI is available in the emulator, so there is nothing to show.LIB_FUNCinInitSystemService_1.src/libs/network.cpp/network.hNpGetUserIdByAccountId(uint64_t account_id, int* user_id)and declared it innetwork.h.account_id == 0oruser_id == nullptr→np_error_invalid_argumentnp_error_signed_outaccount_iddiffers from the primary user's fixed account ID (the same one returned byNpGetAccountIdA), or the primary user is a guest →np_error_invalid_id*user_idand returnsOK*user_idis left untouched on every error path.src/libs/libNet.cppNpManager::NpGetUserIdByAccountId(VgYczPGB5ss) inInitNet_1_NpManager.NpWebApi2PushEventDeleteFilter(KJdPcOGmK58): returnsNP_WEBAPI2_ERROR_INVALID_LIB_CONTEXT_IDforlib_ctx_id <= 0,NP_WEBAPI2_ERROR_LIB_CONTEXT_NOT_FOUNDfor an unknown context, andOKotherwise.NpWebApi2PushEventUnregisterCallback(hOnIlcGrO6g): logs and returnsOK.NP_WEBAPI2_ERROR_USER_CONTEXT_NOT_FOUND,NP_WEBAPI2_ERROR_PUSH_EVENT_FILTER_NOT_FOUNDandNP_WEBAPI2_ERROR_PUSH_EVENT_CALLBACK_NOT_FOUND.InitNet_1_NpWebApi2.Design notes
processPushEvents()is an empty body, so registered push-event callbacks are never invoked. Filters and callbacks are pure bookkeeping, so anOK-returning implementation is observably equivalent for a game that registers and later unregisters correctly.PUSH_EVENT_FILTER_NOT_FOUND,PUSH_EVENT_CALLBACK_NOT_FOUND,USER_CONTEXT_NOT_FOUND).is_busy) before deleting it. Not needed here, since callbacks are never run.Testing
References
np_manager.cpp(sceNpGetUserIdByAccountId): https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/np/np_manager.cppnp_web_api2.cpp: https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/np/np_web_api2/np_web_api2.cppnp_web_api2_context.cpp: https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/np/np_web_api2/np_web_api2_context.cppnp_web_api2_push_event.cpp: https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/np/np_web_api2/np_web_api2_push_event.cppnp_error.h: https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/np/np_error.h@coderabbitai[bot] on GitHub · 2026-10-31 21:05 UTC · original · edited 2026-10-31 21:28 UTC
No actionable comments were generated in the recent review.
d312921c-af59-45d6-88ca-e9de4ff7ca69Reviewing files that changed from the base of the PR and between
bbf96a5e9fand8ec432e109.src/libs/libNet.cppsrc/libs/libSystemService.cppsrc/libs/network.cppsrc/libs/network.hIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Walkthrough
The changes add an account-to-user lookup API, two WebAPI 2 push-event operations, and two player-dialog service stubs. The account lookup accepts one fixed account ID when PSN emulation is enabled and the configured primary user is not a guest. The push-event functions delete a filter after checking its library context, or return success for callback unregistration. Both player-dialog stubs log their names and return OK.
Suggested reviewers:
nmzikChange: Feature
Merge Risk:
Minimal · up to
8ec43Account lookup is consistent with existing local accounts. Push-event cleanup remains stubbed; no material merge-blocking risk is established.
Pre-merge checks:
4 ·
1
Full details: Title check
Explanation
The title names the three areas the PR touches (SystemService, NpManager, NpWebApi2) and the target title (Palworld, PPSA23126). It is a single, specific sentence with no vague terms. However, the title says "Stub", which fits only the two SystemService player-dialog functions and the NpWebApi2 push-event functions. It omits the main substantive change: the new sceNpGetUserIdByAccountId implementation with account and primary-user validation. The title is therefore partially related: it refers to real parts of the change, but it does not name the most important change, and it does not fully describe the NpManager logic.
Full details: Docstring Coverage
Explanation
Docstring coverage is 7.14% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 14 functions across 4 files.
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share