Dead Cells (PPSA15552): NGS2 rack id 0x4001 is not implemented #3553
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 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
4f153d1dcontainer); the import audit has no absent imports.Observed: the title starts, runs for a moment and aborts with
The throw is
RackOptionSizeincore/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/ngs2has no rack-id table (onlyngs2_custom.hfor 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.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.
src/libs/ngs2.cppmaps rack id0x4001toNgs2RackType::CustomSamplerinNgs2RackCreate(it checksoption->size == sizeof(Ngs2CustomSamplerRackOption)) and fills reset defaults for it inNgs2FillDefaultRackOption, next to0x4002(custom submixer) and0x4003(custom mastering). So0x4001is the custom sampler rack, the custom-module counterpart of the sampler rack0x1000.src/core/libraries/ngs2/ngs2_custom.hdeclaresOrbisNgs2CustomSamplerRackOptionas anOrbisNgs2CustomRackOptionfollowed by sixu32(maxChannelWorks,maxWaveformBlocks,maxAtrac9Decoders,maxAtrac9ChannelWorks,maxAjmAtrac9Decoders,maxCodecCaches). KytyPS5'sNgs2CustomSamplerRackOptionhas the same fields in the same order. The custom rack header here (Ngs2CustomRackOption, 1280 bytes) plus those sixu32makes 1304 bytes; that size is computed from the two layouts, not observed from the title.RackOptionSizeto the first voice parameter. A custom sampler voice has its own parameter ids (OrbisNgs2CustomSamplerVoice*Paramin 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; todayNgs2ApplyCustomParam(Custom.cpp) only knows the custom submixer, andRender.cpponly renders sampler racks byrackId == 0x1000. That is a feature, not a one-line change.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).
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T17:53:55Z.
Captured from Dead Cells (PPSA15552, Windows,
maina11c8f7f7): with a local trace of the option block (not committed),sceNgs2RackQueryBufferSize/sceNgs2RackCreatereceive:0x4001, optionsize = 1304(0x518), which is the size computed above from shadPS4's and KytyPS5's layouts (1280-byte custom rack header plus sixu32), so that layout is confirmed for this title;"Default",max_grain_samples = 0x200,max_voices = 256,max_input_delay_blocks = 0,max_matrices = 1,max_ports = 8;state_size = 48,num_buffers = 1,num_modules = 1, and the single module hasmodule_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-0x1fmodules at creation and render with a warning; I found no source that says what0x13is.Branch with rack creation for
0x4001and a test (UserFx2 modules work as for the custom submixer; module id0x13still 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).
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),
mainfdefd7660plus #4417's runtime changes at1d5190d0gets past rack creation and stops at:A local diagnostic, now removed, captured this
sceNgs2GeomCalcListenercall:#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
mainstill stops on rack0x4001.AI-assisted: yes.
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.