Rise of the Ronin (PPSA04540): NGS2 custom racks need several buffers, module ids 0x15/0x19/0x1b/0x23 and rack id 0x4003 #8039

Open
opened 2026-10-19 18:31:08 +00:00 by EdouardSence · 10 comments
EdouardSence commented 2026-10-19 18:31:08 +00:00 (Migrated from github.com)
Contributor

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 0x4003

Follow-up to #2171. On main 8c9161eac + KernelPanicNT's fix/ngs2-system-option-flag-bit1 (e33081323), the title stops ~20 s in with:

what():  NGS2: custom module id 0x15 is not implemented

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:

what():  NGS2: rack id 0x4003 is not implemented

So 0x15 is the first of several missing pieces, not the only one.

Module ids seen (all racks, first 20 s)

module_id count option state_size notes
0x13 (filter, known) 124 none 0 often with non-zero source_buffer_id/dest_buffer_id, which main rejects today
0x15 4 none 0 always module 0, before 0x1b or 0x23
0x19 138 none 0 uses extra_buffer_id (src + extra → dst), so it looks like a mix/add of two buffers; also alone in 1-buffer racks with 3 ports
0x1b 2 12 bytes: size=12, 1, 0 0 12-byte layout matches shadPS4's Envelope/Reverb/Chorus/PeakMeter options; first field = 1
0x23 2 64 bytes: size=64, 0x200, 0x0008012c, 0… 64 the only module with state

The voice param ids follow 0x40000000 | module_id << 8 | index (as for 0x13/0x1d/0x1f). None of these modules received a voice param before the 0x4003 stop.

Rack shapes

buffers modules ports count
1 2 (0x15,0x1b) / (0x15,0x23) 1 2
1 1 (0x19) 3 3
1 5 3 1
2 1 1 or 2 8
3 5 or 6 1 18
4 15 7 10

Main accepts only num_buffers == 1 and buffer id 0 everywhere. One custom submixer is also created with 16 channels (max_voices=1), which CheckedRackOption rejects (NGS2_MAX_CHANNELS = 8). I raised that limit in the probe to get further.

The 4-buffer, 15-module rack (10 instances)
m0 id=0x19 src=0 extra=0 dst=0
m1 id=0x13 src=0 extra=0 dst=2
m2 id=0x13 src=0 extra=0 dst=0
m3 id=0x13 src=0 extra=0 dst=1
m4 id=0x13 src=0 extra=0 dst=0
m5 id=0x13 src=2 extra=0 dst=3
m6 id=0x13 src=2 extra=0 dst=2
m7 id=0x19 src=0 extra=1 dst=0
m8 id=0x19 src=2 extra=1 dst=2
m9 id=0x19 src=1 extra=3 dst=1
m10 id=0x19 src=0 extra=0 dst=0
m11 id=0x19 src=1 extra=0 dst=1
m12 id=0x19 src=2 extra=0 dst=2
m13 id=0x19 src=0 extra=1 dst=0
m14 id=0x19 src=0 extra=2 dst=0

All modules here: no option, state_size=0.

What would unblock it

  1. Custom racks with several buffers, routed by source/extra/dest_buffer_id. This is mostly 0x13 and 0x19.
  2. The identity of 0x15, 0x19, 0x1b and 0x23. 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.
  3. Rack id 0x4003.

