Homebrew RELEASE [OFFICIAL] 4NXCI - A tool for converting XCI to NSP

mdmachine

Well-Known Member
Member
Joined
Jun 15, 2009
Messages
190
Trophies
0
XP
882
Country
United States
I found that out a while back, if you try to install a merged nsp, it'll just try and install the appended chunk. An update for example.

Any clue if future installers would be able to handle a merged nsp?
 

The-4n

Well-Known Member
OP
Member
Joined
Aug 3, 2018
Messages
372
Trophies
0
Age
43
XP
2,764
Country
United States
Considering I convert everything correctly.
As I am on 6.2.0, the converted nsp will not work? Is that correct?

Wrong
It works

What does this mean
I installed a custom smash nsp with updates and dlc and it worked fine
Using SX OS

I didn't look at custom smash nsp, idk what it contains
Maybe sx os installer supports nsps with more than one cnmt
 
Last edited by The-4n,

drvipej

Well-Known Member
Member
Joined
Mar 25, 2010
Messages
110
Trophies
0
XP
204
Country
United States
Wrong
It works

then I guess I am not using lockpick incorrectly to create my key files.
Back to https://gbatemp.net/threads/lockpick-switch-key-derivation-homebrew.525575/ and carefully going through this.

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


It must be this step then...
Use the resulting prod.keys file as needed and rename if required

