Homebrew WIP nxdumptool - Nintendo Switch Dump Tool

DarkMatterCore

Finding my light.
OP
Developer
Joined
May 30, 2009
Messages
1,292
Trophies
1
Age
28
Location
Madrid, Spain
Website
github.com
XP
2,606
Country
Spain
I think so? I tried to import a .wav file to Audacity, but it said to try importing it as raw data.
Odds are they're not actually RIFF-encoded WAVs, then. They just happen to use the .wav extension. This is what I meant when I said file extensions don't really mean anything at all.

Try to transcode them using vgmstream.
 
Last edited by DarkMatterCore,

Anonymous42456

Well-Known Member
Member
Joined
Jan 11, 2017
Messages
145
Trophies
0
XP
791
Country
United States
Odds are they're not actually RIFF-encoded WAVs, then. They just happen to use the .wav extension. This is what I meant when I said file extensions don't really mean anything at all.

Try to transcode them using vgmstream.
Do I need to dump the full game first before using the soundtrack?
 

PalindromicBreadLoaf

Just a duck floating in a pond.
Member
Joined
Aug 22, 2018
Messages
401
Trophies
0
Age
23
Location
Canada
XP
1,746
Country
Canada
Whenever I try to dump a cartridge with this application, whether it be to a NSP or XCI, it'll finish fine, but when checking the validity it will fail. And when I try to install it using either GoldLeaf of Awoo Installer, it'll error out immediately. I'm using Atmosphere 0.19.5R2 with the latest sigpatches from here https://github.com/ITotalJustice/patches/releases
Any idea what the problem is?
 

DarkMatterCore

Finding my light.
OP
Developer
Joined
May 30, 2009
Messages
1,292
Trophies
1
Age
28
Location
Madrid, Spain
Website
github.com
XP
2,606
Country
Spain
Do I need to dump the full game first before using the soundtrack?
What do you mean? You should be able to dump just the audio resources from the game using the RomFS browser.

Whenever I try to dump a cartridge with this application, whether it be to a NSP or XCI, it'll finish fine, but when checking the validity it will fail. And when I try to install it using either GoldLeaf of Awoo Installer, it'll error out immediately. I'm using Atmosphere 0.19.5R2 with the latest sigpatches from here https://github.com/ITotalJustice/patches/releases
Any idea what the problem is?
How are you exactly checking the validity? Are you using the latest version? Are you using a FAT32 SD card?

XCI dumps should always pass all validity tests. NSP dumps from gamecards generated at this time won't pass validity checks right off the bat because their NCA headers are modified - this will be addressed in the ongoing rewrite.
 

PalindromicBreadLoaf

Just a duck floating in a pond.
Member
Joined
Aug 22, 2018
Messages
401
Trophies
0
Age
23
Location
Canada
XP
1,746
Country
Canada
What do you mean? You should be able to dump just the audio resources from the game using the RomFS browser.


How are you exactly checking the validity? Are you using the latest version? Are you using a FAT32 SD card?

XCI dumps should always pass all validity tests. NSP dumps from gamecards generated at this time won't pass validity checks right off the bat because their NCA headers are modified - this will be addressed in the ongoing rewrite.
I'm using the tools built in checker. I tried with both the offline version and online version, with an XCI, and it says it failed verification. Along with that trying to use the XCI with anything results in failure. Trying to install either a dumped NSP or XCI also fails immediately with an fs error. I am on version 1.1.14, with a Fat32 SD Card.
 
Last edited by PalindromicBreadLoaf,

DarkMatterCore

Finding my light.
OP
Developer
Joined
May 30, 2009
Messages
1,292
Trophies
1
Age
28
Location
Madrid, Spain
Website
github.com
XP
2,606
Country
Spain
I'm using the tools built in checker. I tried with both the offline version and online version, with an XCI, and it says it failed verification. Along with that trying to use the XCI with anything results in failure. Trying to install either a dumped NSP or XCI also fails immediately with an fs error. I am on version 1.1.14, with a Fat32 SD Card.
Odds are you're dealing with an unreported gamecard revision that's not available in either database, which also explains why the XCI verification fails: there really is no match at all. I'd like to verify this myself, so I'll send you a DM in a short while.

NSP verification will always fail for gamecard NSPs, because of multiple reasons:

1. NSP is a format used essentially for digital-based content, not for gamecards.
2. Only No-Intro offers a way to verify digital-based content, not through their full NSP checksum, but rather through their individual NCA checksums (NCAs being the files stored inside every NSP).
3. NSWDB only offers gamecard dump verification.
4. Just like I said before, NSP dumps generated from gamecards at this time hold modified NCA headers, which only contributes to make them impossible to validate.

If anything, I'd say this is related to sigpatches. Odds are you didn't install them properly.
 
Last edited by DarkMatterCore,

w350922439

Well-Known Member
Newcomer
Joined
Apr 4, 2020
Messages
80
Trophies
0
Age
34
XP
894
Country
Hong Kong
hello,when i dump a game.
it warning and error like this.
my cfw is 12.1.0 atmosphere 0.19.5.prod.keys is use the 12.1.0 update.
thx for u tools.
 

