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

Bigjokker

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
115
Trophies
0
Age
46
XP
343
Country
United States
@Asia81 & @naddel81 I posted this batch file a few pages back that does exactly what you want.

Just drag one XCI on it and it will convert all XCIs in the folder. It keeps the original XCI name and labels the UPD and DLC files.

Here it is again just copy and paste to a text and change .txt to .bat. Put it in the folder with 4nxci.exe and keys.bat.

Code:
@echo off
title 4nxci - Batch drag and drop
color 0A
if not "%~x1"==".xci" echo : : Drag XCI only on bat!
if not "%~x1"==".xci" echo.
if not "%~x1"==".xci" pause
if not "%~x1"==".xci" exit
CD /d "%~dp0"
for %%I in ("%~dp1*.xci") do ECHO :: Converting "%%~nxI" to "%%~nI.nsp". Depending on size this can take awhile.& echo.&"%~dp04nxci.exe" "%%~I"> new1.txt& echo %%~nI>new.txt& CALL :sub
exit
:sub
SETLOCAL
set /P name=<new.txt
ren "*000.nsp" "%name%.nsp"
if exist "*800.nsp" ren "*800.nsp" "%name%-[UPD].nsp"
:loop
set TID=
if exist "*0??.nsp" set /a num+=1
for /f "tokens=1,2,3,4" %%J in (new1.txt) do if "%%J %%K %%L"=="DLC NSP %num%:" set TID=%%M
if exist "%TID%" ren "%TID%" "%name%-[DLC-%num%].nsp"
if "%TID%"=="" goto dun
if %num%==99 goto dun
if exist "*0??.nsp" goto loop
:dun
RD /S /Q "%~dp04nxci_extracted_xci"
del new.txt
del new1.txt
ENDLOCAL
goto :eof


Here is the batch ready to go if you don't want to copy it.
 

Attachments

  • 4nxci - Batch drag and drop.rar
    604 bytes · Views: 131
Last edited by Bigjokker,

2manyGames2play

Well-Known Member
Member
Joined
Nov 24, 2015
Messages
172
Trophies
0
Age
117
XP
130
Country
Netherlands
@benserwa