I make copies of product.keys as keys.ini, dat and txt.
I drag the xci across over the exe, and it extracts.
It istalls but when it is run it says it is corrupt.
help:(
 

18Phoenix

Well-Known Member
Member
Joined
Nov 21, 2005
Messages
839
Trophies
1
XP
2,293
Country
Germany
Hi.
I'm made a start.bat for your 4NXCI, it has to be in the same folder.
First it checks for the keys-file.

There're 3 methodes to use:
- Start it and a XCI-file in the same folder will be recognized.
- Start it and it will ask to drag&drop a xci-file.
- Just drag&drop a XCI-file at the start.bat.

Use it if you like it, but sadly it's only for single files, not for folders. Perhaps later.

I uploaded it zipped here:
https://www77.zippyshare.com/v/QcOAu5gw/file.html

Just have a look first, it's simple code, nothing to fear, I'm a tool fan :D
 
Last edited by 18Phoenix,

d4nielr

Well-Known Member
Member
Joined
Dec 2, 2014
Messages
120
Trophies
0
Age
26
Location
UK
XP
241
Country
cant get this to work used lockpick to get keys and all i get is a error saying failed to match keys then only 2 ncas help please
 

18Phoenix

Well-Known Member
Member
Joined
Nov 21, 2005
Messages
839
Trophies
1
XP
2,293
Country
Germany
@The-4n
Hi. Since now I use my own keys from my 6.2.0 Switch dumped with Lockpick some minutes ago including 120 keys.
Suddenly I get so many warnings:

4NXCI v2.10 by The-4n
[WARN]: Failed to match key "bis_kek_source", (value "*")
[WARN]: Failed to match key "bis_key_source_00", (value "*")
[WARN]: Failed to match key "bis_key_source_01", (value "*")
[WARN]: Failed to match key "bis_key_source_02", (value "*")
[WARN]: Failed to match key "bis_key_00", (value "*")
[WARN]: Failed to match key "bis_key_01", (value "*")
[WARN]: Failed to match key "bis_key_02", (value "*")
[WARN]: Failed to match key "bis_key_03", (value "*")
[WARN]: Failed to match key "device_key", (value "*")
[WARN]: Failed to match key "eticket_rsa_kek", (value "*")
[WARN]: Failed to match key "eticket_rsa_kek_source", (value "*")
[WARN]: Failed to match key "eticket_rsa_kekek_source", (value "*")
[WARN]: Failed to match key "per_console_key_source", (value "*")
[WARN]: Failed to match key "retail_specific_aes_key_source", (value "*")
[WARN]: Failed to match key "rsa_oaep_kek_generation_source", (value "*")
[WARN]: Failed to match key "rsa_private_kek_generation_source", (value "*")
[WARN]: Failed to match key "save_mac_key", (value "*")
[WARN]: Failed to match key "ssl_rsa_kek", (value "*")
[WARN]: Failed to match key "ssl_rsa_kek_source_x", (value "*")
[WARN]: Failed to match key "ssl_rsa_kek_source_y", (value "*")

Saving Secure Partition...

Sure, I replaced the values with a *.



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



cant get this to work used lockpick to get keys and all i get is a error saying failed to match keys then only 2 ncas help please
How many keys have you got? With which hekate version have you dumped tsec_keys und fuses ?
 
Last edited by 18Phoenix,

The-4n

Well-Known Member
OP
Member
Joined
Aug 3, 2018
Messages
372
Trophies
0
Age
43
XP
2,764
Country
United States
cant get this to work used lockpick to get keys and all i get is a error saying failed to match keys then only 2 ncas help please

Post full 4nxci log here

@The-4n
Hi. Since now I use my own keys from my 6.2.0 Switch dumped with Lockpick some minutes ago including 120 keys.
Suddenly I get so many errors:

4NXCI v2.10 by The-4n
[WARN]: Failed to match key "bis_kek_source", (value "*")
[WARN]: Failed to match key "bis_key_source_00", (value "*")
[WARN]: Failed to match key "bis_key_source_01", (value "*")
[WARN]: Failed to match key "bis_key_source_02", (value "*")
[WARN]: Failed to match key "bis_key_00", (value "*")
[WARN]: Failed to match key "bis_key_01", (value "*")
[WARN]: Failed to match key "bis_key_02", (value "*")
[WARN]: Failed to match key "bis_key_03", (value "*")
[WARN]: Failed to match key "device_key", (value "*")
[WARN]: Failed to match key "eticket_rsa_kek", (value "*")
[WARN]: Failed to match key "eticket_rsa_kek_source", (value "*")
[WARN]: Failed to match key "eticket_rsa_kekek_source", (value "*")
[WARN]: Failed to match key "per_console_key_source", (value "*")
[WARN]: Failed to match key "retail_specific_aes_key_source", (value "*")
[WARN]: Failed to match key "rsa_oaep_kek_generation_source", (value "*")
[WARN]: Failed to match key "rsa_private_kek_generation_source", (value "*")
[WARN]: Failed to match key "save_mac_key", (value "*")
[WARN]: Failed to match key "ssl_rsa_kek", (value "*")
[WARN]: Failed to match key "ssl_rsa_kek_source_x", (value "*")
[WARN]: Failed to match key "ssl_rsa_kek_source_y", (value "*")

Saving Secure Partition...

Sure, I replaced the values with a *.



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




How many keys have you got? With which hekate version have you dumped tsec_keys und fuses ?

They are not important, if they are bothering you, just open keys file with some text editor and remove them
 
  • Like
Reactions: natkoden

The-4n

Well-Known Member
OP
Member
Joined
Aug 3, 2018
Messages
372
Trophies
0
Age
43
XP
2,764
Country
United States
Ok, thanks.
Do you plan to skip these keys to avoid unnecessary warnings in the next release?

4NXCI is based on hactool, they are basically hactool warnings and hactool is the reference for keys template
But I'll do some changes in for keys verification in future releases
 
Last edited by The-4n,
  • Like
Reactions: 18Phoenix

Mad_Murdock

New Member
Newbie
Joined
Dec 17, 2018
Messages
3
Trophies
0
Age
41
XP
71
Country
United States
I successfully converted Diablo 3 XCI to an NSP, but when I attempted to install it through SX OS it failed with a generic error.

C:\Users\MadMurdock\Desktop\hactool>4nxci.exe -k keys.dat Diablo3.xci
4NXCI v2.10 by The-4n

Saving Secure Partition...
Saving 99a8e2c711520b5c5378be8d5009e43c.nca to 4nxci_extracted_xci\99a8e2c711520b5c5378be8d5009e43c.nca
Saving 8f587fcdd026b74babdebd0d67b8da1a.nca to 4nxci_extracted_xci\8f587fcdd026b74babdebd0d67b8da1a.nca
Saving 0b01a707ac53ab475ba5547cb8f84fd3.nca to 4nxci_extracted_xci\0b01a707ac53ab475ba5547cb8f84fd3.nca
Saving c7e06f503105220c3a01a675b34bd9a4.nca to 4nxci_extracted_xci\c7e06f503105220c3a01a675b34bd9a4.nca
Saving a5edb1e064bfcec98ad9d37fb8c88323.cnmt.nca to 4nxci_extracted_xci\a5edb1e064bfcec98ad9d37fb8c88323.cnmt.nca

===> Processing 1 Application(s):
===> Processing Application 1 Metadata:
Patching 4nxci_extracted_xci\99a8e2c711520b5c5378be8d5009e43c.nca
Patching 4nxci_extracted_xci\8f587fcdd026b74babdebd0d67b8da1a.nca
Patching 4nxci_extracted_xci\0b01a707ac53ab475ba5547cb8f84fd3.nca
Patching 4nxci_extracted_xci\c7e06f503105220c3a01a675b34bd9a4.nca
Patching 4nxci_extracted_xci\a5edb1e064bfcec98ad9d37fb8c88323.cnmt.nca

Creating xml metadata 4nxci_extracted_xci\a5edb1e064bfcec98ad9d37fb8c88323.cnmt.xml

Creating nsp 01001b300b9be000.nsp
Packing 4nxci_extracted_xci\a5edb1e064bfcec98ad9d37fb8c88323.cnmt.xml into 01001b300b9be000.nsp
Packing 4nxci_extracted_xci\99a8e2c711520b5c5378be8d5009e43c.nca into 01001b300b9be000.nsp
Packing 4nxci_extracted_xci\8f587fcdd026b74babdebd0d67b8da1a.nca into 01001b300b9be000.nsp
Packing 4nxci_extracted_xci\0b01a707ac53ab475ba5547cb8f84fd3.nca into 01001b300b9be000.nsp
Packing 4nxci_extracted_xci\c7e06f503105220c3a01a675b34bd9a4.nca into 01001b300b9be000.nsp
Packing 4nxci_extracted_xci\a5edb1e064bfcec98ad9d37fb8c88323.cnmt.nca into 01001b300b9be000.nsp


Summary:
Game NSP 1: 01001b300b9be000.nsp

Done!
 

The-4n

Well-Known Member
OP
Member
Joined
Aug 3, 2018
Messages
372
Trophies
0
Age
43
XP
2,764
Country
United States
I successfully converted Diablo 3 XCI to an NSP, but when I attempted to install it through SX OS it failed with a generic error.

C:\Users\MadMurdock\Desktop\hactool>4nxci.exe -k keys.dat Diablo3.xci
4NXCI v2.10 by The-4n

Saving Secure Partition...
Saving 99a8e2c711520b5c5378be8d5009e43c.nca to 4nxci_extracted_xci\99a8e2c711520b5c5378be8d5009e43c.nca
Saving 8f587fcdd026b74babdebd0d67b8da1a.nca to 4nxci_extracted_xci\8f587fcdd026b74babdebd0d67b8da1a.nca
Saving 0b01a707ac53ab475ba5547cb8f84fd3.nca to 4nxci_extracted_xci\0b01a707ac53ab475ba5547cb8f84fd3.nca
Saving c7e06f503105220c3a01a675b34bd9a4.nca to 4nxci_extracted_xci\c7e06f503105220c3a01a675b34bd9a4.nca
Saving a5edb1e064bfcec98ad9d37fb8c88323.cnmt.nca to 4nxci_extracted_xci\a5edb1e064bfcec98ad9d37fb8c88323.cnmt.nca

===> Processing 1 Application(s):
===> Processing Application 1 Metadata:
Patching 4nxci_extracted_xci\99a8e2c711520b5c5378be8d5009e43c.nca
Patching 4nxci_extracted_xci\8f587fcdd026b74babdebd0d67b8da1a.nca
Patching 4nxci_extracted_xci\0b01a707ac53ab475ba5547cb8f84fd3.nca
Patching 4nxci_extracted_xci\c7e06f503105220c3a01a675b34bd9a4.nca
Patching 4nxci_extracted_xci\a5edb1e064bfcec98ad9d37fb8c88323.cnmt.nca

Creating xml metadata 4nxci_extracted_xci\a5edb1e064bfcec98ad9d37fb8c88323.cnmt.xml

Creating nsp 01001b300b9be000.nsp
Packing 4nxci_extracted_xci\a5edb1e064bfcec98ad9d37fb8c88323.cnmt.xml into 01001b300b9be000.nsp
Packing 4nxci_extracted_xci\99a8e2c711520b5c5378be8d5009e43c.nca into 01001b300b9be000.nsp
Packing 4nxci_extracted_xci\8f587fcdd026b74babdebd0d67b8da1a.nca into 01001b300b9be000.nsp
Packing 4nxci_extracted_xci\0b01a707ac53ab475ba5547cb8f84fd3.nca into 01001b300b9be000.nsp
Packing 4nxci_extracted_xci\c7e06f503105220c3a01a675b34bd9a4.nca into 01001b300b9be000.nsp
Packing 4nxci_extracted_xci\a5edb1e064bfcec98ad9d37fb8c88323.cnmt.nca into 01001b300b9be000.nsp


Summary:
Game NSP 1: 01001b300b9be000.nsp

Done!

Maybe it's corrupted in your sd card or there's a very low chance that xci is broken

Thank you for this. Curious what would make the program immediately close upon opening.

Thank you.

It's usually keys file
Launch it via command prompt to find the error
 

DoctorBagPhD

Well-Known Member
Member
Joined
Oct 16, 2008
Messages
188
Trophies
1
XP
1,244
Country
Ireland
Hi guys, I tried converting Rocket League Ultimate but it creates 15 separate NSPs, do I install all of these separately or is there some sort of merging process I have to do first? I'd like to install via USB is all and I'm not sure if there's an install order or what.
 
Last edited by DoctorBagPhD,

The-4n

Well-Known Member
OP
Member
Joined
Aug 3, 2018
Messages
372
Trophies
0
Age
43
XP
2,764
Country
United States
Hi guys, I tried converting Rocket League Ultimate but it creates 15 separate NSPs, do I install all of these separately or is there some sort of merging process I have to do first? I'd like to install via USB is all and I'm not sure if there's an install order or what.

Install all of them, It contains multiple DLCs

The correct installation order is Game (TitleID), Update (TitleID + 0x800), DLC(TitleID + 0x1000+01-FF)
But the order is not important in most of the times
 
  • Like
Reactions: DoctorBagPhD
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Skelletonike @ Skelletonike:
    3h left until work finishes, bah
  • Skelletonike @ Skelletonike:
    link doesn't work
    +2
  • Skelletonike @ Skelletonike:
    1H left, such a slow week.
  • Sonic Angel Knight @ Sonic Angel Knight:
    Okay, I had spaghetti :P
  • SylverReZ @ SylverReZ:
    Hope they made lots of spaget
  • K3N1 @ K3N1:
    Chill dog
  • SylverReZ @ SylverReZ:
    Chilli dog
  • Skelletonike @ Skelletonike:
    Damn, I'm loving the new zelda.
  • xtremegamer @ xtremegamer:
    loving the new zelda, i started a game, it was so fucking good, so i
    am waiting on my friend to get home so we can start a new one together
  • Skelletonike @ Skelletonike:
    I just dislike that they don't let me choose the voices before the game starts. Happened with botw as well, had to change to japanese and restart.
  • K3N1 @ K3N1:
    But the important question is can you choose gender
  • Skelletonike @ Skelletonike:
    Same way you can choose Gerald's gender.
  • Skelletonike @ Skelletonike:
    *Geralt, damn autocorrect.
  • Psionic Roshambo @ Psionic Roshambo:
    But can he be trans? Lol
  • K3N1 @ K3N1:
    Zelda transforms into link
  • Psionic Roshambo @ Psionic Roshambo:
    Link I'm not the princess your looking for.... *Pulls a crying game*
  • K3N1 @ K3N1:
    *skirt up* it's exactly what I always wanted
  • Skelletonike @ Skelletonike:
    Just scanned all my zelda amiibos, took a while but didn't get anything that cool, did get the lon lon ranch hylian fabrics though.
  • Skelletonike @ Skelletonike:
    It was pretty funny when I scanned wolf link and got a shit load of meat.
  • K3N1 @ K3N1:
    @Skelletonike, btw I ran that custom for mgs4 on the deck I'm amazed it got that far in game
  • K3N1 @ K3N1:
    Plug in*
    K3N1 @ K3N1: Plug in*