Host: Linux 7.2.10 (CachyOS), RX 9070 XT, Mesa 26.2.4 RADV. Headless gamescope, no input.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5929339675 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/8039). Originally posted by [EdouardSence](https://github.com/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 `0x4003`** Follow-up to #2171. On `main` `8c9161eac` + KernelPanicNT's `fix/ngs2-system-option-flag-bit1` (`e33081323`), the title stops ~20 s in with: ``` what(): NGS2: custom module id 0x15 is not implemented ``` 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: ``` what(): NGS2: rack id 0x4003 is not implemented ``` So `0x15` is the first of several missing pieces, not the only one. ### Module ids seen (all racks, first 20 s) | module_id | count | option | state_size | notes | |---|---|---|---|---| | `0x13` (filter, known) | 124 | none | 0 | often with non-zero `source_buffer_id`/`dest_buffer_id`, which main rejects today | | `0x15` | 4 | none | 0 | always module 0, before `0x1b` or `0x23` | | `0x19` | 138 | none | 0 | uses `extra_buffer_id` (`src` + `extra` → `dst`), so it looks like a mix/add of two buffers; also alone in 1-buffer racks with 3 ports | | `0x1b` | 2 | 12 bytes: `size=12, 1, 0` | 0 | 12-byte layout matches shadPS4's Envelope/Reverb/Chorus/PeakMeter options; first field = 1 | | `0x23` | 2 | 64 bytes: `size=64, 0x200, 0x0008012c, 0…` | 64 | the only module with state | The voice param ids follow `0x40000000 | module_id << 8 | index` (as for `0x13`/`0x1d`/`0x1f`). None of these modules received a voice param before the `0x4003` stop. ### Rack shapes | buffers | modules | ports | count | |---|---|---|---| | 1 | 2 (`0x15`,`0x1b`) / (`0x15`,`0x23`) | 1 | 2 | | 1 | 1 (`0x19`) | 3 | 3 | | 1 | 5 | 3 | 1 | | 2 | 1 | 1 or 2 | 8 | | 3 | 5 or 6 | 1 | 18 | | 4 | 15 | 7 | 10 | Main accepts only `num_buffers == 1` and buffer id 0 everywhere. One custom submixer is also created with **16 channels** (`max_voices=1`), which `CheckedRackOption` rejects (`NGS2_MAX_CHANNELS = 8`). I raised that limit in the probe to get further. <details><summary>The 4-buffer, 15-module rack (10 instances)</summary> ``` m0 id=0x19 src=0 extra=0 dst=0 m1 id=0x13 src=0 extra=0 dst=2 m2 id=0x13 src=0 extra=0 dst=0 m3 id=0x13 src=0 extra=0 dst=1 m4 id=0x13 src=0 extra=0 dst=0 m5 id=0x13 src=2 extra=0 dst=3 m6 id=0x13 src=2 extra=0 dst=2 m7 id=0x19 src=0 extra=1 dst=0 m8 id=0x19 src=2 extra=1 dst=2 m9 id=0x19 src=1 extra=3 dst=1 m10 id=0x19 src=0 extra=0 dst=0 m11 id=0x19 src=1 extra=0 dst=1 m12 id=0x19 src=2 extra=0 dst=2 m13 id=0x19 src=0 extra=1 dst=0 m14 id=0x19 src=0 extra=2 dst=0 ``` All modules here: no option, `state_size=0`. </details> ### What would unblock it 1. Custom racks with several buffers, routed by `source/extra/dest_buffer_id`. This is mostly `0x13` and `0x19`. 2. The identity of `0x15`, `0x19`, `0x1b` and `0x23`. 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. 3. Rack id `0x4003`. Host: Linux 7.2.10 (CachyOS), RX 9070 XT, Mesa 26.2.4 RADV. Headless gamescope, no input. AI-assisted: yes (Claude Code)
KernelPanicNT commented 2026-10-20 11:05:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by KernelPanicNT on 2026-10-20T11:05:25Z.


@fma-rc, your reading of libSceNgs2.native.sprx in #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:

  1. Custom module ids: what do 0x15, 0x19, 0x1b and 0x23 resolve to in the custom rack's module dispatch (Rise of the Ronin), and 0x20 from #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 for 0x1b and the 64/64 bytes for 0x23 seen above?
  2. Buffers: how does the custom rack validation treat num_buffers > 1 and the source_buffer_id, extra_buffer_id and dest_buffer_id fields? What is the maximum buffer count, and which error comes back for an out-of-range id?
  3. Rack id 0x4003 and channels: which rack is 0x4003, 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6289442030 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/8039#issuecomment-6289442030). Originally posted by [KernelPanicNT](https://github.com/KernelPanicNT) on 2026-10-20T11:05:25Z. --- @fma-rc, your reading of `libSceNgs2.native.sprx` in #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: 1. **Custom module ids:** what do `0x15`, `0x19`, `0x1b` and `0x23` resolve to in the custom rack's module dispatch (Rise of the Ronin), and `0x20` from #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 for `0x1b` and the 64/64 bytes for `0x23` seen above? 2. **Buffers:** how does the custom rack validation treat `num_buffers > 1` and the `source_buffer_id`, `extra_buffer_id` and `dest_buffer_id` fields? What is the maximum buffer count, and which error comes back for an out-of-range id? 3. **Rack id `0x4003` and channels:** which rack is `0x4003`, 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.
fma-rc commented 2026-10-20 15:18:42 +00:00 (Migrated from github.com)
Author
Contributor

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 0x15 Gain, 0x19 UserFx, 0x1b Reverb, 0x20 PitchShift, 0x23 Convolution. Rack create rejects a module state size that is non-zero and differs from the module's own with 0x804a8302. Reverb wants a 12-byte option (other sizes give 0x804a8013), the word after the size 0 or 1 (default 1, else 0x804a8099), 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 (0x804a830b otherwise; submixer and mastering also need num_buffers >= max_inputs, with max_inputs 1 or 2). A module whose source, extra or dest buffer id is not below num_buffers fails with 0x804a8306.

0x4003 is the custom mastering rack, option size 0x508 like the other custom racks. It appends an Output module (0x1a) after the listed ones. Custom submixer and mastering accept 1 to 37 channels (0x804a8052 above), so 16 is fine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6294323150 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/8039#issuecomment-6294323150). Originally posted by [fma-rc](https://github.com/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 `0x15` Gain, `0x19` UserFx, `0x1b` Reverb, `0x20` PitchShift, `0x23` Convolution. Rack create rejects a module state size that is non-zero and differs from the module's own with `0x804a8302`. Reverb wants a 12-byte option (other sizes give `0x804a8013`), the word after the size 0 or 1 (default 1, else `0x804a8099`), 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 (`0x804a830b` otherwise; submixer and mastering also need `num_buffers >= max_inputs`, with `max_inputs` 1 or 2). A module whose source, extra or dest buffer id is not below `num_buffers` fails with `0x804a8306`. `0x4003` is the custom mastering rack, option size `0x508` like the other custom racks. It appends an Output module (`0x1a`) after the listed ones. Custom submixer and mastering accept 1 to 37 channels (`0x804a8052` above), so 16 is fine.
KernelPanicNT commented 2026-10-20 18:18:36 +00:00 (Migrated from github.com)
Author
Contributor

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:

  1. UserFx 0x19 versus 0x1d: AnyPS5 serves UserFx as 0x1d and UserFx2 as 0x1f (both taken from KytyPS5, #5139). Are 0x1d and 0x1f also valid ids in the 12.70 table, and if so, what are they? Does 0x19 take the same 40-byte voice parameter (handler plus three user data words) as our 0x1d?
  2. Gain 0x15: which voice parameter id sets it (is it 0x40001500 | module index, like 0x40001300 for 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?
  3. Several buffers: for a module, is dest_buffer_id overwritten or added to? What is extra_buffer_id used for? Do the modules run in list order? Which buffer do the ports and the voice output read?
  4. Reverb 0x1b: is it the same algorithm as the reverb rack 0x2001? AnyPS5 has that one from the PS4 11.00 module. Which parameter id sets it?
  5. Rack 0x4003: is its option the custom submixer's (0x508 bytes, ending in max_channels and max_inputs)? What does the appended Output module 0x1a write, and where? Is it the render buffer, as for the mastering rack 0x3000?

PitchShift 0x20 (Trails in the Sky, #4246) and Convolution 0x23 can 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6297967560 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/8039#issuecomment-6297967560). Originally posted by [KernelPanicNT](https://github.com/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: 1. **UserFx `0x19` versus `0x1d`:** AnyPS5 serves UserFx as `0x1d` and UserFx2 as `0x1f` (both taken from KytyPS5, #5139). Are `0x1d` and `0x1f` also valid ids in the 12.70 table, and if so, what are they? Does `0x19` take the same 40-byte voice parameter (handler plus three user data words) as our `0x1d`? 2. **Gain `0x15`:** which voice parameter id sets it (is it `0x40001500 | module index`, like `0x40001300` for 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? 3. **Several buffers:** for a module, is `dest_buffer_id` overwritten or added to? What is `extra_buffer_id` used for? Do the modules run in list order? Which buffer do the ports and the voice output read? 4. **Reverb `0x1b`:** is it the same algorithm as the reverb rack `0x2001`? AnyPS5 has that one from the PS4 11.00 module. Which parameter id sets it? 5. **Rack `0x4003`:** is its option the custom submixer's (`0x508` bytes, ending in `max_channels` and `max_inputs`)? What does the appended Output module `0x1a` write, and where? Is it the render buffer, as for the mastering rack `0x3000`? PitchShift `0x20` (Trails in the Sky, #4246) and Convolution `0x23` can 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.
isra60 commented 2026-10-20 21:54:33 +00:00 (Migrated from github.com)
Author
Contributor

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

  • AnyPS5 main at 73b6a4cc7144d80ba5c720306ec1516728dfb59b, Windows Release build. No local source changes, integration PRs or bypasses of unimplemented functions.
  • Windows 11 Pro Insider Preview 10.0.26220, Intel Core i7-9750H, NVIDIA GeForce RTX 2070 (selected in the log), driver 32.0.15.9200.
  • One startup run on 2026-10-20: GPU/swapchain initialization and game threads are reached, but the captured frame is black. No logo, menu or gameplay verified. The process terminates on its own after 24.09 seconds with exit code 0xc0000409, within a 30-second cap.
terminate called after throwing an instance of 'std::runtime_error'
  what():  NGS2: custom module id 0x1b is not implemented
FATAL: abort() (SIGABRT) on thread 21316

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 0x1b module 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 rack 0x4003 listed 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 / 0x20 report in #4246.

Prepared with Codex assistance from the captured run and local build artifacts; the module identification is attributed to the firmware analysis above.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6302533580 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/8039#issuecomment-6302533580). Originally posted by [isra60](https://github.com/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 - AnyPS5 `main` at `73b6a4cc7144d80ba5c720306ec1516728dfb59b`, Windows Release build. No local source changes, integration PRs or bypasses of unimplemented functions. - Windows 11 Pro Insider Preview `10.0.26220`, Intel Core i7-9750H, NVIDIA GeForce RTX 2070 (selected in the log), driver `32.0.15.9200`. - One startup run on 2026-10-20: GPU/swapchain initialization and game threads are reached, but the captured frame is black. No logo, menu or gameplay verified. The process terminates on its own after 24.09 seconds with exit code `0xc0000409`, within a 30-second cap. ```text terminate called after throwing an instance of 'std::runtime_error' what(): NGS2: custom module id 0x1b is not implemented FATAL: abort() (SIGABRT) on thread 21316 ``` 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 `0x1b` module identified as **Reverb** in [fma-rc's firmware analysis](https://github.com/boykopovar/AnyPS5/issues/8039#issuecomment-6294323150). 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 rack `0x4003` listed 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 / `0x20`** report in #4246. Prepared with Codex assistance from the captured run and local build artifacts; the module identification is attributed to the firmware analysis above.
KernelPanicNT commented 2026-10-21 14:49:32 +00:00 (Migrated from github.com)
Author
Contributor

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) and 0x1f (UserFx2) were both taken from KytyPS5. Only 0x1f is. KytyPS5 uses 0x19 for UserFx, as your table does, and no revision of its ngs2.cpp uses 0x1d. In AnyPS5, 0x1d comes from Void Terrarium (PPSA03061) creating a custom submixer with it (#5139), with a 20-byte option size 20, 0, 4, 1000.0f, 0 (#5055). Since your UserFx takes no option, 0x1d is probably a different module.

So question 1 becomes: what is 0x1d in 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6318961754 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/8039#issuecomment-6318961754). Originally posted by [KernelPanicNT](https://github.com/KernelPanicNT) on 2026-10-21T14:49:32Z. --- A correction to question 1 above: I wrote that AnyPS5's `0x1d` (UserFx) and `0x1f` (UserFx2) were both taken from KytyPS5. Only `0x1f` is. KytyPS5 uses `0x19` for UserFx, as your table does, and no revision of its `ngs2.cpp` uses `0x1d`. In AnyPS5, `0x1d` comes from Void Terrarium (PPSA03061) creating a custom submixer with it (#5139), with a 20-byte option `size 20, 0, 4, 1000.0f, 0` ([#5055](https://github.com/boykopovar/AnyPS5/issues/5055#issuecomment-6154121860)). Since your UserFx takes no option, `0x1d` is probably a different module. So question 1 becomes: what is `0x1d` in 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.
fma-rc commented 2026-10-21 15:08:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-21T15:08:06Z.


From the PS5 12.70 module again:

  1. 0x1d is Delay, so not UserFx. Its 20-byte option is type (0 or 1), maxTaps (1 to 8), maxLength (float, 1 to 20000) and a reserved 0, which reads Void Terrarium's 0, 4, 1000.0f, 0 as type 0, 4 taps, length 1000. 0x1f is UserFx2. UserFx 0x19 takes 32 bytes after the 8-byte header (handler, userData0, userData1, userData2), the same 40 bytes as our 0x1d.
  2. Module parameter ids are 0x40000000 | module_id << 8 | index, with the index one higher on racks 0x1000 and 0x4001. Gain is 0x400015xx with 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.
  3. Each module gets its source, extra and dest buffers (37 channel pointers each) from its own ids. Gain overwrites dest and ignores extra. I have not read the other modules or the run order yet.
  4. Rack 0x2001 is built as one Reverb 0x1b module with the rack's 12-byte option, so it is the same reverb. Its parameter is 0x40001bxx, 0x58 bytes.
  5. 0x4003 checks the same 0x508 option as 0x4002. The appended 0x1a is the Output module the mastering rack 0x3000 also ends with. Its parameter outputId (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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6319332943 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/8039#issuecomment-6319332943). Originally posted by [fma-rc](https://github.com/fma-rc) on 2026-10-21T15:08:06Z. --- From the PS5 12.70 module again: 1. `0x1d` is Delay, so not UserFx. Its 20-byte option is `type` (0 or 1), `maxTaps` (1 to 8), `maxLength` (float, 1 to 20000) and a reserved 0, which reads Void Terrarium's `0, 4, 1000.0f, 0` as type 0, 4 taps, length 1000. `0x1f` is UserFx2. UserFx `0x19` takes 32 bytes after the 8-byte header (handler, userData0, userData1, userData2), the same 40 bytes as our `0x1d`. 2. Module parameter ids are `0x40000000 | module_id << 8 | index`, with the index one higher on racks `0x1000` and `0x4001`. Gain is `0x400015xx` with 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. 3. Each module gets its source, extra and dest buffers (37 channel pointers each) from its own ids. Gain overwrites dest and ignores extra. I have not read the other modules or the run order yet. 4. Rack `0x2001` is built as one Reverb `0x1b` module with the rack's 12-byte option, so it is the same reverb. Its parameter is `0x40001bxx`, 0x58 bytes. 5. `0x4003` checks the same `0x508` option as `0x4002`. The appended `0x1a` is the Output module the mastering rack `0x3000` also ends with. Its parameter `outputId` (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.
KernelPanicNT commented 2026-10-21 15:56:49 +00:00 (Migrated from github.com)
Author
Contributor

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 UserFx 0x19, Delay, Reverb and the 0x4003 Output module are clear. A few points still decide whether those modules can run or have to keep throwing. Here they are, most useful first:

  1. Delay 0x1d.
    • What does it write before any 0x40001dxx parameter 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.
    • What are the parameter's size and layout, the unit of maxLength, the meaning of type, and how the taps are processed?
    • Which errors come back for an option of another size, a null option, an out-of-range field, or a non-zero state size?
  2. Writing dest.
    • For UserFx 0x19, Reverb 0x1b, Delay 0x1d, PitchShift 0x20 and Convolution 0x23: is dest overwritten (as with Gain) or added to? Is extra used?
    • For UserFx: which buffer's channel pointers does the handler receive (dest after source is copied into it?), what is written when no handler is set, and which flags values does it pass?
  3. Run order and buffers.
    • Do the modules run in list order, with the appended Output last?
    • Which buffer do a voice's inputs mix into (inputs 0 and 1 when max_inputs is 2)? Which buffer do the ports and the Output module read? Are the buffers cleared every grain?
    • Which parameter sets up a 0x4003 voice?
  4. Reverb.
    • Which fields of rack 0x2001's option fill the 12-byte module option? Is the 0/1 word its reverb_size, and what is the third word?
    • Which source, extra and dest buffer ids, and how many buffers, does that rack give its module?
    • Are the 0x58 bytes the payload after the 8-byte header, laid out like the I3DL2 structure of 0x20010001?
    • Which values does the module use before any parameter is set?
  5. Parameter index. On rack 0x4001, Dead Cells (PPSA15552) sends 0x40001300 (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?
  6. Gain.
    • Which error comes back for a gain outside -32 to 32, or NaN?
    • Does the ramp reach the new gain on the last sample of the grain (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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6320348229 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/8039#issuecomment-6320348229). Originally posted by [KernelPanicNT](https://github.com/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 UserFx `0x19`, Delay, Reverb and the `0x4003` Output module are clear. A few points still decide whether those modules can run or have to keep throwing. Here they are, most useful first: 1. **Delay `0x1d`.** - What does it write before any `0x40001dxx` parameter 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. - What are the parameter's size and layout, the unit of `maxLength`, the meaning of `type`, and how the taps are processed? - Which errors come back for an option of another size, a null option, an out-of-range field, or a non-zero state size? 2. **Writing dest.** - For UserFx `0x19`, Reverb `0x1b`, Delay `0x1d`, PitchShift `0x20` and Convolution `0x23`: is dest overwritten (as with Gain) or added to? Is extra used? - For UserFx: which buffer's channel pointers does the handler receive (dest after source is copied into it?), what is written when no handler is set, and which `flags` values does it pass? 3. **Run order and buffers.** - Do the modules run in list order, with the appended Output last? - Which buffer do a voice's inputs mix into (inputs 0 and 1 when `max_inputs` is 2)? Which buffer do the ports and the Output module read? Are the buffers cleared every grain? - Which parameter sets up a `0x4003` voice? 4. **Reverb.** - Which fields of rack `0x2001`'s option fill the 12-byte module option? Is the 0/1 word its `reverb_size`, and what is the third word? - Which source, extra and dest buffer ids, and how many buffers, does that rack give its module? - Are the 0x58 bytes the payload after the 8-byte header, laid out like the I3DL2 structure of `0x20010001`? - Which values does the module use before any parameter is set? 5. **Parameter index.** On rack `0x4001`, Dead Cells (PPSA15552) sends `0x40001300` (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? 6. **Gain.** - Which error comes back for a gain outside -32 to 32, or NaN? - Does the ramp reach the new gain on the last sample of the grain (`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.
isra60 commented 2026-10-21 17:58:31 +00:00 (Migrated from github.com)
Author
Contributor

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 0x2001 consists of a Reverb 0x1b module 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:

Path Local support / limitation
Custom Reverb 0x1b Reuse of the existing 0x2001 DSP, with independent state per voice/module; limited to one buffer, reverb size 1, no module state and 1/2/6/8 channels.
Submixer input 1 and compressor 0x20000002 Separate auxiliary input used by an experimental compressor detector. The interpretation of compressor flag bit 8 as external sidechain follows the title-side code and still needs firmware confirmation; auxiliary samples are not mixed into the audible input.
Submixer filter 0x20000006 Disable (type=0) only; active filter types still throw.
Sampler peak meter 0x10000009 Disable (enable_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=1 and APS5_EXPERIMENTAL_NGS2_SIDECHAIN=1. These are local changes, not submitted implementation PRs.

For the Reverb size question: this title constructs 0x40001b00 | index with a 96-byte total parameter, including the 8-byte header (constructor at ELF VA 0x487e42). That is consistent with 0x58 being 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:

what():  NGS2: sampler peak meter mode 1 is not implemented
FATAL: abort() (SIGABRT)

Exit code: 0xc0000409. The startup path had requested mode 0. The title's constructor at ELF VA 0x48eb93 builds a 16-byte 0x10000009 control 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 had next=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:

  1. What do modes 1 and 2 mean, and how do invalid modes and num_peak_meter_blocks affect validation?
  2. How is sampler peak_height calculated: measurement point relative to filtering/gain, channel reduction, units and measurement/history window?
  3. When is the measurement cleared or retained: state reads, repeated controls, disable, setup, PLAY, PAUSE, STOP and KILL?

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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6322884875 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/8039#issuecomment-6322884875). Originally posted by [isra60](https://github.com/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](https://github.com/boykopovar/AnyPS5/discussions/8710). @fma-rc, your [new firmware analysis](https://github.com/boykopovar/AnyPS5/issues/8039#issuecomment-6319332943) is directly relevant: the confirmation that rack `0x2001` consists of a Reverb `0x1b` module 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: | Path | Local support / limitation | |---|---| | Custom Reverb `0x1b` | Reuse of the existing `0x2001` DSP, with independent state per voice/module; limited to one buffer, reverb size 1, no module state and 1/2/6/8 channels. | | Submixer input 1 and compressor `0x20000002` | Separate auxiliary input used by an experimental compressor detector. The interpretation of compressor flag bit 8 as external sidechain follows the title-side code and still needs firmware confirmation; auxiliary samples are not mixed into the audible input. | | Submixer filter `0x20000006` | Disable (`type=0`) only; active filter types still throw. | | Sampler peak meter `0x10000009` | Disable (`enable_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=1` and `APS5_EXPERIMENTAL_NGS2_SIDECHAIN=1`. These are local changes, not submitted implementation PRs. For the Reverb size question: this title constructs `0x40001b00 | index` with a **96-byte total parameter**, including the 8-byte header (constructor at ELF VA `0x487e42`). That is consistent with `0x58` being 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: ```text what(): NGS2: sampler peak meter mode 1 is not implemented FATAL: abort() (SIGABRT) ``` Exit code: `0xc0000409`. The startup path had requested mode 0. The title's constructor at ELF VA `0x48eb93` builds a 16-byte `0x10000009` control 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 had `next=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: 1. What do modes 1 and 2 mean, and how do invalid modes and `num_peak_meter_blocks` affect validation? 2. How is sampler `peak_height` calculated: measurement point relative to filtering/gain, channel reduction, units and measurement/history window? 3. When is the measurement cleared or retained: state reads, repeated controls, disable, setup, PLAY, PAUSE, STOP and KILL? 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.
KernelPanicNT commented 2026-10-21 19:03:24 +00:00 (Migrated from github.com)
Author
Contributor

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 | index call site is a nice cross-check on fma-rc's 0x58 payload 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 0x1b part 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:

  • a reverb state that isn't tied to voice.reverb,
  • one state per voice and module,
  • routing the 0x40001b00 | index parameter to it. Reading its 0x58 bytes as the I3DL2 layout of 0x20010001 is 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6324169583 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/8039#issuecomment-6324169583). Originally posted by [KernelPanicNT](https://github.com/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 | index` call site is a nice cross-check on fma-rc's `0x58` payload 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 `0x1b` part 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: - a reverb state that isn't tied to `voice.reverb`, - one state per voice and module, - routing the `0x40001b00 | index` parameter to it. Reading its `0x58` bytes as the I3DL2 layout of `0x20010001` is still our assumption until fma-rc confirms it. Whatever is still open in [my questions above](https://github.com/boykopovar/AnyPS5/issues/8039#issuecomment-6320348229) 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.
isra60 commented 2026-10-22 06:11:57 +00:00 (Migrated from github.com)
Author
Contributor

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 extract libSceNgs2.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:

  • Custom Reverb 0x1b: your confirmation that PS5 rack 0x2001 is 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 exact 0x58-byte parameter layout, initial values, the creation-option fields, buffer overwrite/add behaviour and processing/reset order, as in KernelPanicNT's questions.
  • Sampler peak meter 0x10000009, mode 1: with the local experimental patches, selecting New Game → Normal aborts on NGS2: 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, how peak_height is measured (signal position, units, channel reduction and window), how num_peak_meter_blocks affects 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6334084533 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/8039#issuecomment-6334084533). Originally posted by [isra60](https://github.com/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](https://github.com/boykopovar/AnyPS5/pull/5916#issuecomment-6172832590), you mention reading 41 versions of `libSceNgs2.native.sprx`, and your [12.70 findings above](https://github.com/boykopovar/AnyPS5/issues/8039#issuecomment-6319332943) 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 extract `libSceNgs2.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: - **Custom Reverb `0x1b`:** your confirmation that PS5 rack `0x2001` is 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 exact `0x58`-byte parameter layout, initial values, the creation-option fields, buffer overwrite/add behaviour and processing/reset order, as in [KernelPanicNT's questions](https://github.com/boykopovar/AnyPS5/issues/8039#issuecomment-6320348229). - **Sampler peak meter `0x10000009`, mode 1:** with the local experimental patches, selecting **New Game → Normal** aborts on `NGS2: 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, how `peak_height` is measured (signal position, units, channel reduction and window), how `num_peak_meter_blocks` affects it, and when the measurement is reset or retained. The detailed trace and questions are in [my previous report](https://github.com/boykopovar/AnyPS5/issues/8039#issuecomment-6322884875). 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.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#8039
No description provided.