feat(libSceNgs2): implement the Geom reset functions #3995
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3995"
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 delarun on 2026-10-11T20:52:15Z.
What
Implements
sceNgs2GeomResetListenerParamandsceNgs2GeomResetSourceParam, taken from #1021 and limited to the two reset functions, as its closing comment suggested. The Geom structures get their real layouts.sceNgs2GeomCalcListenerandsceNgs2GeomApplystay unimplemented.The reset defaults are recorded in docs/dev/TechnicalDebt.md.
Tested
Linux (CachyOS), Dead Cells (PPSA15552) with #3793 on top: it used to abort with
sceNgs2GeomResetSourceParam not implemented(reported in #1021) and now gets past that call. It stops later on an unrelated NGS2 patch, left for a separate PR.tools/check_conventions.pypasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T21:15:27Z.
The conventions job currently fails because the title is not Conventional Commits (
Fix/ngs2 dead cells). A title such asfix(libSceNgs2): implement geometry reset callsshould satisfy the title rule.Imported from boykopovar/AnyPS5. Originally posted by delarun on 2026-10-11T22:01:34Z.
Thanks, changed it
also rebased to main
Imported from boykopovar/AnyPS5. Originally posted by TideOPL on 2026-10-11T22:03:10Z.
Thanks for picking up the two Geom resets from #1021. A few notes:
Pull request title is not Conventional Commits: Fix/ngs2 dead cells). Something likefeat(libSceNgs2): implement the Geom reset functionswould pass.sceNgs2VoiceControlpatch change, where a rack handle with exactly one voice is taken to mean that voice, is driven by one title. It's recorded in TechnicalDebt, which is good, but a title that passes the wrong handle now patches silently instead of failing. Unless there's evidence that rack and voice handles coincide on the console, I'd keep the much better error message and leave the alias out of this PR. It's also a second topic, so it could be a PR of its own.Ngs2FindRack(patch.dest_handle)is called twice, and the secondrackshadows the first.Ngs2GeomAttribute.Tested by reviewer
Windows 11 (26200), WinLibs GCC 15.2.0 r7, Release, PR head 384c3c9de merged onto
mainc5da8233a. All 9ngs2_*tests pass, including the newngs2_geom. Not run: Dead Cells (I don't have it), Linux.AI-assisted: yes. Written with AI assistance (Claude Code), with the tests run on my machine; I reviewed it.
Imported from boykopovar/AnyPS5. Originally posted by delarun on 2026-10-11T22:05:46Z.
Thanks for the review and for running the tests on Windows.
feat(libSceNgs2): implement the Geom reset functions.patch from rack 0x4001 port 0 to rack 0x3000 with 1 voices. If I find evidence I'll open a separate PR for it.Ngs2FindRackcall and the shadowedrack: gone with the alias.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T23:20:14Z.
Please rebase onto main instead of merging it (d7f19897a1 is a merge commit) and drop the
sceNgs2VoiceControlmessage change inVoice.cpp: it is a second topic and it conflicts with #3793. The two resets don't need #3793, soDepends oncan be none.Imported from boykopovar/AnyPS5. Originally posted by delarun on 2026-10-12T11:44:01Z.
Done: rebased onto current main as a single commit, no merge commits. The
sceNgs2VoiceControlpatch message change is dropped from this PR; I'll bring it up separately once #3793 has landed. Depends on is now none, and the description is updated.