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 GBAtemp Advanced Fan

    Member
    7
    May 18, 2018
    Spain
    No, a normal trimmer trimms just teh FFFF padding at the end of a xci, supertrimmer deletes the content in the update and normal partition, deletes the logo partition and reduces padding between partitions, it also deletes the xci updates since most are outdated (forgot about that), it's basically meant to have minimal standard xci versions for installation with blawar's tinfoil while keeping available tinfoil's verification. Tinfoil basically skips installation on xci updates being them outdated normally, that's the reason i delete them in the supertrimmer too.

    For any minimal xci version either nsp to xci or xci to xci will trimm everything already. Basically you could do what you want using xci to xci from the beginning of the program. The concept is official xci to NSC_Builder xci means taking off the end padding, the system firmware from the update partition and the logo partition, basically making a version that it's a few bytes bigger than the nsp since it has a bigger header.

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

    Only if the [titleid] is the same, if they're different the update will be orphaned and you have 2 logos when loading the xci, the one from the update will have a cloud and say it misses files.
     
    Last edited by JRoad, Aug 8, 2019
    ganons likes this.
  2. ganons

    ganons GBAtemp Addict

    Member
    7
    Jun 12, 2005
    Guessing something went wrong because the output is about 700mb smaller than the actual base game. How do you check the titleid?
     
  3. JRoad
    OP

    JRoad GBAtemp Advanced Fan

    Member
    7
    May 18, 2018
    Spain
    The hex number in the brakets, random example base -> [010025500C098000], update-> [010025500C098800], just check that all matches except the last 3 digits (000) in base (800) in update and dlcs will match with exception of last 4 digits, dlcs are like +1in hex in the 4th digit from the right and the a number in hex in the last 3 digits.
    Either way that xci may be good, basically if you had a xci with padding or an update with deltas the result can be much smaller. Just use the info mode (mode 4) option 1 to see if all is included and the option 8 to see if the files verify properly, that will tell you if the xci is good without testing it on the console.
     
    ganons likes this.
  4. ganons

    ganons GBAtemp Addict

    Member
    7
    Jun 12, 2005
    XCI is definitely good as it's a personal dump and have been playing it extensively. Will try installing the update as nsp and see what happens.
     
  5. JRoad
    OP

    JRoad GBAtemp Advanced Fan

    Member
    7
    May 18, 2018
    Spain
    if it's a personal dump it's normal, xci if not trimmed have FFFFFF to complete the card size so it can be 1Gb,2Gb,4Gb,8Gb,16Gb or 32Gb even if the game is smaller, then you have the firmware update (around 400MB) and some internal padding, all that is deleted so you can end with a size much smaller than what you expect.
    The info mode 1 presents only the size of the game content, that way you can know the expected size of the final xci.
     
  6. ganons

    ganons GBAtemp Addict

    Member
    7
    Jun 12, 2005
    Ok so did file info, total size is 6.77GB which sort of matches with output. Insatlled NSP update, update works fine. Deleted from sd card the XCi seems like its working, think had to uninstall the game data and try again. Will rebuild game 1 more time and see.
     
  7. ganons

    ganons GBAtemp Addict

    Member
    7
    Jun 12, 2005
    Not sure why its aksing to update when trying to lauch the patched xci. This is for v1.7.1 which release in Jan. Console is on 7.0.1

    On the NSC builder pressed, 1, dragged base, then update, pressed 1, then pressed 2. The chose not to patch fw and also patch fw to 7 and they both still ask to update.
     
  8. JRoad
    OP

    JRoad GBAtemp Advanced Fan

    Member
    7
    May 18, 2018
    Spain
    Not sure, did you check the game-info to see if it patched correctly? Did you had it installed before?
    According to my data that update has a RSV of 6.2.0 so if it's asking to update it's a console update and not prompt by the game itself.
    mario.PNG
     
  9. nowpearl

    nowpearl Member

    Newcomer
    1
    Aug 5, 2019
    Brazil
    Indaiatuba, Brasil
    If it's not too much work friend, it would be really cool. otherwise i wait your time.
     
  10. ganons

    ganons GBAtemp Addict

    Member
    7
    Jun 12, 2005
    Here is the output
     

    Attached Files:

  11. JRoad
    OP

    JRoad GBAtemp Advanced Fan

    Member
    7
    May 18, 2018
    Spain
    That's the basegame only. If your xci only have that is normal that it is asking you for an update. Did you use the mode 2, multi-mode to include both files?
     
  12. ganons

    ganons GBAtemp Addict

    Member
    7
    Jun 12, 2005
    no was using mode 1. Rebuilt with mode 2 and file size is slightly bigger and when reading the the output with mode, it shows the base game and update. Gonna assume it will work now and all this time have been using the wrong mode :O
     
  13. JRoad
    OP

    JRoad GBAtemp Advanced Fan

    Member
    7
    May 18, 2018
    Spain
    Yeah mode 1 processes files individually and it's set to convert update and dlc nsp to standard crypto nsps if i remember right.
     
  14. ganons

    ganons GBAtemp Addict

    Member
    7
    Jun 12, 2005
    Two questions

    1. If using model 1 without adding any additional files, and outputting to XCI, will it trim the output file? I noticed this when incorrectly trying to patch mk8 the output was smaller.

    2. What is rename XCI? Can it rename internal game names? Eg Dragon Quest Builders 2 shows up as all caps in horizon, can the rename function be used to have lower case naming?
     
  15. huma_dawii

    huma_dawii GBAtemp Psycho!

    Member
    10
    Apr 3, 2014
    United States
    Planet Earth
    I think the Upsates NCA extractor is something we need, as well as extracting stuff for LayeredFS
     
  16. JRoad
    OP

    JRoad GBAtemp Advanced Fan

    Member
    7
    May 18, 2018
    Spain
    1. Yes, individual mode makes xci files smaller than a normal trimmer does since it also deletes the firmware update. XCI files have system updates that are:
    I.- Blocked by SX OS
    II.- Only usefull when your system is in a lower firmware.
    III.- Not really usefull since we have choidujour NX and tinfoil that can update the firmware with firmware packs
    So basically that takes space but NSCB deletes it, it also reduces internal paddings that take some additional kb.
    2. It reads the name as horizon does and it adds tags for update\game version and number of games, dlcs inside. It also can add a tag that shows the file's listed languages.

    Well it extracts the nca files content already in Advanced Mode (mode 6) if you didn't realize. There you have one mode that plintext them and one that extracts them. They work 90% of the time without extracting the nca files, they have a fallback to extract them that seems needed in some xci files for some reason i didn't manage to grasp yet.
    The thing that it doesn't extracts currently is update's program nca files because that needs to write something to merge the base and updates ncas. Since i'm working in other things and that will take some time that's why i said that if there's interest i can add hactool for those cases, i may even be able to make it work with a progress bar in plaintext mode like the current extractor uses for plaintext.
     
    Last edited by JRoad, Aug 9, 2019
    ganons and huma_dawii like this.
  17. ganons

    ganons GBAtemp Addict

    Member
    7
    Jun 12, 2005
    I saw an option for super trimmer but you also mentioned super trimming is done automatically?

    Sorry but can I rename a game how I want it to be displayed in sx os/horizon?

    Thanks for your patience in answering questions
     
  18. JRoad
    OP

    JRoad GBAtemp Advanced Fan

    Member
    7
    May 18, 2018
    Spain
    Yeah, the difference with the dedicated one is that it takes game-info data from the xci and deletes the updates if they exist. It's meant to make minimal files for untouch ncas from xci, basically the content you can't find as nsp, to install them in tinfoil with them verified.
    Tinfoil verification will marked any modified file while NSCB verification can restore the changes the program did to verify converts from xci to nsp or nsp to xci, files with keygeneration changes, etc... as long they were done with the same method NSCB uses.
    I can see it being a little confusing, i explained it in the changelog when i added it but even i forgot that that one deletes updates XD.

    So basically:
    - xci to xci: Trims padding at the end of file like normal trimming, deletes firmware partition, deletes logo partition if it exists, deletes content in normal partition if it exists, deletes system firmware. Randomizes some game data and keeps updates on the file.
    - supertrimmer: Does the same but deletes updates, keeps data from gamecard certificates and some cartridge data. Is mostly meant for people that uses tinfoil xci installation. May actually benefit of a question that asks you if you want to delete dlcs or updates from the card.

    For normal users the normal xci to xci is fine.
     
    ganons likes this.
  19. typographicman

    typographicman Newbie

    Newcomer
    1
    Oct 31, 2018
    United States
    I'm trying to use the MULTI-PACK MODE to combine an NSP and the update and output as an XCI. When I first tired it, it gave me an error saying "TOO MANY ARGUMENTS" so I downloaded the more file that you provided.

    I put the more file in the same location as NSCB.bat and tried doing it again and got this error:

    --------------------
    File "squirrel.py", line 3599, in <module>
    OSError: [Errno 22] Invalid argument: 'D:\\NSC\\NSCB_temp\\Tactics V "Obsidian Brigade" [01007C7006AEE000] [v327680] (1G+1U).xci'
    [688] Failed to execute script squirrel
    --------------------

    Any idea what to do next?
     
  20. mrdcr7

    mrdcr7 Member

    Newcomer
    1
    Jun 20, 2019
    Switzerland
    Anyone know how i can find super dragon ball heroes world mission last update ?
     
Quick Reply
Draft saved Draft deleted
Loading...