Dead Cells (PPSA15552): NGS2 rack id 0x4001 is not implemented #3553

Closed
opened 2026-10-11 13:06:34 +00:00 by xXPBSXx · 4 comments
xXPBSXx commented 2026-10-11 13:06:34 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T13:06:34Z.


AI-assisted (Claude Code), reviewed by the contributor.

Title: Dead Cells (PPSA15552, from the owner's own dump), Windows. Relinked from reconstructed ELFs (the SELF is a 4f153d1d container); the import audit has no absent imports.

Observed: the title starts, runs for a moment and aborts with

what():  NGS2: rack id 0x4001 is not implemented
FATAL: abort() (SIGABRT)

The throw is RackOptionSize in core/libs/prx/libSceNgs2.native/src/Rack.cpp, which knows five rack ids (0x1000 sampler, 0x2000 submixer, 0x2001 reverb, 0x3000 mastering, 0x4002 custom submixer). The title asks for 0x4001.

Not established: what 0x4001 is and what option structure goes with it. 0x4002 being the custom submixer rack suggests a neighbouring custom rack kind, but I found no reference: shadPS4's src/core/libraries/ngs2 has no rack-id table (only ngs2_custom.h for the custom rack option layout), and I am not guessing a layout. If someone has a reference for rack id 0x4001, or can capture the option block this title passes, that is what blocks the title. I did not look at the picture or the sound; the abort happens before that.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5801324222 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3553). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-11T13:06:34Z. --- AI-assisted (Claude Code), reviewed by the contributor. **Title:** Dead Cells (PPSA15552, from the owner's own dump), Windows. Relinked from reconstructed ELFs (the SELF is a `4f153d1d` container); the import audit has no absent imports. **Observed:** the title starts, runs for a moment and aborts with ``` what(): NGS2: rack id 0x4001 is not implemented FATAL: abort() (SIGABRT) ``` The throw is `RackOptionSize` in `core/libs/prx/libSceNgs2.native/src/Rack.cpp`, which knows five rack ids (0x1000 sampler, 0x2000 submixer, 0x2001 reverb, 0x3000 mastering, 0x4002 custom submixer). The title asks for 0x4001. **Not established:** what 0x4001 is and what option structure goes with it. 0x4002 being the custom submixer rack suggests a neighbouring custom rack kind, but I found no reference: shadPS4's `src/core/libraries/ngs2` has no rack-id table (only `ngs2_custom.h` for the custom rack option layout), and I am not guessing a layout. If someone has a reference for rack id 0x4001, or can capture the option block this title passes, that is what blocks the title. I did not look at the picture or the sound; the abort happens before that.
xXPBSXx commented 2026-10-11 17:43:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T17:43:29Z.


