NULL

RELEASE Extract NSP, NCA, XCI, Update all in one tool for LayeredFS

Discussion in 'Switch - ROM Hacking, Saves, Translations & Tools' started by huma_dawii, Jul 12, 2018.

  1. tomx86

    tomx86 GBAtemp Advanced Fan

    Member
    4
    Jun 3, 2015
    Poland
    I tried with "Pokemon Quest" and it worked but saving doesn't work, so "Happy Birthdays DEMO" doesn't work with version 1.5.0:
    upload_2018-7-29_5-14-38.
    Maybe you know a donor that will work, and no "Fortnite" doesn't work (crashes when auto saving a the start).
     
  2. ressit

    ressit GBAtemp Regular

    Member
    2
    Jun 4, 2018
    Vietnam
    i pm
     
    tomx86 likes this.
  3. Assasin1990

    Assasin1990 GBAtemp Regular

    Member
    4
    Dec 8, 2014
    Moldova
    i got it working with "Super Mario Odyssey"
     
  4. tomx86

    tomx86 GBAtemp Advanced Fan

    Member
    4
    Jun 3, 2015
    Poland
    Thanks, but I looking for a free donor, like a demo.
    I'll try re downloading HB demo, maybe it will help.
     
  5. nitro322

    nitro322 Member

    Newcomer
    2
    GBAtemp Patron
    nitro322 is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Mar 5, 2014
    United States
    Hello. I'm sorry if this is obvious, but can anyone tell me, or point me to a tutorial for, how to get the title key for a given game?

    I've dumped Cave Story+ using gcdumptool and I'm trying to unpack the game data. I compiled hactool and then ran through PRAGMA's tutorial to extract the keys from my switch; verified I have all that working as best I can (given I'm still new to this). I'm able to unpack the XCI into nca files, but I can't proceed any further. As I understand it, the nca files are encrypted, and I need the title key to decrypt them.

    Is this something I'm supposed to be able to determine on my own, given I have the original cart and XCI dump? or is this one of those things I have to "find"? If the former, can anyone please give me a hint on how to do this? Heck, even if the latter a hint would be appreciated.

    Thanks!

    Oh, and I should mention that I'm actually not using the NCA-NSP-XCI_TO_LayeredFS.bat file for this as I'm running Linux. However, I've been jumping through the source code and using the commands in there as an example. That's been really helpful - I was struggling with the right syntax unpacking the XCI with hactool before I found this. Posting here because I'm at least using your same methodology if not the exact script. Thanks again.
     
  6. Assasin1990

    Assasin1990 GBAtemp Regular

    Member
    4
    Dec 8, 2014
    Moldova
    NCAs that come from XCI don't need title key except updates.
    NCAs that come from NSP needs title key.
    If Secure folder from XCI contains *.tik file then there should be update game NCA in there that needs title key.

    Now where you can find title keys ?
    When you extract NSPs you get *.tik file that contain title key, also some XCI carts can have it but it's for update nca not for base game.
    Open *.tik file with any Hex Editor and
    look at 0x180, there is it.
     

    Attached Files:

    • tk.
      tk.png
      File size:
      17 KB
      Views:
      210
    Last edited by Assasin1990, Jul 31, 2018
    DarkMatterCore likes this.
  7. nitro322

    nitro322 Member

    Newcomer
    2
    GBAtemp Patron
    nitro322 is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Mar 5, 2014
    United States
    Thanks, that clears things up quite a bit. Appreciate you taking some time to explain.

    Unfortunately, I'm still having trouble getting this extracted. Using your :ExtractDecryptedNCA_Folder code as an example

    Code:
    $ ./hactool /home/user/games/switch/extract/97e31c6e7b60b1effcc89f6bc608e9b6.nca -k keys.ini --romfsdir=/home/user/games/switch/extract/romfs --exefsdir=/home/user/games/switch/extract/exefs
    [WARN] prod.keys does not exist.
    Invalid NCA header! Are keys correct?
    Done!
    Guessing I must've missed something with the keys. I'll research that some more and post back here if I hit another wall.

    Thanks again.
     
    xSillusx likes this.
  8. Assasin1990

    Assasin1990 GBAtemp Regular

    Member
    4
    Dec 8, 2014
    Moldova
    what is not a command try to put in "*.nca" or "folders"
     
  9. tomx86

    tomx86 GBAtemp Advanced Fan

    Member
    4
    Jun 3, 2015
    Poland
    I didn't work, and I also tried to install the .nsp version of botw and got "0x00014005" error, so I'll stick with version 1.0.0 for now, thanks to all for your support, bye.
     
  10. WiiFoundLove
    This message by WiiFoundLove has been removed from public view by Quantumcat, Sep 12, 2018, Reason: Requested.
    Aug 3, 2018
  11. crstofer

    crstofer Member

    Newcomer
    3
    May 31, 2007
    United States
    Cart 2 support?
     
  12. sergio_prado

    sergio_prado Advanced Member

    Newcomer
    3
    Feb 26, 2014
    Brazil
    Barueri, Brazil
    Theres any known way to repack updates/games back to .nca or .nsp?
     
  13. xSillusx

    xSillusx Advanced Member

    Newcomer
    3
    Jun 3, 2018
    Germany
    Berlin, Germany
    Hey, did you find a solution to the problem? I got the same. Would appreciate if someone knows whats going on.
     
  14. BruhLookAtThis

    BruhLookAtThis Member

    Newcomer
    1
    Aug 29, 2018
    United States
    Um...I'm new here. Where is the download link for this thing?
     
  15. huma_dawii
    OP

    huma_dawii GBAtemp Psycho!

    Member
    10
    Apr 3, 2014
    United States
    Planet Earth
    It's attached in the first post :v


    EDIT:
    NEVERMIND! What happened to the file? wtf

    @Assasin1990 any idea of what's going on?
     
    Last edited by huma_dawii, Aug 29, 2018
    BruhLookAtThis and xSillusx like this.
  16. xSillusx

    xSillusx Advanced Member

    Newcomer
    3
    Jun 3, 2018
    Germany
    Berlin, Germany
    After fiddling arround some time. I redumped my keys and it worked just like that. I guess I corrupted my keys somehow.
     
    huma_dawii likes this.
  17. loiuyt1207

    loiuyt1207 Member

    Newcomer
    3
    Apr 14, 2015
    How to repack everything after unpacked ? Like orginal file?
     
    sergio_prado likes this.
  18. yukichan2000

    yukichan2000 Newbie

    Newcomer
    1
    Oct 25, 2014
    Thanks a lot
     
  19. toto621

    toto621 GBAtemp Regular

    Member
    4
    Jan 19, 2015
    Belgium
    where is the download link ???
     
  20. Hipeopeo

    Hipeopeo Advanced Member

    Newcomer
    2
    Apr 22, 2017
    United States
    Pretty Much Hell
    Maybe you could reupload it so we can use it?
     
  21. huma_dawii
    OP

    huma_dawii GBAtemp Psycho!

    Member
    10
    Apr 3, 2014
    United States
    Planet Earth
    The thing its i dont remember what version was the working one... D:
    I will have to search and see, i'll do that later today!
     
  22. toto621
    This message by toto621 has been removed from public view by Quantumcat, Nov 3, 2018, Reason: Contains link to copyright material.
    Sep 9, 2018
  23. huma_dawii
    This message by huma_dawii has been removed from public view by Quantumcat, Nov 3, 2018, Reason: Reply to deleted post.
    Sep 9, 2018
  24. Hipeopeo
    This message by Hipeopeo has been removed from public view by Quantumcat, Nov 3, 2018, Reason: Reply to deleted post.
    Sep 9, 2018
Loading...