Theres some method to get your keys:
1- (easiest) - With the apps called Kezplez-nx.
Get the apps (https://github.com/tesnos/kezplez-nx/releases) boot your console with the ipl.bin payload.
Once on the hekate menu, print your tsec fuses on your sd card (press power once all keys on the screen), next repeat and print your fuses info.
After you can load CFW.
After go into Hombrew Channel (select album), boot Kezplez and press "A" when the rainbow is on the scree. The apps will write a files named "keys.txt" on the root of your SD card.

2- (medium) - With your backup files and script locally on your PC.
Follow this guide : https://gbatemp.net/threads/how-to-get-switch-keys-for-hactool-xci-decrypting.506978/

Once you have the keys.txt file, rename it keys.dat and place the file in your 4NXCI directory and.... ENJOY !

Hope it will help you !

Thank you for the good instructions. Unfortunately i face the problem that kezplez-nx won't load, the screen turns black (LCD backlit is on, just a blank screen) and that's it.
I used hekate_ctcaer_4.0.bin with TegraRcmGUI, exported the required stuff and loaded ReiNX. kezplez-nx however refuses to show up.
 
Last edited by 2manyGames2play,

eyeliner

Has an itch needing to be scratched.
Member
Joined
Feb 17, 2006
Messages
2,300
Trophies
1
Age
42
XP
4,113
Country
Portugal
I have a problem, see?
My user name on my PC has a special char, see?
Like this one: 'é'.
I am faced with this message, see:
myself said:
D:\Nintendo\Switch\tools\4nxci-v1.21_win32>4nxci.exe C:\Users\José\Downloads\1-2-Switch_(World)_(En,Ja,Fr,De,Es,It,Nl,Ru)_[Trimmed].xci
4NXCI v1.21 by The-4n
unable to open C:\Users\JosÚ\Downloads\: No such file or directory
The 'é' does not become 'é' in your program.

By putting the xci in another folder, it all works as expected.
 
Last edited by eyeliner,

2manyGames2play

Well-Known Member
Member
Joined
Nov 24, 2015
Messages
172
Trophies
0
Age
117
XP
130
Country
Netherlands
4nxci v1.20 is not creating DLC nsp with Sonic Mania Plus as it does with V1.10
Can you even get Sonic Mania Plus to work? 4NXCI (1.21) converts it fine, but as soon as i try to install them with latest tinfoil, it fails:

Preparing install...
Failed to install NSP!
OpenFileSystemWithId:102: Failed to open file system with id: @Sdcard://tinfoil/nsp/Sonic_Mania_Plus_NSW-LiGHTFORCE-1.0.nsp/5e25c0d0d4dfd6a2621d4241fa36ab15.cnmt.nca Error code: 0x00234c02
Done!

Press (B) to return.
Also, when inspecting the .nsp's with XCI-Explorer (1.4.2) it shows MasterKey4 (Unknown) for 01009aa000faa000.nsp (main game), MasterKey3 (4.0.0-4.1.0) for 01009aa000faa800.nsp (update), and MasterKey4 (Unknown) for 01009aa000fab001.nsp (DLC).

The .xml's of the extracted .xci also show KeyGeneration 4 and 5.

I'm on 4.0.1 btw.
 

The-4n

Well-Known Member
OP
Member
Joined
Aug 3, 2018
Messages
372
Trophies
0
Age
42
XP
2,750
Country
United States
Can you even get Sonic Mania Plus to work? 4NXCI (1.21) converts it fine, but as soon as i try to install them with latest tinfoil, it fails:

Also, when inspecting the .nsp's with XCI-Explorer (1.4.2) it shows MasterKey4 (Unknown) for 01009aa000faa000.nsp (main game), MasterKey3 (4.0.0-4.1.0) for 01009aa000faa800.nsp (update), and MasterKey4 (Unknown) for 01009aa000fab001.nsp (DLC).

The .xml's of the extracted .xci also show KeyGeneration 4 and 5.

I'm on 4.0.1 btw.

Sonic mania plus requires 5.0.2
 
  • Like
Reactions: jptsubasa

XaneTenshi

Well-Known Member
Member
Joined
Nov 24, 2013
Messages
513
Trophies
0
Age
32
XP
1,095
Country
Denmark
that's what happens to some physical games bundled with an update
Rocket League is the same, the game requires higher firmware than update

So I have a small suggestion, since at this point, some people seem to think that when a converted XCI is not working, it is (potentionally) due to your program, when it is actually because they don't have the required FW version to play the game.

Why not link to the thread about Required Firmware, in the OP and have people consult that thread before they start reporting problems with converted XCI's?

https://gbatemp.net/threads/list-games-required-firmware-version.485959/
 

The-4n

Well-Known Member
OP
Member
Joined
Aug 3, 2018
Messages
372
Trophies
0
Age
42
XP
2,750
Country
United States
So I have a small suggestion, since at this point, some people seem to think that when a converted XCI is not working, it is (potentionally) due to your program, when it is actually because they don't have the required FW version to play the game.

Why not link to the thread about Required Firmware, in the OP and have people consult that thread before they start reporting problems with converted XCI's?

https://gbatemp.net/threads/list-games-required-firmware-version.485959/

maybe i do
nswdb is a better source, its info is based on scene dumps
 
Last edited by The-4n,

The-4n

Well-Known Member
OP
Member
Joined
Aug 3, 2018
Messages
372
Trophies
0
Age
42
XP
2,750
Country
United States
new version is out, v1.30
you can now load your keys file with -k or --keyset option
added --nodummytik option to prevent 4NXCI from including dummy tik and cert in nsps so your ticketdb will stay clean (some title installers may return an error or show a warning when your nsps doesn't have tik and cert)
also added 64-bit build in this release, it's a bit faster than 32-bit build in conversion

Changelog:
Added Options
Added option for skipping dummy cert and tik creation
Added option for manually loading keyset file
Removed rightsid calculation for NCA Metadatas
 
Last edited by The-4n,

BillyJo

Well-Known Member
Newcomer
Joined
Jan 8, 2017
Messages
54
Trophies
0
Age
39
XP
1,092
Country
Canada
Thank you for the good instructions. Unfortunately i face the problem that kezplez-nx won't load, the screen turns black (LCD backlit is on, just a blank screen) and that's it.
I used hekate_ctcaer_4.0.bin with TegraRcmGUI, exported the required stuff and loaded ReiNX. kezplez-nx however refuses to show up.

@2manyGames2play and others who are not able to run kezplez-nx, you have to use the ipl.bin and not the hekate_ctcearxxx.bin
By using the ipl.bin when you will backup your fuses and other needed, the files that will output is not the same name and same format as the one build with the hekate.bin

once you will have the right backup files try to boot kezplez-nx

have a good day !
 
  • Like
Reactions: 2manyGames2play

demsondjoo

Active Member
Newcomer
Joined
Jan 8, 2016
Messages
38
Trophies
0
Age
25
XP
223
Country
Hello,

i tried converting 2 xcis to nsp (dragonquest builder and mario kart) but both gave me .nca files. i couldnt find any nsp.
what am i doing wrong?
 

demsondjoo

Active Member
Newcomer
Joined
Jan 8, 2016
Messages
38
Trophies
0
Age
25
XP
223
Country
use the latest version, make sure your keys are correct ones, post the conversion log
i am currently using the latest version, and i will try to get my keys again from kezplez tonight as my current one is from the guide that i scanned from a QR code.
Didnt have a chance to grab the conversion log as the application crashes before it ends.
 

The-4n

Well-Known Member
OP
Member
Joined
Aug 3, 2018
Messages
372
Trophies
0
Age
42
XP
2,750
Country
United States
i am currently using the latest version, and i will try to get my keys again from kezplez tonight as my current one is from the guide that i scanned from a QR code.
Didnt have a chance to grab the conversion log as the application crashes before it ends.

that QR Code keys are your BIS keys, different from the keys that 4NXCI requires, kezplez keys are the one that 4NXCI requires
launch the program with command prompt (no drag and drop) so the log stays in console
 
  • Like
Reactions: jptsubasa

LordAlex1441

New Member
Newbie
Joined
Sep 16, 2018
Messages
4
Trophies
0
Age
30
XP
43
Country
Mexico
I have tried to install one piece pirate warriors 3 converted from xci format to nsp without success, when trying with tinfoil or dev it shows error code: 0x00234c02

my switch is on 5.1.0

i need to update it??, the problem is that Reynx no support actual firmware with sleep mode isn´t it??
 
General chit-chat
Help Users
  • No one is chatting at the moment.
    KenniesNewName @ KenniesNewName: Apple TV really went and rebooted snoopy