Source for what 0x4001 is, and what stops a small fix; I did not run the title for this.

  • What it is: KytyPS5's src/libs/ngs2.cpp maps rack id 0x4001 to Ngs2RackType::CustomSampler in Ngs2RackCreate (it checks option->size == sizeof(Ngs2CustomSamplerRackOption)) and fills reset defaults for it in Ngs2FillDefaultRackOption, next to 0x4002 (custom submixer) and 0x4003 (custom mastering). So 0x4001 is the custom sampler rack, the custom-module counterpart of the sampler rack 0x1000.
  • Option layout: shadPS4's src/core/libraries/ngs2/ngs2_custom.h declares OrbisNgs2CustomSamplerRackOption as an OrbisNgs2CustomRackOption followed by six u32 (maxChannelWorks, maxWaveformBlocks, maxAtrac9Decoders, maxAtrac9ChannelWorks, maxAjmAtrac9Decoders, maxCodecCaches). KytyPS5's Ngs2CustomSamplerRackOption has the same fields in the same order. The custom rack header here (Ngs2CustomRackOption, 1280 bytes) plus those six u32 makes 1304 bytes; that size is computed from the two layouts, not observed from the title.
  • Why I did not add just the rack id: a rack that can be created but whose voices cannot be set up would only move the failure from RackOptionSize to the first voice parameter. A custom sampler voice has its own parameter ids (OrbisNgs2CustomSamplerVoice*Param in the same header: setup, waveform blocks, waveform address, frame offset, exit loop, pitch) and the voice has to run the sampler path plus the rack's UserFx2 modules; today Ngs2ApplyCustomParam (Custom.cpp) only knows the custom submixer, and Render.cpp only renders sampler racks by rackId == 0x1000. That is a feature, not a one-line change.
  • What would unblock a real implementation: the option block Dead Cells passes (size, numModules, module ids, maxVoices) and the first voice parameter ids it sends to this rack. With those the rack creation could be added in a first PR and the voice side in a second.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6111843764 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3553#issuecomment-6111843764). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-11T17:43:29Z. --- Source for what 0x4001 is, and what stops a small fix; I did not run the title for this. - **What it is:** KytyPS5's `src/libs/ngs2.cpp` maps rack id `0x4001` to `Ngs2RackType::CustomSampler` in `Ngs2RackCreate` (it checks `option->size == sizeof(Ngs2CustomSamplerRackOption)`) and fills reset defaults for it in `Ngs2FillDefaultRackOption`, next to `0x4002` (custom submixer) and `0x4003` (custom mastering). So `0x4001` is the custom sampler rack, the custom-module counterpart of the sampler rack `0x1000`. - **Option layout:** shadPS4's `src/core/libraries/ngs2/ngs2_custom.h` declares `OrbisNgs2CustomSamplerRackOption` as an `OrbisNgs2CustomRackOption` followed by six `u32` (`maxChannelWorks`, `maxWaveformBlocks`, `maxAtrac9Decoders`, `maxAtrac9ChannelWorks`, `maxAjmAtrac9Decoders`, `maxCodecCaches`). KytyPS5's `Ngs2CustomSamplerRackOption` has the same fields in the same order. The custom rack header here (`Ngs2CustomRackOption`, 1280 bytes) plus those six `u32` makes 1304 bytes; that size is computed from the two layouts, not observed from the title. - **Why I did not add just the rack id:** a rack that can be created but whose voices cannot be set up would only move the failure from `RackOptionSize` to the first voice parameter. A custom sampler voice has its own parameter ids (`OrbisNgs2CustomSamplerVoice*Param` in the same header: setup, waveform blocks, waveform address, frame offset, exit loop, pitch) and the voice has to run the sampler path plus the rack's UserFx2 modules; today `Ngs2ApplyCustomParam` (`Custom.cpp`) only knows the custom submixer, and `Render.cpp` only renders sampler racks by `rackId == 0x1000`. That is a feature, not a one-line change. - **What would unblock a real implementation:** the option block Dead Cells passes (size, `numModules`, module ids, `maxVoices`) and the first voice parameter ids it sends to this rack. With those the rack creation could be added in a first PR and the voice side in a second. AI-assisted (Claude Code).
xXPBSXx commented 2026-10-11 17:53:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T17:53:55Z.


Captured from Dead Cells (PPSA15552, Windows, main a11c8f7f7): with a local trace of the option block (not committed), sceNgs2RackQueryBufferSize/sceNgs2RackCreate receive:

  • rack id 0x4001, option size = 1304 (0x518), which is the size computed above from shadPS4's and KytyPS5's layouts (1280-byte custom rack header plus six u32), so that layout is confirmed for this title;
  • name "Default", max_grain_samples = 0x200, max_voices = 256, max_input_delay_blocks = 0, max_matrices = 1, max_ports = 8;
  • custom part: state_size = 48, num_buffers = 1, num_modules = 1, and the single module has module_id = 0x13, option = nullptr, state_size = 0. It is not the UserFx2 module (0x1f), so the rack is made of one built-in module this library does not know. KytyPS5 skips non-0x1f modules at creation and render with a warning; I found no source that says what 0x13 is.
  • the title creates this rack twice.

