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.

  1. JRoad
    OP

    JRoad GBAtemp Fan

    Member
    4
    May 18, 2018
    Spain
    IMPORTANT NOTES:

    So one thing I realized in the latest days for icons not showing in SX OS loader\installer. They will if you lower keygeneration to 5, it seems the use embedded keys in the installer to read the icon, version,... but forgot to embed the new masterkey 4 and 5 wich is causing that issue.
    Lowering the keygeneration doesn't mean you can't run them in 6.2, of course it just means the system will use a lower masterkey to decrypt the games.
    -> Fixed in SX OS 2.4.1. Just update https://team-xecuter.com/sx-os-v2-4-1-beta-announcement/

    If you use Atmosphere or Kosmos you'll need the patches from the4n:

    https://gbatemp.net/threads/i-heard-that-you-guys-need-some-sweet-patches-for-atmosphere.521164/
    To launch them download latest fusee-primary-0.8.2.bin and add this line to the config if you use kosmos -> payload=bootloader/payloads/fusee-primary-0.8.2.bin

    To install multicontent nsp your best option is to use dz-tinfoil by blawar or SX OS Installer (rom-menu):
    dz-tinfoil:
    https://github.com/digableinc/tinfoil
    If you need to activate unsigned code in dz-tinfoil the password is the konami code.
    For new SX installer is the same since is actually dz-tinfoil. You'll need to activate unsigned code with the konami code.

    Always try to do conversions or file modifications yourself and to get originals from trusted sources.

    NBA 2k19 goes above 32gb with the update. There aren't 64gb cartridges in the market currently or flags in the SDK so it won't work. Not sure if the limitation is actually in Horizon current capabilities or in SX OS code. The error is kinda the same as before they released they 32gb cartridges patch.

    ---END OF IMPORTANT NOTES---


    This one takes the mantle of Nut Cleaner and serves as an implementation of my new modded hacbuild.
    https://github.com/julesontheroad/hacbuild

    NOTE: Updated to v0.79
    Changelog in:
    https://github.com/julesontheroad/NSC_BUILDER/releases/tag/v0.79

    1. Description

    NSC_Builder is based in the awesome function "REMOVE_TITLE_RIGHTS" from nut by blawar this function let's you erase the titlerights encryption from nsp files. Tinfoil and SX installer will install the ticket either way so for it to not stay in your system you need to erase the ticket and cert from the nsp, this batch will take care of that.

    Current version of the program allow you to make multi-content xci or nsp files.

    The batch has 2 modes:
    • auto mode: you drag nsp files individually or folders with several files over the batch to enter in auto mode.
    • manual mode: you double click the batch and you can build a list of files to process.
    Current version of the program allow you to make multi-content xci or nsp files.

    The batch has 2 modes:

    - auto mode: you drag nsp/xci files to enter in automode.
    - manual mode: you double click the batch to enter in manual mode.

    The behavior of these modes can be controlled by editing ztools\NSCB_options.cmd

    For instructions go to github's page:
    https://github.com/julesontheroad/NSC_BUILDER

    For my modded hacbuild go to:
    https://github.com/julesontheroad/hacbuild

    Note: To edit the config file I recommend https://notepad-plus-plus.org/download/v7.5.9.html

    Current limitation for "multi-game"-xci files is 8 games in the xci. It seems Horizon Based, probably because of the number of icons loading at the same time, I don't know if qlauncher mods can get rid of the limitation.
    Also content bigger than 32gb in the same file can fail. I don't have a flag set for 64gb in hacbuild yet, and didn't test yet with something that big. It's one of the things I need to test.
     

    Attached Files:

    Last edited by JRoad, Jan 1, 2019
  2. JRoad
    OP

    JRoad GBAtemp Fan

    Member
    4
    May 18, 2018
    Spain
    NSC_Builder v0.79
    • Corrected detection for keygeneration 2 wich fixes the issue with the Xenoblade Chronicles 2 DLCs
    • Added xml generation when repacking as NSP giving support to xci-explorer.
    • Fixed issue with NSCB clossing in info mode if you try to swap the file without turning back. File swapping is now enabled.
    • Improved the functions in mode 5 "file-info mode":
    1. Get CONTENT of the xci\nsp will show game data, types of files and size for all content inside the xci or nsp.
    2. GAME-INFO and FW requirements eas expanded with more information for dlc, editor information, language information ...
    3. Read the CNMT was expanded to include extended meta information.
    • Improved the naming in the spitter mode.
    NSC_Builder v0.78- Couple of bugfixes
    • Fixed error with RSV patching were DLC's got it's UpdateRequiredNumber patched
    • Modified FW-requirements and CNMT-reader a little.
    NSC_Builder v0.77- Added several fixes to the RequiredSystemVersion patching
    • Added new option to global config to skip the RSV and keygeneration patching prompt dialogue.
    • Added fallback for names in info function number 3 in case there isn't american english name. If name is japanese it'll show weirdly for now
    v0.76- Corrected hash calcultion after RSV patching in games that had a lot of updates.
    • Added RequiredSystemVersion cap when lowering it up, set as FW4.0 by default when it's auto-calculated, since it's needed for some newer updates.
    • Linked RSV cap to the keygeneration selection. Now if you choose keygeneration 7 RSV won't go lower than 6.2 even if real keygeneration is lower, if you choose 5 it won't go lower than FW5.0, etc...

    NSC_Builder v0.75-Added configuration from the bat, option to change keygeneration, corrected RSV readouts and more.
    NOTE: v0.75b -> Corrected minimum RSV for 6.2.0
    1.- Added options to change keygeneration to help run games at lower firmwares.
    Note it won't always work as the game can have other dependencies than the firmware. 6.2 to 6.0 seems to work and 6.2 to 5.0 works if basegame is 5.0
    2.- Added "Mode 0" - Profile configuration from the bat.
    3.- Added auto-profile linking. A profile Bat will link with it's configuration file if they follow the following name scheme:
    a) Bat -> batname.bat
    b) Profile in zconfig -> batname_options.cmd
    Where "batname" is a name of your choosing. You can add as many bats in the same folder as you want with different profiles this way.
    4.- Corrected RequiredSystemVersion reads. It seems like our update XML read the value wrong and RSV is 4bytes long instead of 8bytes long. Thanks to Liam for the tip. ^_^
    5.- Added better navigation from the bat and dissable auto-exit in manual-mode so people can see the log. (Auto-Exit can be activated in the configuration)
    6.- Added "mode 5: file-info mode". Dragg a file and choose if you want to:
    a) See it's content
    b) See "nut-info" (as NUT from blawar shows it)
    c) See Firmware Requirements and to what is patchable without changing the keygeneration )nca files encryption)
    d) Get a read of the cnmt
    You only need to load the file one time to get all reads and the functions will let you print each read to a text file in "INFO" folder at bat's route.

    Current planned improvements are:
    - List manager.
    - Batch tools to put in application some of my changes to nut libraries.
    - Support for meta patching and control nca building for custom logos.
    - Skips for individual mode.
    - Content splitter.
    - Titlerights restoration mode.

    Some pictures:
     

    Attached Files:

    Last edited by JRoad, Jan 1, 2019
    Aks, Saiylem, apfelsaft45 and 8 others like this.
  3. FMCore

    FMCore Advanced Member

    Newcomer
    2
    Jul 10, 2018
    Canada
    Thanks mate!
     
  4. LucioDragon

    LucioDragon Member

    Newcomer
    2
    Jun 21, 2018
    Chile
    Now nsp can be mixed with dlc and updates to build then an xci?
     
    Mylink5 likes this.
  5. JRoad
    OP

    JRoad GBAtemp Fan

    Member
    4
    May 18, 2018
    Spain
    Yep. The config is set for auto-process folders like that.
    You can also access to manual mode. Option 2 multi-pack mode for this.
     
    LucioDragon likes this.
  6. huma_dawii

    huma_dawii GBAtemp Addict

    Member
    9
    Apr 3, 2014
    United States
    Planet Earth
    I think you should add to the title this (UPDATE+DLC+BASE merger) or something that is easy to tell people WHAT this does.
     
    matias3ds likes this.
  7. JRoad
    OP

    JRoad GBAtemp Fan

    Member
    4
    May 18, 2018
    Spain
    Ah, the think is you can put games in it. 8 games as maximum according to my tests.

    But if you think it would be better to have that in the title we can do that. Thing is, do I need to ping a mod to change the title?
     
    Last edited by JRoad, Nov 4, 2018
  8. huma_dawii

    huma_dawii GBAtemp Addict

    Member
    9
    Apr 3, 2014
    United States
    Planet Earth
    You probably do need to do that! :) People get confused by the title of the homebrew, I think is very important to be clear what your software does and the purpose, many people is very interested in the merging update + DLC to a base XCI and if the title of your thread doesn't mention any of that then it will get overlook and wont get as much attention (There are some people lost in the wild looking for this but they didn't even know you were working on it, you can contact @Quantumcat and see if you can get this in the FRONT PAGE because this is a BIG RELEASE for everyone).
     
    Quantumcat and Moko like this.
  9. kingraa777

    kingraa777 boom!

    Member
    5
    Apr 17, 2015
    ception: object of type 'NoneType' has no len()
    The system cannot find the file C:\Users\PC\Downloads\switch\SWITCH.
    The system cannot find the file C:\Users\PC\Downloads\switch\SWITCH.


    is this normal ?

    EDIT: the programme files need to be in this directory /SWITCH it seeems
     
    Last edited by kingraa777, Nov 4, 2018
  10. Firemanx

    Firemanx Member

    Newcomer
    1
    Nov 4, 2018
    United States
    @JRoad , first and foremost, tha I you so very much for your time on this project, it is very generous to the community.

    Repackaging an nsp into an xci, when launching the xci for the first time, does the packed update run and install, or does the total package run as if it is a dummy updated cartridge which doesn't need to install any local files?
     
  11. kingraa777

    kingraa777 boom!

    Member
    5
    Apr 17, 2015
    also my converted games dont show logos?
    edit now im getting 1kb files made with an nsp i know works?
     
    Last edited by kingraa777, Nov 4, 2018
  12. JRoad
    OP

    JRoad GBAtemp Fan

    Member
    4
    May 18, 2018
    Spain
    Not really mine are in F:\NSCB. I don't really now what your issue is related to, you can try and set absolute routes in your config folder but that error seems from the input, do you have a dot in your folder named "SWITCH"?
     
  13. huma_dawii

    huma_dawii GBAtemp Addict

    Member
    9
    Apr 3, 2014
    United States
    Planet Earth
    The games when you eject the card, the icon that stays in the system only shows the ORIGINAL VERSION without the update, is that normal? I merged XC2 Torna and when the XCI is loaded shows 1.0.1 and when I reboot the console it shows me the 1.0.0
     
  14. JRoad
    OP

    JRoad GBAtemp Fan

    Member
    4
    May 18, 2018
    Spain
    Ah no, it's like a rev game. It just loads the content inside the xci as if it was in the installed in the sd. All revision games work like that.
     
  15. kingraa777

    kingraa777 boom!

    Member
    5
    Apr 17, 2015
    not dot in that directory i was getting this error when the programme was in a different directory now i put the programme files in tht directory in the error message i dont get the message also what would cause the output files to have either a blank logo when converted or the programme just to return a small kb file ?
     
  16. FMCore

    FMCore Advanced Member

    Newcomer
    2
    Jul 10, 2018
    Canada
    I get a permission denied error
    upload_2018-11-4_14-7-21.

    and it hangs there.
     
  17. AnalogMan

    AnalogMan ultraSuMoFramework Dev

    Member
    11
    Apr 20, 2007
    United States
    So, if I merge an update into an XCI, the system doesn’t install that update internally? I know with games that have updates on them, when you insert the game it prompts you to install the update that was included on the cart to either the SD card or NAND.
     
  18. JRoad
    OP

    JRoad GBAtemp Fan

    Member
    4
    May 18, 2018
    Spain
    Torna as dlc or as game? If I understand you the meta loaded when the game is not mounted is the one from the game. Doesn't happen with mine really. If you have access to devmenu you can check if everything loaded correctly, also didn't check xenoblade yet, remember it had issues being cleaned.
    I plan to add back the [lc].nsp method for those cases. Also as soon as I add tools.bat you will be able to generate placeholders, that can force your meta\control to update to last version.

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

    Well it isn't working properly for you that's for sure. Can you make a logo? Do you remember how it was done?
    CD \d "program folder"
    NSCB.bat "ROUTE TO FILE\game.nsp" >log.txt 2>&1
     
  19. huma_dawii

    huma_dawii GBAtemp Addict

    Member
    9
    Apr 3, 2014
    United States
    Planet Earth
    Is the original XCI game + NSP update! D: unmounted shows just the 1.0 but when I mount it shows 1.0.1 I don't know if that affect in something, I don't have DevMenu don't know if it works on 6.0.1
     
  20. JRoad
    OP

    JRoad GBAtemp Fan

    Member
    4
    May 18, 2018
    Spain
    I don't really know why it tries to find something in your bin.
     
  21. FMCore

    FMCore Advanced Member

    Newcomer
    2
    Jul 10, 2018
    Canada
    It's not just the recycle bin

    upload_2018-11-4_14-17-15.
     
Loading...