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

Discussion in 'Switch - ROM Hacking, Saves, Translations & Tools' started by JRoad, Nov 4, 2018.

Loading...
  1. Puppydogpals

    Puppydogpals GBAtemp Regular

    Member
    5
    Feb 19, 2018
    United Kingdom
    You probably could of Seperated the update and the base without needing to re download

    Sent from my SM-G965F using Tapatalk
     
    Carlos Escobar likes this.
  2. JRoad
    OP

    JRoad Developer

    pip Developer
    8
    May 18, 2018
    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
     
  3. bostonBC

    bostonBC GBAtemp Maniac

    Member
    6
    Aug 17, 2011
    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.
     
  4. JRoad
    OP

    JRoad Developer

    pip Developer
    8
    May 18, 2018
    Spain
    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

    — Posts automatically merged - Please don't double post! —

    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
     
  5. bostonBC

    bostonBC GBAtemp Maniac

    Member
    6
    Aug 17, 2011
    United States
    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.
     
  6. pcwizard7

    pcwizard7 GBAtemp Advanced Fan

    Member
    4
    Aug 2, 2013
    Australia
    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
     
  7. markmcrobie

    markmcrobie GBAtemp Advanced Fan

    Member
    6
    May 24, 2008
    @JRoad will you add an option to compress to xcz as part of mode 2, rather than having to compress/decompress separately?
     
  8. JRoad
    OP

    JRoad Developer

    pip Developer
    8
    May 18, 2018
    Spain
    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.
     
    pcwizard7 and markmcrobie like this.
  9. markmcrobie

    markmcrobie GBAtemp Advanced Fan

    Member
    6
    May 24, 2008
    @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
     
  10. JRoad
    OP

    JRoad Developer

    pip Developer
    8
    May 18, 2018
    Spain
    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.
     
  11. markmcrobie

    markmcrobie GBAtemp Advanced Fan

    Member
    6
    May 24, 2008
    @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'"
     
  12. JRoad
    OP

    JRoad Developer

    pip Developer
    8
    May 18, 2018
    Spain
    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.
     
  13. markmcrobie

    markmcrobie GBAtemp Advanced Fan

    Member
    6
    May 24, 2008
    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"
     
  14. JRoad
    OP

    JRoad Developer

    pip Developer
    8
    May 18, 2018
    Spain
    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, Oct 21, 2019
  15. JRoad
    OP

    JRoad Developer

    pip Developer
    8
    May 18, 2018
    Spain
    ber71 likes this.
  16. pcwizard7

    pcwizard7 GBAtemp Advanced Fan

    Member
    4
    Aug 2, 2013
    Australia
    can you add a splitter mode for xci for people who use fat32 for sd card?
     
  17. JRoad
    OP

    JRoad Developer

    pip Developer
    8
    May 18, 2018
    Spain
    It splitts to fat32 formats but you need to activate the option in the configuration.
     
    pcwizard7 likes this.
  18. markmcrobie

    markmcrobie GBAtemp Advanced Fan

    Member
    6
    May 24, 2008
    @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.
     
  19. bostonBC

    bostonBC GBAtemp Maniac

    Member
    6
    Aug 17, 2011
    United States
    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!
     
  20. JRoad
    OP

    JRoad Developer

    pip Developer
    8
    May 18, 2018
    Spain
    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.
    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.
     
Quick Reply
Draft saved Draft deleted
Loading...