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

  • Thread starter Thread starter huma_dawii
  • Start date Start date
  • Views Views 306,058
  • Replies Replies 181
  • Likes Likes 27
I also get "Section 0/1 is corrupted", what update key to use .cert, .tik or the biggest .nca or the donor game?
in every tik file you can see it at 0x180 in Hex Editor
 

Attachments

  • tk.png
    tk.png
    17 KB · Views: 1,691
@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:
 

Attachments

@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:


That is very helpful indeed! Thanks a lot!

Maybe @Assasin1990 want to take a look at this?
 
  • Like
Reactions: Assasin1990
I tried and updated but then the game does not play anymore
game: just dance 2018
donor: fortiny
 
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.

--------------------- MERGED ---------------------------

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 Sonansune,
@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:
Great! Thank you! Updated script with your tools!
 
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.
 
-i highly recommend Plague Mod you can easily switch donor title right on console.
-you also can use this Website to patch them.
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,
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?
both cert and tik should under exefs.
sig patch is out, why not just using nsp instead.
 
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?
just get in plague_mod discord ,people will help you there.
 
  • Like
Reactions: tomx86
@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,
@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)
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"
 
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"
I need the title key with "Extract Encrypted NCA" and "Info Encrypted NCA" options, after use "Extracted eShop NSP" option.
 
Last edited by morph95,
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,

Site & Scene News

Popular threads in this forum