libSceNgs2.native: custom rack module id 0x20 (PitchShift) is not implemented (Trails in the Sky 2nd Chapter, PPSA35169) #4246
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Dextroid17 on 2026-10-12T02:15:40Z.
Trails in the Sky 2nd Chapter (PPSA35169) crashes well into gameplay setup on an unimplemented NGS2 custom module (id
0x20)Repro. Relinked and launched PPSA35169 against a fresh
upstream/mainbuild (7a84b2226, plus thelibkernel/libSceAmprfixes from #4214). The title now gets much further than before — Vulkan device/swapchain created, save data touched, 16 game threads running — before aborting:This throw is the intended, documented behavior of
Ngs2CheckCustomRack(core/libs/prx/libSceNgs2.native/src/Custom.cpp:20, described indocs/dev/TechnicalDebt.md's "NGS2 custom submixer rack" entry): only module id0x1f(UserFx2) is accepted today; every other module id intentionally throws. This report names the next module id a real title actually needs.What the title is asking for (captured with temporary local instrumentation, not included in this diff): a custom rack with
num_buffers=1,num_modules=1,max_ports=1, and its one module is{module_id=0x20, source_buffer_id=0, extra_buffer_id=0, dest_buffer_id=0, state_offset=0, state_size=0, option->size=8}.A lead, not a confirmed answer. No public reference — shadPS4's
ngs2_custom.h, KytyPS5, SharpProspero, or any existing AnyPS5 fork — names module id0x20anywhere (gh search codeacross all of them returns nothing but this project's ownUserFx2-only check). shadPS4's header does define several other built-in custom-module option structs without assigning them numeric ids:Envelope,Reverb,Chorus,PeakMeter,Delay,PitchShift. Of those, onlyOrbisNgs2CustomPitchShiftModuleOption({size; quality;}, twou32s) matches the measured 8-byte option size exactly —Envelope/Reverb/Chorus/PeakMeterare all 12 bytes,Delayis larger. The header also has no...ModuleStatestruct forPitchShift(unlikeEnvelope/Compressor/PeakMeter/NoiseGate), consistent with this module reportingstate_size=0. That makes "pitch shift" a reasonable hypothesis for what0x20is — but it is still a hypothesis: no implementation is proposed here, since guessing the actual DSP algorithm would risk exactly the "plausible but wrong" resultdocs/dev/CONVENTIONS.mdwarns against. AnyPS5 has not implemented any of these six built-in module types yet (onlyUserFx2, a passthrough callback, exists) — confirmed via a full grep forPitchShift/Envelope/etc. acrosslibSceNgs2.native, so there is no existing partial implementation to extend either.No existing claim found —
gh search issues/gh search prsfor "NGS2 custom module" and "0x20 ngs2" return nothing relevant.This is flagged as a research item, not implemented here: it needs either a public reference that names module id
0x20, or real PS5 hardware/firmware measurement of what a module id0x20custom rack module actually does.Written with AI assistance.
Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-12T02:17:44Z.
Dug further into the trusted sources this project cites (
references/trusted-sources.md) looking for a name for module id0x20— all dead ends, recording them so nobody re-walks this:ngs_internal.h(the original PS VitasceNgs, which NGS2 descends from) only typedefsSceNgsModuleIDas an opaqueuint32; it never enumerates the actual built-in module id constants.red-prig/fpPS4) doesn't reimplement NGS2 at all — its own issue tracker says titles need the real console-dumpedlibSceNgs2.prxdropped intosce_module. No source to mine there.gh search codeacross all of GitHub for the module id or its likely constant name returns nothing beyond this project's own fork.Per
references/local-firmware.md, pulling this from an actual PS5 firmware dump isn't an option either (encrypted, no public decryption path above the exploited version ceiling, and the project's own policy is to never build a contribution on PUP-extracted data regardless).This confirms the module-id-0x20 identity is a genuine public-source dead end, not something a more thorough search would turn up. The PitchShift hypothesis in the issue body (struct-size match) is the best lead available without console hardware access or someone publishing a reference that doesn't exist yet.
Written with AI assistance.
Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-12T02:19:40Z.
Asking directly: does anyone recognize NGS2 custom module id
0x20?To recap the concrete, falsifiable question — everything needed to answer it is in the issue body and the comment above:
module_id=0x20, an 8-byte option struct,state_size=0.ngs2_custom.hnames several built-in module option structs (Envelope, Reverb, Chorus, PeakMeter, Delay, PitchShift) but never assigns them numeric ids — onlyUserFx2(0x1f) has a known id, from KytyPS5.If you've worked with PS4/PS5 NGS2 internals, reverse-engineered a
libSceNgs2.sprx, or have access to any SDK documentation that names the built-in custom module ids, a pointer here would directly unblock this title (and likely others using the same built-in effects). Thanks for any lead, even a partial one.Written with AI assistance.
Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-12T03:58:05Z.
Reopened — this was closed by accident while the question is still open, so the ask is live again.
The question, restated in one place: the title (Trails in the Sky 2nd Chapter, PPSA35169) creates a custom NGS2 rack with one module —
module_id=0x20, an 8-byte option struct,state_size=0. shadPS4'sngs2_custom.hnames the built-in option structs (Envelope, Reverb, Chorus, PeakMeter, Delay, PitchShift) but assigns them no numeric ids; onlyUserFx2(0x1f) has a known id, from KytyPS5. Struct-size matching points at PitchShift, but that is unconfirmed.If you have worked with PS4/PS5 NGS2 internals, or know of published documentation that names the built-in custom module ids, a pointer here would help move this title forward. A partial lead helps too.
Written with AI assistance.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-21T21:52:00Z.
Research update from the PS5 12.70 NGS2 module analysis on #8039: custom module
0x20is PitchShift. The firmware entry specifies an 8-byte option whose second word must be 0, plus 8 bytes of module state. This issue's captured rack reportsoption->size=8butstate_size=0, so the state-size discrepancy still needs resolving before treating that capture as a valid PitchShift configuration. The module identity is now known, but its processing behavior is not established, so this does not support a passthrough/no-op implementation.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-21T23:11:23Z.
Correction to my earlier note: the PS5 12.70 rack-create observation in #8039 says it rejects a module state size only when it is non-zero and differs from the module’s own size. Therefore
state_size=0is accepted as the default and does not make this title’s captured PitchShift rack invalid. The module is identified as PitchShift and its option contract is partly known, but its DSP behavior is not established, so a processing implementation still needs evidence.Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-21T23:56:57Z.
Thanks @MarcZX10, and thanks to @fma-rc for the PS5 12.70 module-table analysis on #8039 (https://github.com/boykopovar/AnyPS5/issues/8039#issuecomment-6294323150) that answers the question this issue asked.
Where this leaves the report:
0x20is PitchShift per that analysis (id map stated as identical in 4.00, 7.01, 9.00, 10.01 and 12.70). The struct-shape hypothesis in the opening report (8-byte option, no state struct) pointed the same way.option->size=8,state_size=0) does not contradict the firmware contract: 8-byte option, state size 0 accepted as default (your correction). The option's second word, which must be 0, was not captured, so the rack is consistent with PitchShift rather than fully confirmed.Ngs2CheckCustomRackhas grown:mainnow accepts0x13Filter,0x1dUserFx and0x1fUserFx2 (so the "only0x1f" sentence in the opening report is outdated). None of those is PitchShift, and there is no PitchShift code to extend.Still open: the module's DSP behaviour. I am not proposing a passthrough or a guessed algorithm. This issue stays as the tracking item for
0x20; retitling it to name PitchShift so it is findable.Written with AI assistance.