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,001
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
  • Veho @ Veho:
    Illinois is working to ban toxic food additives that have been banned for decades in other countries; additives that can be replaced and all those countries still have Skittles and Mountain Dew. Title of the piece: GUBMINT WANTS TO TAKE AWAY YOUR CANDY
  • Veho @ Veho:
    Gee, I wonder if the author is biased?
  • SylverReZ @ SylverReZ:
    @Veho, Sounds and smells like bullshit. They don't give you cancer, and California should know that. I don't get why they stick labels that say "may or may not cause reproductive harm or cancer".
  • Veho @ Veho:
    Arsenic doesn't give you cancer either.
    +2
  • Veho @ Veho:
    California has already banned those additives BTW.
    +2
  • Veho @ Veho:
    Psi has been banned in the state of California.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    I am the cancer!!! lol
  • Psionic Roshambo @ Psionic Roshambo:
    Yayyy got arcade games on the Pi working lol
  • Veho @ Veho:
    Cool.
  • Psionic Roshambo @ Psionic Roshambo:
    Now to spend 6 months deleting all the garbage lol
  • Psionic Roshambo @ Psionic Roshambo:
    Mame should be two sets one for preservation of everything and one set for people who just want to play and enjoy the old old ganes
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, Shouldn't preservation be legal tho?
    +1
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, I always see this dude's shorts, he sounds pretty annoying.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Preservation yeah it absolutely should be legal
    +1
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, Believe Japan was going to make it legal at some point, according to a Kotaku story.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I swear like 99% of arcade games wouldn't even exist these days outside of MAME the arcade machines are old and busted very few ever saw any sort of home conversion
  • Psionic Roshambo @ Psionic Roshambo:
    We get 37 versions of Super Mario Bros but 0 of Beast Busters
    +1
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, There's a lot of obscure Japanese arcade titles that are either lost to time or dumped.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    It's so unfair, maybe AI can save us lol
  • Psionic Roshambo @ Psionic Roshambo:
    I mean if a company could use AI to do the work of a home conversion for essentially free why not? The rights for some games are completely lost though
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, AI is taking our jobs!
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Just tried the Master System version.... Ugghh
    Psionic Roshambo @ Psionic Roshambo: Just tried the Master System version.... Ugghh