Attachments

  • 2021082212404500-83F694ADD072A2CFC4056BFDAEA07686.jpg
    2021082212404500-83F694ADD072A2CFC4056BFDAEA07686.jpg
    120.5 KB · Views: 276

ppap2345

Member
Newcomer
Joined
Oct 16, 2021
Messages
8
Trophies
0
Age
24
XP
38
Country
China
不确定这是否属于 nxdumptool 问题,因为它似乎只在与 sys-clk 混合时才会出现,所以我想把它贴在这里而不是 github,以防其他人遇到它。

我注意到 sys-clk 和 nxdumptool 无论出于何种原因在我的设置中都表现不佳。
我已经尝试了 sys-clk 的最新版本和最新提交,并且在小程序和标题模式下都收到了“无法初始化 pm:dmnt 服务(0x00000615)”错误。
- 气氛:0.10.1
- 居屋:9.0.1
- nxdumptool:1.1.8


编辑:对于那些想知道我怎么知道它是 sys-clk 的人;我删除了大气/内容中的所有标题文件夹,然后将它们一个一个地添加回来,直到我将范围缩小到 sys-clk。
ProcessMana title
 

vance003

New Member
Newbie
Joined
Nov 17, 2021
Messages
3
Trophies
0
Age
61
XP
31
Country
United States
I'm using NXDumpTool 1.1.14 on Atmosphere 1.2.1 / fw 13.1.0

Lately I've been finding that dumping NSPs of some (but not all) installed games generates the following error:
retrieveNcaTikTitleKey: NCA rights ID unavailable in this console!

I'm told that the game is probably a "pre-installed title," but it was purchased and downloaded like normal from the Nintendo shop. If I proceed with the dump, the generated NSP is still encrypted and hence unplayable (as far as I know).

Can anybody point me to a work-around or solution for this?
 

DarkMatterCore

Finding my light.
OP
Developer
Joined
May 30, 2009
Messages
1,292
Trophies
1
Age
28
Location
Madrid, Spain
Website
github.com
XP
2,606
Country
Spain
I'm using NXDumpTool 1.1.14 on Atmosphere 1.2.1 / fw 13.1.0

Lately I've been finding that dumping NSPs of some (but not all) installed games generates the following error:
retrieveNcaTikTitleKey: NCA rights ID unavailable in this console!

I'm told that the game is probably a "pre-installed title," but it was purchased and downloaded like normal from the Nintendo shop. If I proceed with the dump, the generated NSP is still encrypted and hence unplayable (as far as I know).

Can anybody point me to a work-around or solution for this?
If the game was shared using an account from a different console, you need to launch HBL while overriding the game you wish to dump, and then launch nxdumptool to dump it.

There's no other way around to overcome this limitation - this is because the ticket for the shared game is generated on-the-fly while launching it (which also explains why an Internet connection is required to use it at all).
 

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
6,284
Trophies
3
XP
12,053
Country
Poland
If you need to unpack romfs, you can use DBI.
I know. It's just I prefer to recommend open source tools first. Currently there is no officially released comprehensive open source tool supporting dumping romfs from sparse titles, so if it will come to this, I will be recommending close source tools.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • TwoSpikedHands @ TwoSpikedHands:
    Do I restart now using what i've learned on the EU version since it's a better overall experience? or do I continue with the US version since that is what ive been using, and if someone decides to play my hack, it would most likely be that version?
  • Sicklyboy @ Sicklyboy:
    @TwoSpikedHands, I'll preface this with the fact that I know nothing about the game, but, I think it depends on what your goals are. Are you trying to make a definitive version of the game? You may want to refocus your efforts on the EU version then. Or, are you trying to make a better US version? In which case, the only way to make a better US version is to keep on plugging away at that one ;)
  • Sicklyboy @ Sicklyboy:
    I'm not familiar with the technicalities of the differences between the two versions, but I'm wondering if at least some of those differences are things that you could port over to the US version in your patch without having to include copyrighted assets from the EU version
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
  • Karma177 @ Karma177:
    do y'all think having an sd card that has a write speed of 700kb/s is a bad idea?
    trying to restore emunand rn but it's taking ages... (also when I finished the first time hekate decided to delete all my fucking files :wacko:)
  • The Real Jdbye @ The Real Jdbye:
    @Karma177 that sd card is 100% faulty so yes, its a bad idea
  • The Real Jdbye @ The Real Jdbye:
    even the slowest non-sdhc sd cards are a few MB/s
  • Karma177 @ Karma177:
    @The Real Jdbye it hasn't given me any error trying to write things on it so I don't really think it's faulty (pasted 40/50gb+ folders and no write errors)
  • DinohScene @ DinohScene:
    run h2testw on it
    +1
  • DinohScene @ DinohScene:
    when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Samsung SD format can sometimes fix them too
  • Purple_Heart @ Purple_Heart:
    yes looks like an faulty sd
  • Purple_Heart @ Purple_Heart:
    @Psionic Roshambo i may try that with my dead sd cards
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    It's always worth a shot
  • TwoSpikedHands @ TwoSpikedHands:
    @The Real Jdbye, I considered that, but i'll have to wait until i can get the eu version in the mail lol
    TwoSpikedHands @ TwoSpikedHands: @The Real Jdbye, I considered that, but i'll have to wait until i can get the eu version in the...