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

Assasin1990

Well-Known Member
Member
Joined
Dec 8, 2014
Messages
140
Trophies
0
Age
34
XP
739
Country
Moldova
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,564

Sonansune

Well-Known Member
Member
Joined
Jul 2, 2015
Messages
3,734
Trophies
1
XP
2,142
Country
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:
 

Attachments

  • tf.zip
    1.9 KB · Views: 685

huma_dawii

Well-Known Member
OP
Member
Joined
Apr 3, 2014
Messages
3,880
Trophies
2
Age
33
Location
Planet Earth
XP
4,269
Country
United States
@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

Sonansune

Well-Known Member
Member
Joined
Jul 2, 2015
Messages
3,734
Trophies
1
XP
2,142
Country
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.

--------------------- 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,

xHR

Well-Known Member
Member
Joined
Apr 20, 2013
Messages
125
Trophies
1
Age
36
Website
twitter.com
XP
1,000
Country
@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!
 
D

Deleted-19228

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

tomx86

Well-Known Member
Member
Joined
Jun 3, 2015
Messages
778
Trophies
0
Age
38
XP
2,184
Country
Poland
-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,

Sonansune

Well-Known Member
Member
Joined
Jul 2, 2015
Messages
3,734
Trophies
1
XP
2,142
Country
Canada
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.
 

Assasin1990

Well-Known Member
Member
Joined
Dec 8, 2014
Messages
140
Trophies
0
Age
34
XP
739
Country
Moldova
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

morph95

Well-Known Member
Newcomer
Joined
Jun 6, 2014
Messages
56
Trophies
0
Age
39
XP
162
Country
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,

Assasin1990

Well-Known Member
Member
Joined
Dec 8, 2014
Messages
140
Trophies
0
Age
34
XP
739
Country
Moldova
@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"
 

morph95

Well-Known Member
Newcomer
Joined
Jun 6, 2014
Messages
56
Trophies
0
Age
39
XP
162
Country
France
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,

Ashura66

Well-Known Member
Member
Joined
Feb 1, 2016
Messages
1,766
Trophies
0
Age
37
Location
Under my bed
XP
1,683
Country
Portugal
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

General chit-chat
Help Users
    AncientBoi @ AncientBoi: iH