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, i mean with nscb verify function, if it gives an exception you can do a raw extraction and verify the nca independently too. Though that seems to say that the nca header magic is "0000" instead of PFS0, if it's a messed up header it won't be able to verify either, you can see that in hex though:
    A nsp begins like this:
    nspbe.PNG
    With 50465330, that translates as PFS0
     
  2. huma_dawii

    huma_dawii GBAtemp Psycho!

    Member
    10
    Apr 3, 2014
    United States
    Planet Earth
    I opened the update.nsp in the HxD and it starts with a lot of 0000000 and not like you showed me.
     
  3. JRoad
    OP

    JRoad GBAtemp Advanced Fan

    Member
    7
    May 18, 2018
    Spain
    Then it's a bad dump or bad download. The beginning needs to be PFS0.
     
    huma_dawii likes this.
  4. huma_dawii

    huma_dawii GBAtemp Psycho!

    Member
    10
    Apr 3, 2014
    United States
    Planet Earth
    I think is a bad dump. I did downloaded it 3 times.

    EDIT: Indeed, it was a bad dump! Thanks a lot!
     
    Last edited by huma_dawii, Jul 31, 2019
  5. pcwizard7

    pcwizard7 GBAtemp Fan

    Member
    4
    Aug 2, 2013
    Australia
    Can someone give description of each special options when using the individual process?
    also the wording of each option is very confusing on what it actually does if the next version might benefit from revised wording for each option

    thanks
     
  6. PsyKos

    PsyKos Member

    Newcomer
    4
    Dec 5, 2007
    France
    France
    Hello and thank you for your great program. However, since version 0.88, I am unable to create a multi-content NSP.

    I have an error message with any NSP. If I convert to XCI, no problem :


    *******************************************************
    Processing list [0100FF500E668000].txt
    *******************************************************
    Calculating final content:
    Filename: StandBy [0100FF500E668000] [v65536] (1G+1U)[rr].nsp
    - Writing NSP header...
    0%| | 0.00/162M [00:00<?, ?B/s]Traceback (most recent call last):
    File "squirrel.py", line 3708, in <module>
    NameError: name 'outf' is not defined
    [708] Failed to execute script squirrel


    Thanks for your help.
     

    Attached Files:

  7. JRoad
    OP

    JRoad GBAtemp Advanced Fan

    Member
    7
    May 18, 2018
    Spain
    I see i don't normally do multi nsps i'll try to identify the error. does it happen with the mode that removes titlerights only or it also happens with the one that leaves the tickets in the nsp?
     
  8. JRoad
    OP

    JRoad GBAtemp Advanced Fan

    Member
    7
    May 18, 2018
    Spain
    In aswer myself. Is only the ticketless one. The one with tickets work
     
  9. JRoad
    OP

    JRoad GBAtemp Advanced Fan

    Member
    7
    May 18, 2018
    Spain
    @PsyKos It's fixed now https://github.com/julesontheroad/NSC_BUILDER/releases/tag/v0.89b

    @markmcrobie Also for the issue with too many arguments in the command line attached to the release is a "more.com" binarie. I was told the reason is that your more.com binary in windows root is corrupted if you have the bugm the fix is to download the binary and put it next to NSCB.bat if you see the issue.
    The binary is attached to the release.

    Note: I'll be out this weekend so if any other fix is needed i'll try to look into that next week.
     
    Last edited by JRoad, Aug 1, 2019
    markmcrobie and PsyKos like this.
  10. PsyKos

    PsyKos Member

    Newcomer
    4
    Dec 5, 2007
    France
    France
     
  11. JRoad
    OP

    JRoad GBAtemp Advanced Fan

    Member
    7
    May 18, 2018
    Spain
    Hmm i guess I had more bugs there then, i only saw the line that seemed wrong and thought that was it. I'm out for the weekend so I won't be able to fix it till monday\sunday though.
     
  12. huma_dawii

    huma_dawii GBAtemp Psycho!

    Member
    10
    Apr 3, 2014
    United States
    Planet Earth
    What version is it? I downloaded one yesterday I thought I worked fine!
     
  13. JRoad
    OP

    JRoad GBAtemp Advanced Fan

    Member
    7
    May 18, 2018
    Spain
    Well it's probably the multi nsps without titlerights not fixed with the modification I did if he gets a file smaller than expected.
    I just saw a evident error, saw that it was building and thought it was fixed. Since it was late and I knew i was going to be out for the weekend I didn't do the proper checks XD
     
  14. markmcrobie

    markmcrobie GBAtemp Advanced Fan

    Member
    5
    May 24, 2008
    @JRoad an error I haven't seen yet:

    Code:
    Calculating final content:
    Exception: Not a valid PFS0 partition b''
    Filename: Mortal Kombat 11 [0100F2200C984000] [v393216] (1G+1U+17D).xci
     
  15. JRoad
    OP

    JRoad GBAtemp Advanced Fan

    Member
    7
    May 18, 2018
    Spain
    Did you check the files? Lately we're seeing some bad updates. Check this message:

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

    Try to do a verify on all the files, if some reaise that exception the nsp header from that one is messed up. Basically a nsp needs to begin always by the nsp magic (PFS0), the magic is what identifies the type of file.
     
    Last edited by JRoad, Aug 4, 2019
  16. nowpearl

    nowpearl Member

    Newcomer
    1
    Aug 5, 2019
    Brazil
    Indaiatuba, Brasil
    can someone extract the new update from zelda.

    The Legend of Zelda Breath of the Wild [01007EF00011E800] [v1.6.0] [v786432] .nsp

    It is possible to use this tool to extract files to use LayeredFS
     
  17. ganons

    ganons GBAtemp Addict

    Member
    7
    Jun 12, 2005
    @JRoad just a thought but have you considered adding xci trimmer option when rebuilding to xci?
     
  18. JRoad
    OP

    JRoad GBAtemp Advanced Fan

    Member
    7
    May 18, 2018
    Spain
    Do you mean normal trimmer? I made one the other day, trimmer and untrimmer, is just pending release with the fix for the multi-nsps, probably tomorrow. People are asking me for an option to make copy when you patch the link account stuff so i want to add that before i release the c version.
    If you mean supertrimming is done automatically, same as deleting deltas if they exist. The only difference with the supertrimmer is that supertrimmer takes the game-info from the xci instead of generating it randomly and it also respects the certificate if it's present.
    But there is currently no option added that keeps the padding on a xci and till I add the normal trimmer no option will keeps the firmware in the firmware partition either.
    Currently the only thing that you can set to keep is deltas but they're useless inside of xci files.

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

    No, currently the extractor doesn't extract updates program nca. The program nca in updates needs the one in the base and uses a table to extract it, i'll make code to do that eventually but i may add an auto config for hactool in the meantime for those cases if there is interest.
     
    huma_dawii and nowpearl like this.
  19. ganons

    ganons GBAtemp Addict

    Member
    7
    Jun 12, 2005
    Didnt know there was a super trimmer already. Does trim the same stuff XCI trimmer does? Having said just rebuilt MK8 (personal dump, not trimmed) Deluxe with 1.7.1 as xci and the output is smaller yhan the base game. Is that right?
     
  20. ganons

    ganons GBAtemp Addict

    Member
    7
    Jun 12, 2005
    Also would when adding an update, can a US update work with PAL base game?
     
Quick Reply
Draft saved Draft deleted
Loading...