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

  • Thread starter JRoad
  • Start date
  • Views 731,054
  • Replies 2,826
  • Likes 74

Puppydogpals

Well-Known Member
Member
Joined
Feb 19, 2018
Messages
194
Trophies
0
Age
43
XP
1,443
Country
United Kingdom
Solved it!!!

Had to download the base game again and merged it with the latest update and it worked... don't know why it did not work with a custo XCI with the older update in it... Thank you for your help!!

--------------------- MERGED ---------------------------


Thank you for your help, already posted the solution I used.
You probably could of Seperated the update and the base without needing to re download

Sent from my SM-G965F using Tapatalk
 
  • Like
Reactions: Carlos Escobar

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
v0.95 - xcz format, fixes and other stuff:
- Added xcz format supertrimmed to compressor. This means that it won't pack the update partition (system firmware content), a lossless compressor that will compress that partion will be added at a later time.
- Added more compression presets
- Added nsz and xcz verification to both the file-info gui and the batch interface
- Added renaming for nsz and xcz.
- xcz and nsz support will be added slowly to all functions
- Added option to convert xci to nsz when compressing them in configuration. It is a highly unneeded thing to do since tinfoil would install xcz or nsz files but to each their own if you feel the need of converting at least do it in a restorable and verifiable way.
- Added more information options in the FILE-INFO mode for nsz\xcz
- Fixed user compression profile configuration.
- Added -1 threads as an option. This sets the threads depending on the cpu logic cores.
- Reduced nsz header size and change file order to standard cnmt order.
- Individual mode will now filter the extensions not supported for the selected function preprocessing.
- Added romaji conversion as optional when renaming files.
- Added option to select files and folders to add to list via filebrowser window.
- Changed Read_cnmt option in File-Info to reflect the improvements made to it in the gui.
- Fixed restoration for keygeneration10
- Fixed verification for files transformed from keygeneration10 to a lower one.

Note: All the building processes and verification of unmodified files were unafected the
issue was in header restoration to keygeneration10 since it must be specified in hex as
0A instead of 10.
- Added RSV for 9.01 to the RSV check and restoration.

https://github.com/julesontheroad/NSC_BUILDER/releases/tag/v0.95
 

bostonBC

Well-Known Member
Member
Joined
Aug 17, 2011
Messages
1,304
Trophies
1
XP
1,416
Country
United States
Love this tool, it's great.

Having a little problem with the games requiring master key 9.

After processing to merge an update or just processing an NSP to an XCI they show up in the album in SX OS but they have a blank/white game graphic.

They play just fine as XCI's and install just fine and play from an XCI or NSP file.

I've dumped all the keys including master_key_09 using lockpick.

When using the verify feature it gives an error:

master_key_08 is Missing
master_key_08 is Missing
OPTIONAL KEY "xci_header_key" is Missing

(Yes, it displays the _08 line twice)

I've verified the xci_header_key is in the keys.txt file and it is windows characters.
 

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
Love this tool, it's great.

Having a little problem with the games requiring master key 9.

After processing to merge an update or just processing an NSP to an XCI they show up in the album in SX OS but they have a blank/white game graphic.

They play just fine as XCI's and install just fine and play from an XCI or NSP file.

I've dumped all the keys including master_key_09 using lockpick.

When using the verify feature it gives an error:

master_key_08 is Missing
master_key_08 is Missing
OPTIONAL KEY "xci_header_key" is Missing

(Yes, it displays the _08 line twice)

I've verified the xci_header_key is in the keys.txt file and it is windows characters.
The white icon thing is not the first time it happens with SX OS I imagine they didn't add the newer masterkey to their loader\installer and you need to change those files to a lower keygeneration if you want to see the icon.
https://github.com/julesontheroad/NSC_BUILDER/issues/79

--------------------- MERGED ---------------------------

The white icon thing is not the first time it happens with SX OS I imagine they didn't add the newer masterkey to their loader\installer and you need to change those files to a lower keygeneration if you want to see the icon.
https://github.com/julesontheroad/NSC_BUILDER/issues/79
I'll also got reported the keys verification thing but I saw after uploading 0.95, I'll fix it later
https://github.com/julesontheroad/NSC_BUILDER/issues/78
 

bostonBC

Well-Known Member
Member
Joined
Aug 17, 2011
Messages
1,304
Trophies
1
XP
1,416
Country
United States
The white icon thing is not the first time it happens with SX OS I imagine they didn't add the newer masterkey to their loader\installer and you need to change those files to a lower keygeneration if you want to see the icon.
https://github.com/julesontheroad/NSC_BUILDER/issues/79

--------------------- MERGED ---------------------------


I'll also got reported the keys verification thing but I saw after uploading 0.95, I'll fix it later
https://github.com/julesontheroad/NSC_BUILDER/issues/78
Thanks really appreciate all your hard work on this!

Regarding the missing key verification I know I have a valid master key 9 because when I remove that line in the keys.txt file the newer masterkey 9 games fail to build. And since I'm using a dump from lockpick I assume masterkey 8 and 9 are both correct.

Thanks again and have a great day.
 

pcwizard7

Well-Known Member
Member
Joined
Aug 2, 2013
Messages
1,409
Trophies
0
XP
1,688
Country
Australia
Thanks really appreciate all your hard work on this!

Regarding the missing key verification I know I have a valid master key 9 because when I remove that line in the keys.txt file the newer masterkey 9 games fail to build. And since I'm using a dump from lockpick I assume masterkey 8 and 9 are both correct.

Thanks again and have a great day.

