ROM Hack RELEASE NSC_Builder. Nintendo Switch Cleaner and Builder. (Game+updates+dlc in a single xci)

  • Thread starter JRoad
  • Start date
  • Views 733,226
  • Replies 2,827
  • Likes 74

markmcrobie

Well-Known Member
Member
Joined
May 24, 2008
Messages
623
Trophies
0
XP
1,247
hi. I am sorry to bother you. Is the file limit still 32gb? Is there any chance of increasing this? I hope you are well. Be safe.

The reason you can't have XCI files bigger than 32GB is nothing to do with NSCBuilder or SX OS, it's that the real retail cartridge would need to be a 64GB cartridge and those don't exist yet, Nintendo haven't made any. So the Switch won't allow an XCI that's essentially emulating a 64GB cartridge.
 
D

Deleted User

Guest
The reason you can't have XCI files bigger than 32GB is nothing to do with NSCBuilder or SX OS, it's that the real retail cartridge would need to be a 64GB cartridge and those don't exist yet, Nintendo haven't made any. So the Switch won't allow an XCI that's essentially emulating a 64GB cartridge.

I understand sir but I do believe that soon we will see a 64gb cartridge being released...
 

Jayinem81

Well-Known Member
Member
Joined
Apr 19, 2020
Messages
958
Trophies
0
Age
42
XP
998
Country
United States
That sucks, is it possible to install the base game to nand, and make an XCI of just the update + dlcs for external hard drive? Or does the external hard drive have to have the base game? I don't have 25 gb to install the update to nand.
 

markmcrobie

Well-Known Member
Member
Joined
May 24, 2008
Messages
623
Trophies
0
XP
1,247
That sucks, is it possible to install the base game to nand, and make an XCI of just the update + dlcs for external hard drive? Or does the external hard drive have to have the base game? I don't have 25 gb to install the update to nand.

I *think* that would work. NSCB certainly lets you make an XCI of just update and/or DLC data. Whether SX OS/Switch will load it, I don't know. Easy to try I guess.
 

Tomy Sakazaki

Well-Known Member
Member
Joined
Oct 23, 2006
Messages
880
Trophies
0
Website
Visit site
XP
812
Country
Brazil
Hello. I'm trying to use NSC_Builder for the 1st time. Machine is a updated windows 10 x64. When I try to use the 1st or 2nd option of NSCB.bat the screen will redraw the options screen and scroll it indefinitely. When I try dragging and dropping any nsp or dir it shows the success screen but I can't find any converted file.

EDIT: I'm using the x64 binary version.
 

Attachments

  • this_loops.png
    this_loops.png
    53.8 KB · Views: 147
  • nothing_to_see.png
    nothing_to_see.png
    73 KB · Views: 147
  • success_or_not.png
    success_or_not.png
    24.9 KB · Views: 100
Last edited by Tomy Sakazaki,

Tomy Sakazaki

Well-Known Member
Member
Joined
Oct 23, 2006
Messages
880
Trophies
0
Website
Visit site
XP
812
Country
Brazil
Did you look in output folder? If it's not there it isn't working.
I know already that it isn't working. I'm asking for help to make it work.

EDIT: I got the python version (using with 3.7.1 python).
Seems to fare better now. However I'm having trouble to convert the base games (I'm dumping them using tinfoil, running SX OS 2.9.5 beta, sysnand fw 10.0.2).
It launches an exception when it seems to try to recover info form the nsp header. Then skips the base game convertion and try to convert the dlc/updates.

EDIT 2: I'm trying to convert some massive games that I'll mainly play docked from installed to XCI. I dunno if the integrated tinfoil nsp dumper is to blame or if the nsp I've downloaded through tinfoil have wrong header.

EDIT 3: Used https://github.com/DarkMatterCore/nxdumptool/releases to dump the nsp, then Python version of nsc_builder. The last problem is with the FAT32 settings. If I generate a XCI without splitting (default file settings) it will load on SX Menu. But I want to try using splitted XCI, if I generate a game with updates/dlcs and turn file splitting it won't even load the game on switch home menu menu.
 

Attachments

  • process_only_updates_dlcs.png
    process_only_updates_dlcs.png
    89 KB · Views: 163
Last edited by Tomy Sakazaki,

nex86

Well-Known Member
Newcomer
Joined
May 19, 2017
Messages
45
Trophies
0
Age
37
XP
118
Country
Gambia, The
getting these errors when trying to decompress NSZ. any idea?


Code:
 File "squirrel.py", line 2789, in <module>
  File "lib\decompressor.py", line 101, in decompress_nsz
  File "Fs\Nsp.py", line 9775, in decompress_direct
  File "Fs\Nsp.py", line 9575, in get_data_from_cnmt
UnboundLocalError: local variable 'titleid' referenced before assignment
[17728] Failed to execute script squirrel
...................................................
STILL 0 FILES TO PROCESS
...................................................
---------------------------------------------------
*********** ALL FILES WERE PROCESSED! *************
---------------------------------------------------
 

pcwizard7

Well-Known Member
Member
Joined
Aug 2, 2013
Messages
1,409
Trophies
0
XP
1,688
Country
Australia
The problem with nscbuilder that many people here are experiencing (sxos reading / install errors) is being caused by @DarkMatterCore NXDumptool. I and @DarkMatterCore working it out and soon release an update we have an idea what it is..

in the meantime, a workaround is to used hactool to unpack a dumped nsp and repack it again to nsp. then use the repacked nsps files to combine with nscbuilder to a xci/nsp file

hactool instructions
hactoolnet -t pfs0 [nsp file] --outdir [unpacked nsp dir]

