Repository navigation
NSP script: read the title ID from the package when it has no ticket and no tag - #217
Merged
Merged
Conversation
…ves its title ID from its own meta NCA title_of took the title ID only from the ticket's file name or a [title ID] tag in the file name. With neither, it now asks nx_extract --title, which reads the meta NCA's header with the keys' header_key.
This was referenced Oct 29, 2026
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
An NSP with no ticket (a standard-crypto dump, a repack) and no
[0100…]tag in its file name ends the build withno NSP with a readable title ID, although the keys open the package.title_ofread a title ID only from the ticket's file name or from a tag in the package's file name. With neither, it now reads the title ID from the package:nx_extract <prod.keys> --title <package>decrypts each meta NCA's header with the keys'header_keyand prints the lowest title ID. NSP, NSZ, XCI and XCZ take the same path, and the ticket and the tag keep their precedence. No key value is printed.Reported in #177 by @ericklobet-beep, and @1upbyte's rename of the file pointed at the cause. The upstream pull request is seedds/nxnative#666, and this patch carries it as
forwardeduntil it merges.Fixes #177
Checked
python3 scripts/patches.py checkpasses (patch queue: ok),python3 -m unittest discover -s scripts/testspasses (39 tests), and so doesdm/tools/tests/test_nsp_scan.py. The upstream run of all ofdm/tools/testspassed (612 tests). The new tests stub the reader at its boundary, the C# side needs real keys.nx_extract --titlewas run with a realprod.keyson the Tears of the Kingdom base NSP, which has no ticket, and it printed0100F2C0115B6000. With a tag-less symlink the scan resolved base and update to that game. macOS 27, Apple silicon. No game was built or played.Scope
dm/,scripts/,docs/,ref/,AGENTS.md) is edited directly: a change there is a patch inpatches/(scripts/patches.py export, andpatches.py checkpasses), with itsUpstream-Statusforwarded seedds/nxnative#666