Branch with rack creation for 0x4001 and a test (UserFx2 modules work as for the custom submixer; module id 0x13 still throws, default options still throw): xXPBSXx:fix/ngs2-custom-sampler-rack (58c902fe2, ctest -R ngs2_ passes, 8 of 8). To see what comes next I also ran the title with a local, uncommitted change that lets a module without an option through: the title then stops on a different call, sceNgs2GeomResetSourceParam not implemented (60 s run, abort()), before any voice parameter reaches the custom sampler rack. So the voice parameter ids are still unknown, and the Geom calls come first.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6111938190 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3553#issuecomment-6111938190). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-11T17:53:55Z. --- Captured from Dead Cells (PPSA15552, Windows, `main` a11c8f7f7): with a local trace of the option block (not committed), `sceNgs2RackQueryBufferSize`/`sceNgs2RackCreate` receive: - rack id `0x4001`, option `size = 1304` (`0x518`), which is the size computed above from shadPS4's and KytyPS5's layouts (1280-byte custom rack header plus six `u32`), so that layout is confirmed for this title; - name `"Default"`, `max_grain_samples = 0x200`, `max_voices = 256`, `max_input_delay_blocks = 0`, `max_matrices = 1`, `max_ports = 8`; - custom part: `state_size = 48`, `num_buffers = 1`, `num_modules = 1`, and the single module has `module_id = 0x13`, `option = nullptr`, `state_size = 0`. It is not the UserFx2 module (`0x1f`), so the rack is made of one built-in module this library does not know. KytyPS5 skips non-`0x1f` modules at creation and render with a warning; I found no source that says what `0x13` is. - the title creates this rack twice. Branch with rack creation for `0x4001` and a test (UserFx2 modules work as for the custom submixer; module id `0x13` still throws, default options still throw): `xXPBSXx:fix/ngs2-custom-sampler-rack` (`58c902fe2`, `ctest -R ngs2_` passes, 8 of 8). To see what comes next I also ran the title with a local, uncommitted change that lets a module without an option through: the title then stops on a different call, `sceNgs2GeomResetSourceParam not implemented` (60 s run, `abort()`), before any voice parameter reaches the custom sampler rack. So the voice parameter ids are still unknown, and the Geom calls come first. AI-assisted (Claude Code).
hansjm10 commented 2026-10-13 16:21:07 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by hansjm10 on 2026-10-13T16:21:07Z.


I'm investigating the next Dead Cells (PPSA15552) stop after the custom sampler rack, not a competing rack implementation.

On Linux (Debian 12, GCC 14.4, RADV GFX1036 / Mesa 22.3.6), main fdefd7660 plus #4417's runtime changes at 1d5190d0 gets past rack creation and stops at:

NGS2: non-default listener orientation is unsupported

A local diagnostic, now removed, captured this sceNgs2GeomCalcListener call:

flags = 0
position = (-0, 0, 0)
front = (1, 0, -0)
up = (0, 1, 0)
velocity = (0, 0, 0)
sound_speed = 343
reserved = (0, 0)

#4598 implements only the default orientation. Before extending it, I need evidence for the native transform convention—not another emulator's assumed matrix.

No rotation fix is implemented yet. A follow-up would depend on #4417 for the title reproduction; plain main still stops on rack 0x4001.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6150091545 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3553#issuecomment-6150091545). Originally posted by [hansjm10](https://github.com/hansjm10) on 2026-10-13T16:21:07Z. --- I'm investigating the next Dead Cells (PPSA15552) stop after the custom sampler rack, not a competing rack implementation. On Linux (Debian 12, GCC 14.4, RADV GFX1036 / Mesa 22.3.6), `main` `fdefd7660` plus #4417's runtime changes at `1d5190d0` gets past rack creation and stops at: ``` NGS2: non-default listener orientation is unsupported ``` A local diagnostic, now removed, captured this `sceNgs2GeomCalcListener` call: ``` flags = 0 position = (-0, 0, 0) front = (1, 0, -0) up = (0, 1, 0) velocity = (0, 0, 0) sound_speed = 343 reserved = (0, 0) ``` #4598 implements only the default orientation. Before extending it, I need evidence for the native transform convention—not another emulator's assumed matrix. No rotation fix is implemented yet. A follow-up would depend on #4417 for the title reproduction; plain `main` still stops on rack `0x4001`. AI-assisted: yes.
oneandonlydean commented 2026-10-14 00:08:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T00:08:38Z.


Rack 0x4001 is on main from #4417, so closing this one. The next stop (non-default listener orientation is unsupported) is a separate problem and can go in a new issue. If PPSA15552 still stops on rack 0x4001 on current main, comment here.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6157869169 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3553#issuecomment-6157869169). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-14T00:08:38Z. --- Rack 0x4001 is on main from #4417, so closing this one. The next stop (`non-default listener orientation is unsupported`) is a separate problem and can go in a new issue. If PPSA15552 still stops on rack 0x4001 on current main, comment here.
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#3553
No description provided.