Go into the unpacked NSP dir and delete all XMLs and JGPs

hactoolnet -t pfsbuild [unpacked nsp dir] --outfile [new nsp file]

if you have sxos you can just use sxdumper and it should be fine
 
Last edited by pcwizard7,
  • Like
Reactions: lordelan

DarkMatterCore

Finding my light.
Developer
Joined
May 30, 2009
Messages
1,292
Trophies
1
Age
28
Location
Madrid, Spain
Website
github.com
XP
2,606
Country
Spain
The problem with nscbuilder that many people here are experiencing (sxos reading / install errors) is being caused by @DarkMatterCore NXDumptool. I and @DarkMatterCore working it out and soon release an update we have an idea what it is..

in the meantime, a workaround is to used hactool to unpack a dumped nsp and repack it again to nsp. then use the repacked nsps files to combine with nscbuilder to a xci/nsp file

hactool instructions
hactoolnet -t pfs0 [nsp file] --outdir [unpacked nsp dir]

Go into the unpacked NSP dir and delete all XMLs and JGPs

hactoolnet -t pfsbuild [unpacked nsp dir] --outfile [new nsp file]

if you have sxos you can just use sxdumper and it should be fine

It's not being caused by nxdumptool at all... The code changes from the custom build I'm preparing won't be part of the public repository - they break the reproduction of the AuthoringTool format I'm trying to maintain.

The fact that a simple repack fixes this issue is what makes me think NSC_Builder does something differently when dealing with nxdumptool NSPs. Other tools and programs work fine with these dumps.

I'm willing to release a custom build with the necessary changes to make NSC_Builder XCI generation work properly, but I won't be maintaining it. This will only be temporary.

@JRoad I tried commenting out all XML/JPG generation and added PFS0 header aligning to a 0x20-byte boundary, just to see if it made any difference, but the generated XCIs using these new NSP dumps were still failing (even though their size is an exact match of the repacks created by hactoolnet).

I suspect file order detection/handling is at fault here. NCAs, ticket and cert are all identical to the ones from SXDumper NSPs, only the file order is different.

nxdumptool saves NCAs first (same order from the CNMT), then the CNMT NCA, then the ticket and finally the cert.

Please take a look at the currently opened issue if you wish to know more about our findings: https://github.com/DarkMatterCore/nxdumptool/issues/59.
 
Last edited by DarkMatterCore,

pcwizard7

Well-Known Member
Member
Joined
Aug 2, 2013
Messages
1,409
Trophies
0
XP
1,688
Country
Australia
It's not being caused by nxdumptool at all... The code changes from the custom build I'm preparing won't be part of the public repository - they break the reproduction of the AuthoringTool format I'm trying to maintain.

The fact that a simple repack fixes this issue is what makes me think NSC_Builder does something differently when dealing with nxdumptool NSPs. Other tools and programs work fine with these dumps.

I'm willing to release a custom build with the necessary changes to make NSC_Builder XCI generation work properly, but I won't be maintaining it. This will only be temporary.

@JRoad I tried commenting out all XML/JPG generation and added PFS0 header aligning to a 0x20-byte boundary, just to see if it made any difference, but the generated XCIs using these new NSP dumps were still failing (even though their size is an exact match of the repacks created by hactoolnet).

I suspect file order detection/handling is at fault here. NCAs, ticket and cert are all identical to the ones from SXDumper NSPs, only the file order is different.

nxdumptool saves NCAs first (same order from the CNMT), then the CNMT NCA, then the ticket and finally the cert.

Please take a look at the currently opened issue if you wish to know more about our findings: https://github.com/DarkMatterCore/nxdumptool/issues/59.

I didn't mean to say NXDumptool is at fault just the way nxdumptools order things is different to nsc builder and if a repack from hactool fixes the issue means it too uses the same order if they both doing it wrong fine

I personally would like to see this as an optional setting toggle if @JRoad can't be contacted and corrected

thanks
 

darro87

Member
Newcomer
Joined
Mar 31, 2017
Messages
11
Trophies
0
Age
37
XP
85
Country
Chad
Hi.

Can anyone advise on why some of my NSPs compress fine while others compress to 1KB. Seems like all files belonging to certain games (DLC, UPDATE, BASE) get output as 1KB. I read through this thread as best I could but did not find a solution to this. I did try adding the master_key_010 line as suggested for other issues, but this didn't have any impact on my issue.

Any advise is appreciated. Thanks!
 

pcwizard7

Well-Known Member
Member
Joined
Aug 2, 2013
Messages
1,409
Trophies
0
XP
1,688
Country
Australia
Hi.

Can anyone advise on why some of my NSPs compress fine while others compress to 1KB. Seems like all files belonging to certain games (DLC, UPDATE, BASE) get output as 1KB. I read through this thread as best I could but did not find a solution to this. I did try adding the master_key_010 line as suggested for other issues, but this didn't have any impact on my issue.

Any advise is appreciated. Thanks!

are you mistakenly grabbing the files in batchprocess folder in nxdumptool/nsp/
 

darro87

Member
Newcomer
Joined
Mar 31, 2017
Messages
11
Trophies
0
Age
37
XP
85
Country
Chad
are you mistakenly grabbing the files in batchprocess folder in nxdumptool/nsp/
HI. Not sure what you mean. This is the first time I'm using this app. I used option 8, dragged an entire folder of nsp files into it and it successfully processed most of the files, but some just defaulted to 1kb. I went ahead and manually dragged a few of the original nsp files that did this and it always resulted in the same 1kb files.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • 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
  • I @ I-need-help-with-wup-wiiu:
    i need help with nusspli failed downloads, can someone respond to my thread? pretty please:wub: