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. JRoad
    OP

    JRoad Developer

    pip Developer
    8
    May 18, 2018
    Spain
    Yep it goes a little over the limit. The only way would be to merge base+update in hactool, redo the program nca with hacpack, redo the cnmt and pack it back to xci.
    Is not worth it really, I would just install the update if you prefer to load the game from a xci.
    I wonder if the switch would be able to load a 64GB xci at this point or would need a sdk update, not sure if the ball is on TX roof or Nintendo.
     
  2. huma_dawii

    huma_dawii GBAtemp Psycho!

    Member
    10
    Apr 3, 2014
    United States
    Planet Earth
    This might be just the beggining of the 32GB games... We better future proof our tools (?)
     
  3. Tumbleweed

    Tumbleweed Advanced Member

    Newcomer
    3
    Jul 29, 2018
    Italy
    Yup, first 32GB cartridge I've come across...
     
  4. angelhp

    angelhp GBAtemp Fan

    Member
    6
    Nov 30, 2014
    United States
    Dragon Quest Heroes too
     
    Tumbleweed likes this.
  5. JRoad
    OP

    JRoad Developer

    pip Developer
    8
    May 18, 2018
    Spain
    I mean not much I can do I added the theoretical flag for 64GB but it isn't specified in the SDK+there isn't 64GB cards.
     
    Tumbleweed likes this.
  6. JRoad
    OP

    JRoad Developer

    pip Developer
    8
    May 18, 2018
    Spain
    v0.93- Compression and decompression of update nsps
    - Added update compression and decompression by blawar to NSCB
    - Added thread option (0-4) and timings for compression and decompression.
    - Fix GAME-INFO and FW requirements reads for updates and DLCs
    https://github.com/julesontheroad/NSC_BUILDER/releases/tag/v0.93
     
    ber71, Tumbleweed and 18Phoenix like this.
  7. JRoad
    OP

    JRoad Developer

    pip Developer
    8
    May 18, 2018
    Spain
    v0.94 - Improvements in compression support and restore mode:
    - Compression\decompression is now tied to the buffer option which reduces hangups in the process
    - Decompression is done in a single operation now which makes it faster and enables the progress bar to be equal to the size of the file
    - Added verification for nsz compressed files. Notes:
    * Level 1 verification runs normally in nca objects
    * Level 1 verification works in ncz base games and dlc ncz objects
    * In the testing fase a level 1 verifcation failure in a ncz object will prompt to hash the file. This is done to prevent false positives in this fase.
    * Ticket verification only works when there is nca with titlerights uncompressed in the nsz if not is ommited
    * Level 2 verification works normally as it does in nsp\xci files
    * Level 3 verification aka hashing works normally without decompression to the disk
    * If all ncz files hash properly the ticket should be ok.
    - Added pressets for compression.
    * The user is welcomed now with a screen where he can choose to set compression level and threads manually or to use 5 presets. A 6th preset can be setup in the program CONFIGURATION MODE.
    - Added file restoration for nsp and xci files as MODE 9. This can undo NSCB operations.
    * Can restore headers and detect if original file was xci or nsp
    * Can undo titlerights removal, keygeneration changes, RSV changes and isgamecard changes
    * Linked account patched restoration is not supported yet
    * Basically if a file passes trough NSCB verification it can be restored
    Rest of changelog in github

    Small Edit:
    https://github.com/julesontheroad/NSC_BUILDER/releases/tag/v0.94b
     
    Last edited by JRoad, Oct 14, 2019 - Reason: Added nsz extension for verification in mode 1
    RahFah, ber71, garco and 2 others like this.
  8. EmulateLife

    EmulateLife GBAtemp Psycho!

    Member
    7
    May 30, 2016
    United States
    My Smash Bros Ultimate can't be installed with Tinfoil it says "failed to write header" it was orignially an nsp that I converted to xci like at the beginning of 2019. Is there a way to re-add the header to it?

    Edit: I see in the new release it can restore headers how do I do that exactly please?

    Edit 2: It says File wasn't modified skipping restoration, but how come it can't write a header in Tinfoil? It says possibly using exfat (I use Fat32) or not enough space (I have 300 gb of space on my sd card)
     
    Last edited by EmulateLife, Oct 15, 2019
  9. EmulateLife

    EmulateLife GBAtemp Psycho!

    Member
    7
    May 30, 2016
    United States
    "I was mistaken the error is "Failed to write to place holder". Maybe the error is just on Tinfoil's end, but it's only this game and I did once convert it to XCI from NSP using this. Not sure if it's related.
     
  10. JRoad
    OP

    JRoad Developer

    pip Developer
    8
    May 18, 2018
    Spain
    Can you ran the file over the verification? If it says File wasn't modified skipping restoration i'd say the origin was a xci that was converted to xci, if it wasn't there is either a bug there or it should create a nsp with the ticket.
     
  11. EmulateLife

    EmulateLife GBAtemp Psycho!

    Member
    7
    May 30, 2016
    United States
    Which option is verification?
     
  12. 18Phoenix

    18Phoenix GBAtemp Advanced Fan

    Member
    6
    Nov 21, 2005
    Germany
    Is that the solution for the XCI files that didn't work with SX OS 2.9.1 ?
     
  13. JRoad
    OP

    JRoad Developer

    pip Developer
    8
    May 18, 2018
    Spain
    Is in Mode 4: File Info and then option 8 - Verification. Ran the verification and hash just in case.
    Is also in mode 1 for when you need to ran it in batch.
     
    EmulateLife likes this.
  14. EmulateLife

    EmulateLife GBAtemp Psycho!

    Member
    7
    May 30, 2016
    United States
    VERIFY A NSP\XCI\NCA
    ********************************************************
    ***************
    DECRIPTION TEST
    ***************
    01006A800016E000 - Content.PROGRAM
    33772dd69ad331de693d936465e2dfce.nca -> is CORRECT
    01006A800016E000 - Content.CONTROL
    7625c9b0d180e0f0aa0a03199efe733f.nca -> is CORRECT
    01006A800016E000 - Content.MANUAL
    8fc20639f35fe2b1f32b91dcab8b340e.nca -> is CORRECT
    01006A800016E000 - Content.MANUAL
    d7b9eee9633612f55037ff0af41a933a.nca -> is CORRECT
    01006A800016E000 - Content.META
    e75165dafcaa824f6b6014be0df1c85e.cnmt.nca -> is CORRECT
    VERDICT: XCI FILE IS CORRECT
    ***************
    SIGNATURE 1 TEST
    ***************
    01006A800016E000 - Content.PROGRAM
    > 33772dd69ad331de693d936465e2dfce.nca -> is PROPER
    01006A800016E000 - Content.CONTROL
    > 7625c9b0d180e0f0aa0a03199efe733f.nca -> is PROPER
    01006A800016E000 - Content.MANUAL
    > 8fc20639f35fe2b1f32b91dcab8b340e.nca -> is PROPER
    01006A800016E000 - Content.MANUAL
    > d7b9eee9633612f55037ff0af41a933a.nca -> is PROPER
    01006A800016E000 - Content.META
    > e75165dafcaa824f6b6014be0df1c85e.cnmt.nca -> is PROPER
    VERDICT: XCI FILE IS SAFE

    I could be remembering wrong and maybe it was always an XCI, but I can't understand why this is the only game I cannot install. I tried 4 times now same error every time.
     
    Last edited by EmulateLife, Oct 15, 2019
  15. JRoad
    OP

    JRoad Developer

    pip Developer
    8
    May 18, 2018
    Spain
    No you can just reprocess that to regenerate the header for now.
    That option just regenerates the ncas if they were modified by NSCB. The ncas and tickets not the xci header. Basically it can undo a conversion properly (isgamecard), keygeneration changes and rsv changes.
    It only supports files that can be verified so not from 4nxci, hacpack, nxdumper if is a GameCard dumped as nsp, etc... since those modify the signature which makes them non restorable.

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

    That seems to come from a xci, NSCB was restoring the isgamecard already for those files so it's normal that it's ncas aren't detected as modified, verify the hash just in case but i don't get why it won't install with tinfoil.
     
    EmulateLife and 18Phoenix like this.
  16. EmulateLife

    EmulateLife GBAtemp Psycho!

    Member
    7
    May 30, 2016
    United States
    Hash check two files are corrupt, is it possible to fix that?

    HASH TEST
    ***************
    01006A800016E000 - Content.PROGRAM
    - File name: 33772dd69ad331de693d936465e2dfce.nca
    - SHA256: 33772dd69ad331de693d936465e2dfce6d02c4bd244afa3dd95f3648878910a5
    > FILE IS CORRECT
    01006A800016E000 - Content.CONTROL
    - File name: 7625c9b0d180e0f0aa0a03199efe733f.nca
    - SHA256: 243236b0bbc5f34e73da80799ef2080b4e54fd8090c077ecbcf7cd00f60c8ac0
    > FILE IS CORRUPT
    01006A800016E000 - Content.MANUAL
    - File name: 8fc20639f35fe2b1f32b91dcab8b340e.nca
    - SHA256: 25a84838bcec40de4abf3f962ed9f670e037df5aaa6af780ed6ecb93dadfc39f
    > FILE IS CORRUPT
    01006A800016E000 - Content.MANUAL
    - File name: d7b9eee9633612f55037ff0af41a933a.nca
    - SHA256: d7b9eee9633612f55037ff0af41a933af19af296cf295fca0847305076065f9c
    > FILE IS CORRECT
    01006A800016E000 - Content.META
    - File name: e75165dafcaa824f6b6014be0df1c85e.cnmt.nca
    - SHA256: e75165dafcaa824f6b6014be0df1c85e6f6a7ffd23ee4a9724fa2228e7843bd0
    > FILE IS CORRECT
    VERDICT: XCI FILE IS CORRUPT

    I think my external hard drive is corrupting certain files, I have another copy that I'll try to install.
     
    Last edited by EmulateLife, Oct 15, 2019
  17. JRoad
    OP

    JRoad Developer

    pip Developer
    8
    May 18, 2018
    Spain
    Unfortunately no, it seems your file got corrupted at some point. It passed the other 2 checks because the header is proper and the section the decryption test checks is readable. Only way to fix it is if someone gives you those 2 ncas.
     
    EmulateLife likes this.
  18. BabaYagaJW

    BabaYagaJW Newbie

    Newcomer
    1
    May 8, 2019
    United States
    I was curious of NSC Builder will implement XCI <=> XCZ Conversion
     
  19. JRoad
    OP

    JRoad Developer

    pip Developer
    8
    May 18, 2018
    Spain
    Yes the superetrim and direct conversion to nsz is pretty much done though I want to do a loseless format that preserve the update partition compressed too.
    Also nsz to xci\xcz and viceversa will be done. The verification development for nsz postponed it a little but is on it's way.
     
    RahFah and BabaYagaJW like this.
  20. pcwizard7

    pcwizard7 GBAtemp Advanced Fan

    Member
    4
    Aug 2, 2013
    Australia
    there are 64gb cartridges that exist but no one has used them which is why there prob not in the SDK but if the developer requested it they could do it .

    Is there a way to use nsc to check a dir of xcis if they can benefit from trimming them and apply it if needed
     
Quick Reply
Draft saved Draft deleted
Loading...