also make sure you check the required fw for the multi-content xci as updates can up the required fw and will appear as a white icon. like i didn't know why i had this either so i double-check and notice the fw check
 

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
@JRoad will you add an option to compress to xcz as part of mode 2, rather than having to compress/decompress separately?
nsz and xcz will be integrated in all modes so you will be able to combine xci,nsp, nsz and xcz and output to any of those formats among other things.
For now I just added it on the compressor independently since it was faster to do but I plan on integrating it on all modes.
 

markmcrobie

Well-Known Member
Member
Joined
May 24, 2008
Messages
623
Trophies
0
XP
1,247
nsz and xcz will be integrated in all modes so you will be able to combine xci,nsp, nsz and xcz and output to any of those formats among other things.
For now I just added it on the compressor independently since it was faster to do but I plan on integrating it on all modes.

@JRoad thanks, great. And you may have answered this before, I forget, but will you ever add the capability to process xc0, xc1, etc files in multi mode? I use FAT32 so it would be great if I could have a single mode 2 that goes xc0, xc1, etc in, rejoins them, adds updates/DLC/etc, then splits them back into xc0, xc1, etc ready to be put on my SD
 

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
@JRoad thanks, great. And you may have answered this before, I forget, but will you ever add the capability to process xc0, xc1, etc files in multi mode? I use FAT32 so it would be great if I could have a single mode 2 that goes xc0, xc1, etc in, rejoins them, adds updates/DLC/etc, then splits them back into xc0, xc1, etc ready to be put on my SD
Is possible to do it directly, just need to do a custom library, that way it wouldn't actually need to be rejoined. I'll do at some point i guess.
Either way new sx installer when you copy a xci to the sd from any of the locations it converts it to the archive folder format. If it works well you can use their equivalent to the nut server to transfer the xcis via usb without them being splitted and they'll be joined on the sd. It should be the nutfs protocol when transferring from usb.
 

markmcrobie

Well-Known Member
Member
Joined
May 24, 2008
Messages
623
Trophies
0
XP
1,247
@JRoad an error I haven't seen before, using mode 3 to try split Dragonball Xeonverse (custom XCI that I made myself in NCSB):

Code:
Exception: Failed to decrypt NCA header: b"\xca\x81\x08'"
 

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
@JRoad an error I haven't seen before, using mode 3 to try split Dragonball Xeonverse (custom XCI that I made myself in NCSB):

Code:
Exception: Failed to decrypt NCA header: b"\xca\x81\x08'"
Does it verify? that error means the header can't be decrypted with the header key (nca header key) it, when your "header_key" is correct it normally indicates a bad file. Other common error is the one that says can't read the PFS0 magic, that other one always indicates a bad nsp header.
 

markmcrobie

Well-Known Member
Member
Joined
May 24, 2008
Messages
623
Trophies
0
XP
1,247
Yes, all my keys are valid, I have everything including master_key_09. Not sure if it's related, but the 17GB XCI I'm trying to split shows fine in SX OS but when I try to launch it in Switch home screen it says "Game card could not be read"
 

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
Yes, all my keys are valid, I have everything including master_key_09. Not sure if it's related, but the 17GB XCI I'm trying to split shows fine in SX OS but when I try to launch it in Switch home screen it says "Game card could not be read"
Yeah it's probably bad. For SX OS only the control nca needs to be fine, if it is it can read the data normally. There is other conditions that makes it crash like bad xci header, ticket inside of file etc... but sometimes it doesn't crash and the file is still bad.
The nca header key ("header_key") and the xci header key didn't change since the switch was released so that won't be an issue.
 
Last edited by JRoad,

markmcrobie

Well-Known Member
Member
Joined
May 24, 2008
Messages
623
Trophies
0
XP
1,247
@JRoad found a weird error - if I use Config to set my output directory to the root of a drive ( for example I tried to set it to V:\ ), it gets stored in the config file as V:" and then NCSB immediately closes on opening when trying to run NSCB.bat. I had to manually change the " back to a \ in the config file to get NSCB.bat to open.
 

bostonBC

Well-Known Member
Member
Joined
Aug 17, 2011
Messages
1,304
Trophies
1
XP
1,416
Country
United States
Small bugfixes:

v0.95b - Bugfixes:

- Fixed titles section in file-info gui not showing data for nsz files.

- Fixed keys.txt checker showing master_key_08 was missing when in fact master_key_09 was the one missing.

https://github.com/julesontheroad/NSC_BUILDER/releases/tag/v0.95b

With 0.95b it is not showing master_key_08 is Missing twice but now...

master_key_08 is Missing
master_key_09 is Missing
OPTIONAL KEY "xci_header_key" is Missing

I have all 3. Any ideas?

Thanks!
 

JRoad

Developer
OP
Developer
Joined
May 18, 2018
Messages
1,003
Trophies
0
XP
1,746
Country
Spain
@JRoad found a weird error - if I use Config to set my output directory to the root of a drive ( for example I tried to set it to V:\ ), it gets stored in the config file as V:" and then NCSB immediately closes on opening when trying to run NSCB.bat. I had to manually change the " back to a \ in the config file to get NSCB.bat to open.
It may be. I'll check it I'm thinking in changing everything to direct output anyway and allow to change the folder using a selector like the one I added for files\folders.
With 0.95b it is not showing master_key_08 is Missing twice but now...

master_key_08 is Missing
master_key_09 is Missing
OPTIONAL KEY "xci_header_key" is Missing

I have all 3. Any ideas?

Thanks!
Weird I just changed the names from master_key_08 to master_key_09. I forgot to change it when I added the lines on it's day (guilty of copy-paste)
You don't have non windows end of lines right? There's an option to check on notepad++
I can check later to see if it happens to me too btw.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    HiradeGirl @ HiradeGirl: Have a nice day. Life. Week. Month. year.