Rise of the Ronin (PPSA04540): NGS2 custom racks need several buffers, module ids 0x15/0x19/0x1b/0x23 and rack id 0x4003 #8039
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 EdouardSence on 2026-10-19T18:31:08Z.
Rise of the Ronin (PPSA04540 01.009.000) needs NGS2 custom racks with several buffers, four unknown module ids, and rack id
0x4003Follow-up to #2171. On
main8c9161eac+ KernelPanicNT'sfix/ngs2-system-option-flag-bit1(e33081323), the title stops ~20 s in with:To see what is behind that stop, I used a local probe (not for upstream; it only logs and does not implement anything). It lists each custom rack in
Ngs2CheckCustomRack, accepts unknown modules, and lets racks with more than one buffer through. With it, the title creates ~50 custom racks in its first 20 s and then stops on a different wall:So
0x15is the first of several missing pieces, not the only one.Module ids seen (all racks, first 20 s)
0x13(filter, known)source_buffer_id/dest_buffer_id, which main rejects today0x150x1bor0x230x19extra_buffer_id(src+extra→dst), so it looks like a mix/add of two buffers; also alone in 1-buffer racks with 3 ports0x1bsize=12, 1, 00x23size=64, 0x200, 0x0008012c, 0…The voice param ids follow
0x40000000 | module_id << 8 | index(as for0x13/0x1d/0x1f). None of these modules received a voice param before the0x4003stop.Rack shapes
0x15,0x1b) / (0x15,0x23)0x19)Main accepts only
num_buffers == 1and buffer id 0 everywhere. One custom submixer is also created with 16 channels (max_voices=1), whichCheckedRackOptionrejects (NGS2_MAX_CHANNELS = 8). I raised that limit in the probe to get further.The 4-buffer, 15-module rack (10 instances)
All modules here: no option,
state_size=0.What would unblock it
source/extra/dest_buffer_id. This is mostly0x13and0x19.0x15,0x19,0x1band0x23. As in #4246 (0x20, Trails in the Sky), I found no public table of NGS2 custom module ids. The data above may help match them.0x4003.Host: Linux 7.2.10 (CachyOS), RX 9070 XT, Mesa 26.2.4 RADV. Headless gamescope, no input.
AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by KernelPanicNT on 2026-10-20T11:05:25Z.
@fma-rc, your reading of
libSceNgs2.native.sprxin #5916 gave that PR a firmware source. Could you look up a few things in the same module for this issue? Without a source we can't implement EdouardSence's map above without guessing, so these answers would decide what can be done:0x15,0x19,0x1band0x23resolve to in the custom rack's module dispatch (Rise of the Ronin), and0x20from #4246 (Trails in the Sky)? The module's name, or the function its id dispatches to, is enough. If the module reports its option and state sizes, do they match the 12 bytes for0x1band the 64/64 bytes for0x23seen above?num_buffers > 1and thesource_buffer_id,extra_buffer_idanddest_buffer_idfields? What is the maximum buffer count, and which error comes back for an out-of-range id?0x4003and channels: which rack is0x4003, and what is its option size? What is the largest channel count a custom submixer accepts? The title creates one with 16.A description of the behaviour, with the firmware version and offsets as in #5916, is all we need. No code or tables from the module would go into the repository. Any of the three helps, even on its own.
Imported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-20T15:18:42Z.
From the PS5 12.70 module (the id map is the same in 4.00, 7.01, 9.00 and 10.01):
The built-in module table maps
0x15Gain,0x19UserFx,0x1bReverb,0x20PitchShift,0x23Convolution. Rack create rejects a module state size that is non-zero and differs from the module's own with0x804a8302. Reverb wants a 12-byte option (other sizes give0x804a8013), the word after the size 0 or 1 (default 1, else0x804a8099), and no state. Convolution wants a 64-byte option and, for SDK 3.0 and later, 64 bytes of state, so both match what you saw. Gain and UserFx take no option and no state. PitchShift takes an 8-byte option whose word after the size must be 0 (0x804a8098) and 8 bytes of state.Custom racks take 1 to 4 buffers (
0x804a830botherwise; submixer and mastering also neednum_buffers >= max_inputs, withmax_inputs1 or 2). A module whose source, extra or dest buffer id is not belownum_buffersfails with0x804a8306.0x4003is the custom mastering rack, option size0x508like the other custom racks. It appends an Output module (0x1a) after the listed ones. Custom submixer and mastering accept 1 to 37 channels (0x804a8052above), so 16 is fine.Imported from boykopovar/AnyPS5. Originally posted by KernelPanicNT on 2026-10-20T18:18:36Z.
@fma-rc, thank you, that answer was exactly what was needed. The creation checks are now in #8609, with your comment as the source. Valid racks with these modules still throw, because what the modules do at render time is the part we don't have. If you have time, these are the questions that would let us implement it, most useful first:
0x19versus0x1d: AnyPS5 serves UserFx as0x1dand UserFx2 as0x1f(both taken from KytyPS5, #5139). Are0x1dand0x1falso valid ids in the 12.70 table, and if so, what are they? Does0x19take the same 40-byte voice parameter (handler plus three user data words) as our0x1d?0x15: which voice parameter id sets it (is it0x40001500 | module index, like0x40001300for the filter)? What is its size and layout? What does the module do before any parameter is set: pass the signal through, or output silence?dest_buffer_idoverwritten or added to? What isextra_buffer_idused for? Do the modules run in list order? Which buffer do the ports and the voice output read?0x1b: is it the same algorithm as the reverb rack0x2001? AnyPS5 has that one from the PS4 11.00 module. Which parameter id sets it?0x4003: is its option the custom submixer's (0x508bytes, ending inmax_channelsandmax_inputs)? What does the appended Output module0x1awrite, and where? Is it the render buffer, as for the mastering rack0x3000?PitchShift
0x20(Trails in the Sky, #4246) and Convolution0x23can wait. If they are simple to describe (a known algorithm, a parameter layout), that would be welcome too.As before, a description of the behaviour with the firmware version and offsets is all we need. No code or tables go into the repository. Any one answer helps on its own: each one becomes a separate PR with a test, and @EdouardSence can check it on Rise of the Ronin.
Imported from boykopovar/AnyPS5. Originally posted by isra60 on 2026-10-20T21:54:33Z.
Another affected title for custom module
0x1b: Trails in the Sky 1st Chapter (PPSA28465), version 01.006.000.Full game bring-up, reproduction steps and log excerpts: https://github.com/boykopovar/AnyPS5/discussions/8710
mainat73b6a4cc7144d80ba5c720306ec1516728dfb59b, Windows Release build. No local source changes, integration PRs or bypasses of unimplemented functions.10.0.26220, Intel Core i7-9750H, NVIDIA GeForce RTX 2070 (selected in the log), driver32.0.15.9200.0xc0000409, within a 30-second cap.The stack includes
libSceNgs2.prx+0x2a525. The import audit found zero absent imports, missing host dependencies or library mismatches. The ELF mapped payload segments were also checked against the corresponding SELF containers and match byte for byte. The observed failure is an explicit unimplemented NGS2 path after startup.This matches the
0x1bmodule identified as Reverb in fma-rc's firmware analysis. We did not instrument this game's module option/state sizes or buffer layout, so this report does not establish that it needs the other module IDs, multi-buffer support or rack0x4003listed for Rise of the Ronin.I have also linked this issue from the bring-up. PR #8609 has not been tested with this title; its description leaves valid but unimplemented modules throwing, so this report is not a claim that the validation changes unblock the game. This report concerns 1st Chapter / PPSA28465 /
0x1b, distinct from the 2nd Chapter / PPSA35169 /0x20report in #4246.Prepared with Codex assistance from the captured run and local build artifacts; the module identification is attributed to the firmware analysis above.
Imported from boykopovar/AnyPS5. Originally posted by KernelPanicNT on 2026-10-21T14:49:32Z.
A correction to question 1 above: I wrote that AnyPS5's
0x1d(UserFx) and0x1f(UserFx2) were both taken from KytyPS5. Only0x1fis. KytyPS5 uses0x19for UserFx, as your table does, and no revision of itsngs2.cppuses0x1d. In AnyPS5,0x1dcomes from Void Terrarium (PPSA03061) creating a custom submixer with it (#5139), with a 20-byte optionsize 20, 0, 4, 1000.0f, 0(#5055). Since your UserFx takes no option,0x1dis probably a different module.So question 1 becomes: what is
0x1din the 12.70 table, and what do its option words mean? #8609's debt text now says this instead of the wrong attribution. cc @JJenkx, since #8851 repeats the same premise.Imported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-21T15:08:06Z.
From the PS5 12.70 module again:
0x1dis Delay, so not UserFx. Its 20-byte option istype(0 or 1),maxTaps(1 to 8),maxLength(float, 1 to 20000) and a reserved 0, which reads Void Terrarium's0, 4, 1000.0f, 0as type 0, 4 taps, length 1000.0x1fis UserFx2. UserFx0x19takes 32 bytes after the 8-byte header (handler, userData0, userData1, userData2), the same 40 bytes as our0x1d.0x40000000 | module_id << 8 | index, with the index one higher on racks0x1000and0x4001. Gain is0x400015xxwith 37 floats, one linear gain per channel (range -32 to 32, default 0 in the module's table). It writes dest = source × gain, ramping linearly over the grain from the previous gain; 0 writes zeros, 1 copies.0x2001is built as one Reverb0x1bmodule with the rack's 12-byte option, so it is the same reverb. Its parameter is0x40001bxx, 0x58 bytes.0x4003checks the same0x508option as0x4002. The appended0x1ais the Output module the mastering rack0x3000also ends with. Its parameteroutputId(0 to 32) picks one of the system's render outputs, and channels the rack lacks are written as silence.Offsets: parameter dispatch 0x25ec4, module runner 0x19830, Gain 0x33ce0, Output 0x17d00, rack create 0x13b68.
Imported from boykopovar/AnyPS5. Originally posted by KernelPanicNT on 2026-10-21T15:56:49Z.
@fma-rc, thank you again. This answers most of what we asked, and it corrects our
0x1d. Gain is now specified well enough to implement, and the ids, options and parameters of UserFx0x19, Delay, Reverb and the0x4003Output module are clear. A few points still decide whether those modules can run or have to keep throwing. Here they are, most useful first:0x1d.0x40001dxxparameter is set? Void Terrarium (PPSA03061) creates one with your reading's type 0, 4 taps and length 1000. In a 150 s run it does not seem to set a parameter, and AnyPS5 currently passes its audio through unchanged.maxLength, the meaning oftype, and how the taps are processed?0x19, Reverb0x1b, Delay0x1d, PitchShift0x20and Convolution0x23: is dest overwritten (as with Gain) or added to? Is extra used?flagsvalues does it pass?max_inputsis 2)? Which buffer do the ports and the Output module read? Are the buffers cleared every grain?0x4003voice?0x2001's option fill the 12-byte module option? Is the 0/1 word itsreverb_size, and what is the third word?0x20010001?0x4001, Dead Cells (PPSA15552) sends0x40001300(index 0) to a voice whose rack has a filter module. What does index 0 address there? Which error comes back for an index past the module list, or one whose module has a different id?old + (new - old) * (i + 1) / N), or does it start at the old gain (i / N)?As before, a description with the offsets is all we need. Any one answer helps on its own, and each becomes its own PR with a test.
Imported from boykopovar/AnyPS5. Originally posted by isra60 on 2026-10-21T17:58:31Z.
Update for Trails in the Sky 1st Chapter (PPSA28465, 01.006.000), following my earlier report and bring-up #8710.
@fma-rc, your new firmware analysis is directly relevant: the confirmation that rack
0x2001consists of a Reverb0x1bmodule supports the direction of our local experiment. It does not establish that the existing PS4-derived DSP, defaults and reset behaviour are numerically equivalent on PS5.Observed result with local experimental patches
On base
2abfb1beb4dde0b8e6117d0998c6ac2f4f2d8666, rebuilt for Windows with the game reconverted using the matching relinker, the title reaches the main menu (Continue / New Game / Load Game / System). A 300-second run completed without an unhandled exception and still showed the menu in its final capture; the test harness terminated it at the time limit. This is not a vanilla-main or gameplay compatibility claim.The local changes needed along the way were:
0x1b0x2001DSP, with independent state per voice/module; limited to one buffer, reverb size 1, no module state and 1/2/6/8 channels.0x200000020x20000006type=0) only; active filter types still throw.0x10000009enable_flag=0) only; active modes still throw.Reverb, auxiliary input registration, compressor processing and sidechain rendering are gated by
APS5_EXPERIMENTAL_CUSTOM_REVERB=1,APS5_EXPERIMENTAL_NGS2_INPUTS=1,APS5_EXPERIMENTAL_NGS2_COMPRESSOR=1andAPS5_EXPERIMENTAL_NGS2_SIDECHAIN=1. These are local changes, not submitted implementation PRs.For the Reverb size question: this title constructs
0x40001b00 | indexwith a 96-byte total parameter, including the 8-byte header (constructor at ELF VA0x487e42). That is consistent with0x58being the payload length, but a call site alone cannot confirm the firmware's layout or accepted sizes.Next reproducible stop: enabling the sampler peak meter
Selecting New Game → Normal reaches a new audio control path and aborts:
Exit code:
0xc0000409. The startup path had requested mode 0. The title's constructor at ELF VA0x48eb93builds a 16-byte0x10000009control with a 32-bit mode at offset 8 and a zero reserved word at offset 12; it can select modes 0, 1 and 2. The previously captured startup control hadnext=28, chaining it to PLAY. Mode 1 is now confirmed in the new-game path; mode 2 has not been observed in these runs.If you can inspect this control in
libSceNgs2.native.sprx, the missing contract is:num_peak_meter_blocksaffect validation?peak_heightcalculated: measurement point relative to filtering/gain, channel reduction, units and measurement/history window?A behavioural description with firmware version and offsets would let us implement active metering without inventing success or always returning zero.
Validation on Windows 11 / Intel i7-9750H / NVIDIA RTX 2070: all 13 NGS2 tests pass with the experimental switches unset and again with all four enabled; all 162 relinker tests pass; import audit reports zero absent imports. These tests do not validate DSP equivalence to a console. Gameplay and audio fidelity remain unverified.
AI-assisted: yes, with Codex. Findings come from local runs and title-side analysis; firmware conclusions above are attributed to fma-rc. No game or firmware binaries are attached.
Imported from boykopovar/AnyPS5. Originally posted by KernelPanicNT on 2026-10-21T19:03:24Z.
@isra60, great work getting Trails to the main menu, and thanks for writing it up in so much detail! The 96-byte
0x40001b00 | indexcall site is a nice cross-check on fma-rc's0x58payload size, and his readings are what made all of this possible, so thanks again, @fma-rc.I wanted to ask before doing anything: are you planning to send the custom Reverb
0x1bpart of your experiment as a PR? Rise of the Ronin is now stuck on the same module (with #8341, #8609 and #9233 it stops on "the custom Reverb module is not implemented"), and I'd rather not open a duplicate of your work.If you'd like to submit it, I'm happy to review it and run the NGS2 tests. If you'd prefer not to, I can write the parts we can already source and stack them on #8609 and #9233, and you could try them on PPSA28465 together with your other local patches. That would be:
voice.reverb,0x40001b00 | indexparameter to it. Reading its0x58bytes as the I3DL2 layout of0x20010001is still our assumption until fma-rc confirms it.Whatever is still open in my questions above would keep throwing for now: the defaults before any parameter, overwrite vs add, the option word, multiple buffers and module order.
Either way works for me, just let me know what you prefer.
Imported from boykopovar/AnyPS5. Originally posted by isra60 on 2026-10-22T06:11:57Z.
@fma-rc, a follow-up on the module analysis and the remaining audio blockers for Trails in the Sky 1st Chapter (PPSA28465, 01.006.000).
In #5916, you mention reading 41 versions of
libSceNgs2.native.sprx, and your 12.70 findings above have been very helpful. Is there a public tool or documented extraction/decryption workflow you can recommend for obtaining an analysable module, or a public reference explaining how you prepared the modules you inspected?We inspected a local file named
1270_PS5UPDATE1.PUP.dec. We could unpack its system image and extractlibSceNgs2.native.sprx, but the extracted SELF still marks its code/data segments as encrypted. We therefore have the container and module metadata, not readable native code for disassembly. The outer PUP being labelled decrypted did not give us a decrypted inner module. We would like to understand which step or prerequisite is missing; no firmware attachment is needed here.The behaviour we still need to establish is:
0x1b: your confirmation that PS5 rack0x2001is built from this module supports reusing the same implementation within PS5. Our local experiment reuses AnyPS5's existing PS4-derived DSP, however, so it does not establish PS4/PS5 equivalence. The outstanding points are the exact0x58-byte parameter layout, initial values, the creation-option fields, buffer overwrite/add behaviour and processing/reset order, as in KernelPanicNT's questions.0x10000009, mode 1: with the local experimental patches, selecting New Game → Normal aborts onNGS2: sampler peak meter mode 1 is not implemented. The title supplies a 16-byte control with the mode at offset 8 and a zero word at offset 12. We need the meaning and validation of active modes, howpeak_heightis measured (signal position, units, channel reduction and window), hownum_peak_meter_blocksaffects it, and when the measurement is reset or retained. The detailed trace and questions are in my previous report.If sharing the workflow is not practical, a behavioural description with firmware version and offsets would also let us implement and test these paths without guessing. Reaching the menu with our experiments is not a claim of DSP fidelity or gameplay compatibility.
AI-assisted: yes, with Codex.