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. Assasin1990

    Assasin1990 GBAtemp Regular

    Member
    4
    Dec 8, 2014
    Moldova
    in every tik file you can see it at 0x180 in Hex Editor
     

    Attached Files:

    • tk.
      tk.png
      File size:
      17 KB
      Views:
      402
  2. ewabc886

    ewabc886 Member

    Newcomer
    2
    Jul 11, 2018
    Hong Kong
    Didn't the creater post it in a release thread?
     
  3. Gurumeditation

    Gurumeditation Member

    Newcomer
    4
    May 18, 2016
    Gambia, The
    Ah it worsk =) perfect
     
  4. Ericjwg

    Ericjwg GBAtemp Psycho!

    Member
    9
    Jul 2, 2015
    Canada
    @huma_dawii
    hi OP,
    here I present u an even dumber and click-drag free way: (i dont want create confusion for other user, so i give u the solution here to u instead of upload a fix myself:D)

    for getting the largest file, you can do this:
    Code:
    (for /f "delims=" %%i in ('dir Extracted_NSP /b /os') do set bs=%%~fi)>nul
    
    now, the variable bs is the absolute path of the largest file in Extracted_NSP.

    for get the key from tik,
    I made an executable. it take a tik file and return the key string: tf.exe xxxx.tik, output will be a 32 length string.
    Code:
    (for %%i in (Extracted_NSP\*.tik) do (for /f %%k in ('tf.exe %%i') do set key=%%k))>nul
    now, the variable key is the 16 bytes key extracted from the tik file.


    hope new version will come soon:lol:
     

    Attached Files:

    • tf.zip
      File size:
      1.9 KB
      Views:
      249
    LiamMCW, HoTsHoTz79, jmleolgq and 3 others like this.
  5. huma_dawii
    OP

    huma_dawii GBAtemp Psycho!

    Member
    10
    Apr 3, 2014
    United States
    Planet Earth

    That is very helpful indeed! Thanks a lot!

    Maybe @Assasin1990 want to take a look at this?
     
    Assasin1990 likes this.
  6. tomx86

    tomx86 GBAtemp Advanced Fan

    Member
    5
    Jun 3, 2015
    Poland
    And how and where to change the game ID to donor game, or just put exefs and romfs to a folden named like the donor ID?
     
  7. stingray1059

    stingray1059 GBAtemp Regular

    Member
    3
    Feb 7, 2009
    1,2 switch doesnt work even the eshop version..
     
  8. ressit

    ressit GBAtemp Regular

    Member
    3
    Jun 4, 2018
    Vietnam
    I tried and updated but then the game does not play anymore
    game: just dance 2018
    donor: fortiny
     
  9. Assasin1990
    This message by Assasin1990 has been removed from public view by Joe88, Aug 4, 2018, Reason: Warez.
    Jul 22, 2018
  10. tomx86

    tomx86 GBAtemp Advanced Fan

    Member
    5
    Jun 3, 2015
    Poland
    Great, but still needs a working "main.npdm" Title ID patcher.
     
  11. Assasin1990

    Assasin1990 GBAtemp Regular

    Member
    4
    Dec 8, 2014
    Moldova
    -i highly recommend Plague Mod you can easily switch donor title right on console.
    -you also can use this Website to patch them.
     
    Last edited by Assasin1990, Jul 22, 2018
  12. Ericjwg

    Ericjwg GBAtemp Psycho!

    Member
    9
    Jul 2, 2015
    Canada
    another main.npdm patch tool?
    but i dont see much value from it... just take a look at the below program.

    meanwhile, u guys can use this. https://gbatemp.net/threads/main-npdm-title-id-patcher.508242/

    I suggest leave the ready to go folder as the original game title id.
    so the above tool can use with ease.

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

    if ppl really want another patcher.
    I will make one that can be utilized by this bat.
    somewhat like:
    npdmpatcher.exe (the original game titleid) (target game titleid)
     
    Last edited by Ericjwg, Jul 22, 2018
  13. xHR

    xHR Advanced Member

    Newcomer
    4
    Apr 20, 2013
    Great! Thank you! Updated script with your tools!
     
  14. Deleted-19228

    Deleted-19228 Newbie

    What's the process if you want to convert an XCI or the NCA file to NSP? Going through this doesn't make sense in that respect, everything else does though.
     
  15. tomx86

    tomx86 GBAtemp Advanced Fan

    Member
    5
    Jun 3, 2015
    Poland
    I don't know man I did everything to update BOTW, using your tool, patched the main.npdm wit your sugestions, and I still get this error:
    The software was closed because an error occurred.
    I'm using "Happy Birthdays DEMO" as a donor I redownloaded it deleted save files, and still nothing.
    By the way I'm using "PRAGMAsLayeredFSKit-v1.4" for making romfs.bin from XCI games and it always works, so I made a compering and, your LayeredFS is missing files:
    Game ID/*.cert
    Game ID/*.tik
    Game ID/exefs/subsdk1
    Game ID/exefs/subsdk2
    Game ID/exefs/subsdk3
    Maybe that's the problem?
     
    Last edited by tomx86, Jul 23, 2018
  16. Ericjwg

    Ericjwg GBAtemp Psycho!

    Member
    9
    Jul 2, 2015
    Canada
    both cert and tik should under exefs.
    sig patch is out, why not just using nsp instead.
     
  17. Assasin1990

    Assasin1990 GBAtemp Regular

    Member
    4
    Dec 8, 2014
    Moldova
    just get in plague_mod discord ,people will help you there.
     
    tomx86 likes this.
  18. morph95

    morph95 Advanced Member

    Newcomer
    2
    Jun 6, 2014
    France
    @Assasin1990
    Thanks to
    [SciresM] for his hactool
    [Ericjwg] for his tf.exe that return return title key
    from extracted tik file and some tips.

    You implemented tf.exe's Ericjwg but your script still ask me the title key for extraction... (in v1.4 and v1.6, don't test v1.5)
     
    Last edited by morph95, Jul 24, 2018
  19. Assasin1990

    Assasin1990 GBAtemp Regular

    Member
    4
    Dec 8, 2014
    Moldova
    typo lel.
    yeah, it use tf.exe when you select nsp to LayeredFS , because it have and know where is the tik file.
    what are you select and script ask you for titlekey ?
    only v1.6 use tf.exe
    I'll add soon new option "Get titlekey from *.tik file"
     
  20. morph95

    morph95 Advanced Member

    Newcomer
    2
    Jun 6, 2014
    France
    I need the title key with "Extract Encrypted NCA" and "Info Encrypted NCA" options, after use "Extracted eShop NSP" option.
     
    Last edited by morph95, Jul 24, 2018
  21. suraxiuxiu

    suraxiuxiu Newbie

    Newcomer
    1
    Jun 16, 2018
    China
    Do you know how to pack romfs(.bin) to nca?
     
  22. Ashura66

    Ashura66 GBAtemp Advanced Maniac

    Member
    7
    Feb 1, 2016
    Portugal
    Under my bed
    I'm getting a very weird error with this. Every time i try to extract a NSP it says it can't convert it to UTF-16

    EDIT: Ok now when i hit the get keys batch i get an error, something about illegal path?
     
    Last edited by Ashura66, Jul 29, 2018
Quick Reply
Draft saved Draft deleted
Loading...