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

  • Thread starter JRoad
  • Start date
  • Views 733,515
  • 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
  • Psionic Roshambo @ Psionic Roshambo:
    By your powers combined, hmmm where is Epstein?
  • K3Nv2 @ K3Nv2:
    Just another shit fps clone
  • K3Nv2 @ K3Nv2:
    Thought it was some warzone dlc bs
  • Psionic Roshambo @ Psionic Roshambo:
    Looks like an enhanced Far cry 1
  • K3Nv2 @ K3Nv2:
    That's a far cry from it
  • BigOnYa @ BigOnYa:
    Is it a free to play bs, pay to get any good weapon/gear
  • K3Nv2 @ K3Nv2:
    Not free to play but $35
  • K3Nv2 @ K3Nv2:
    Inb4 kiiwii gives it a 0/10
  • BigOnYa @ BigOnYa:
    6/10 rating on steam
  • Psionic Roshambo @ Psionic Roshambo:
    I would like a Predator game "Kill Team" it takes place in the Jungle of the first movie, your team is sent to hunt the predator, using current tech drones and a trained team. Set traps use strategy to hunt and trap or kill the predator.
  • BigOnYa @ BigOnYa:
    Ill stick with my Battlefield. Yea a predator hunting game like that would be cool. Esp if you can be Arnold and say "Get to da choppa"
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Maybe Arnold could do a cameo voice acting, he is the one briefing you on the mission
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Honestly surprised they didn't make a tie in game for Predators that movie was awesome
  • Psionic Roshambo @ Psionic Roshambo:
    I was kinda sad the Yakuza guy died sword fighting a predator lol
  • Psionic Roshambo @ Psionic Roshambo:
    The Russian guy went out like a boss
  • Psionic Roshambo @ Psionic Roshambo:
    Double claymores to the face definitely kill a predator lol
  • BigOnYa @ BigOnYa:
    I went today and looked at a motorcycle someone was selling. I get there and the battery on it was dead, so the guy grabbed a battery charger and hooked it up. He plugged it into the wall, and the motorcycle sparked and started smoking. Come to find out the bike uses a 6 volt battery and the guy had the charger set to 12v. I said sorry to the dude and walked away. I felt bad for him tho.
  • Psionic Roshambo @ Psionic Roshambo:
    Sounds like it would be an exciting ride....
  • Psionic Roshambo @ Psionic Roshambo:
    Not sure I would want something on fire between my legs
  • BigOnYa @ BigOnYa:
    He ruined it basically. Sad cause it was a decent old bike. It would take more money to rewire the bike than it was worth tho.
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah I'm sure at minimum the starter was fried
  • Psionic Roshambo @ Psionic Roshambo:
    Alternator and battery
  • BigOnYa @ BigOnYa:
    Prob alot of fried parts. It was still smoking when I left.
    Psionic Roshambo @ Psionic Roshambo: Yikes