Homebrew WIP 4NXCI Open-Source *.XCI to *.NSP Converter

Status
Not open for further replies.

MonMonz

Well-Known Member
Member
Joined
Nov 7, 2014
Messages
485
Trophies
0
XP
1,680
Country
Egypt
Windows tends to act like this. First enter adress bar of current folder and type 'cmd' and you'll see command line. Punch in '4nxci.exe' to get further inscructions, without autoclosing anything.
am sorry but when am using cmd it just say
4NXCI by The-4n
Usage: 4nxci <file>
 
Last edited by MonMonz,

datahoarder

Organized.
Member
Joined
Jul 7, 2007
Messages
567
Trophies
1
XP
749
Country
United States
It seems like a lot of you don't realize that when you're downloading from the CDN using CDNSP it actually downloads .nca files... that's the files that the Nintendo server gives.
The script is just packing them into NSP using the NCA files.
XCI is basically like NSP in the sense that there are a bunch of .nca files held within it as well.
You take the NCA and pack them into NSP or use the installers that allow NCA installation.
for XCI it has a different key and this program is.. I haven't looked at it, but I'm assuming generating a custom cmnt/tik or patching out the encryption to make it work.
 
Last edited by datahoarder,

sj33

Well-Known Member
Member
Joined
Oct 22, 2013
Messages
4,072
Trophies
2
XP
4,724
Country
Japan
Is it actually possible to reverse this and convert .nsp files to .xci?

Why would anybody want this? Because .xci can be split.
 

AlexMCS

Human
Member
Joined
Jul 3, 2018
Messages
627
Trophies
0
Age
38
Location
Fortaleza
XP
2,840
Country
Brazil
Is it actually possible to reverse this and convert .nsp files to .xci?

Why would anybody want this? Because .xci can be split.

NSPs can be run for free on Atmos/Hekate and ReiNX. XCI can't for now.
That's all the reason you need, until free cfws can run .xci
 

MonMonz

Well-Known Member
Member
Joined
Nov 7, 2014
Messages
485
Trophies
0
XP
1,680
Country
Egypt
Windows tends to act like this. First enter adress bar of current folder and type 'cmd' and you'll see command line. Punch in '4nxci.exe' to get further inscructions, without autoclosing anything.
okey now it opened but it generated a NCA file not NSP !!
 

sj33

Well-Known Member
Member
Joined
Oct 22, 2013
Messages
4,072
Trophies
2
XP
4,724
Country
Japan
What would you even need splitting for? You can run exfat.
Because homebrew is prone to corrupting the SD card when using exFAT due to its lack of file jounaling support. That's why RetroNX heavily recommends against it and lakka basically doesn't support it.
 

peteruk

Well-Known Member
Member
Joined
Jun 26, 2015
Messages
3,002
Trophies
2
XP
7,275
Country
United Kingdom
Oh, only the coder can fix that in newer versions of the tool. I'll have to suggest you to simply wait. Otherwise, you armed to use the app.

I have the same problem, posted earlier today that I had all the keys correctly placed, no error's but it's spitting out NCA files

Hopefully the creator can fix this soon™
 

datahoarder

Organized.
Member
Joined
Jul 7, 2007
Messages
567
Trophies
1
XP
749
Country
United States
Noted differences at first glance.
Example: Retro City Rampage DX [0100F17004156000].xci | keys.dat
4nxci.exe 0100F17004156000.xci (simple names for no problems.)
Left file: S:\4nxci-v0.9-alpha.1_win32\7f5a84a945f0c697543b671e07ab98fc-normal.nca
Right file: S:\4nxci-v0.9-alpha.1_win32\4nxci_extracted_xci\7f5a84a945f0c697543b671e07ab98fc.nca
863216 same byte(s)
5120 left orphan byte(s)
16 difference byte(s)

65 18 5E 27 9B 39 83 4C 1A A9 A9 02 2A 4A 9A CE
PATCHED TO
7A 7D 52 FA A8 F7 28 70 E5 C4 AA 9D 7D F6 A7 33
& clips off the bottom.


Left file: S:\4nxci-v0.9-alpha.1_win32\15c1666d5bdf2809cf499e84a9ae7805.nca
Right file: S:\4nxci-v0.9-alpha.1_win32\4nxci_extracted_xci\15c1666d5bdf2809cf499e84a9ae7805.nca
22986737 same byte(s)
9 left orphan byte(s)
9 right orphan byte(s)
6 difference byte(s)

23 39 F7 44 31 13 06 E5 60 AB E8 01 32 56 5D
PATCHED TO
32 12 B8 C2 41 6B 2C 16 D0 B3 97 41 AF 17 13


Left file: S:\4nxci-v0.9-alpha.1_win32\1651ba7b1042bd16c066c4aaaa211d67.cnmt-normal.nca
Right file: S:\4nxci-v0.9-alpha.1_win32\4nxci_extracted_xci\1651ba7b1042bd16c066c4aaaa211d67.cnmt.nca
3570 same byte(s)
9 left orphan byte(s)
9 right orphan byte(s)
5 difference byte(s)

A0 36 31 E2 3A 58 FA 7D CA E0 8C F8 C1 11 81 4E
PATCHED TO
9B 58 58 2C 34 81 F1 5B E4 A3 EF 45 19 6D 28 40


Left file: S:\4nxci-v0.9-alpha.1_win32\4nxci_extracted_xci\eec5d436d7e982e159c96cd73cf0a644.nca
Right file: S:\4nxci-v0.9-alpha.1_win32\eec5d436d7e982e159c96cd73cf0a644.nca
155632 same byte(s)
16 difference byte(s)

38 5C 71 45 2F F9 1C 18 BC 1B 18 2E 1B 85 F0 76
PATCHED TO
D5 C9 41 44 F4 A4 BE 65 9A 40 84 D8 54 C9 C7 0A

and then the generated ticket is the same per usual except with 00 instead of 01 for 02A000.
certs are exactly the same.
cnmt generates just as cdnsp would with 0 as required versions.

I suppose for anyone having trouble installing to use the ticket patched as 01 instead of 00? idk.
 
Last edited by datahoarder,
  • Like
Reactions: peteruk

datahoarder

Organized.
Member
Joined
Jul 7, 2007
Messages
567
Trophies
1
XP
749
Country
United States
Make a text file called 4nxci.txt and put this inside:
4nxci.exe 0000000000000000.xci
pause
and then rename the file from .txt to .bat (for Windows anyway.)
Make sure you have your keys.dat file in place. It's the same used for CDNSP, etc.
 

AlexMCS

Human
Member
Joined
Jul 3, 2018
Messages
627
Trophies
0
Age
38
Location
Fortaleza
XP
2,840
Country
Brazil
Because homebrew is prone to corrupting the SD card when using exFAT due to its lack of file jounaling support. That's why RetroNX heavily recommends against it and lakka basically doesn't support it.

I'm pretty sure both lack journaling. NTFS is the one with journaling. So, that excuse is moot.
exFAT is pretty much FAT32 with larger file support.
 

Wuigi

Well-Known Member
Member
Joined
Sep 14, 2012
Messages
727
Trophies
1
XP
1,783
Country
United States
I dont know if im outdated, but, how does the Emunand is going to prevent or safe you from a BAN? O:
All saves and data associated with games are stored on your switch and sent to nintendo when playing online, using eShop, etc.
An emuNAND would be a different storage this data is written to and if you never connect online with that one, no data should tell nintendo that you use a softmod to do whatever you like.
 

Vorde

Well-Known Member
Member
Joined
Jul 8, 2015
Messages
494
Trophies
0
Age
34
XP
1,508
Country
Canada
People talking about getting banned when they're running CFW and/or installing games. Of course you'll be banned, just come to terms with never taking your Switch online again. If you want to, then clear Error Logs, flash your NAND backup you would have made before doing any of this, clear Error logs again, and I believe you would be golden. Just use legit games, and if you want to run homebrew again, just go offline again until you want to repeat the above process.
Also thank you so much to whoever wrote this tool, it made my morning to see it :) Been needing to do with with a few XCI's I own
 
D

Deleted User

Guest
Does this have any requirements, because it immedietely closes for me, both on trying to start, and with dragging an XCI onto it.

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

Wait, are these the Switch private keys we need to put into the Key.dat?

Or the keydump from Pastebin?
 
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • ZeroT21 @ ZeroT21:
    it wasn't a question, it was fact
  • BigOnYa @ BigOnYa:
    He said he had 3 different doctors apt this week, so he prob there. Something about gerbal extraction, I don't know.
    +1
  • ZeroT21 @ ZeroT21:
    bored, guess i'll spread more democracy
  • LeoTCK @ LeoTCK:
    @K3Nv2 one more time you say such bs to @BakerMan and I'll smack you across the whole planet
  • K3Nv2 @ K3Nv2:
    Make sure you smack my booty daddy
    +1
  • LeoTCK @ LeoTCK:
    telling him that my partner is luke...does he look like someone with such big ne
    eds?
  • LeoTCK @ LeoTCK:
    do you really think I could stand living with someone like luke?
  • LeoTCK @ LeoTCK:
    I suppose luke has "special needs" but he's not my partner, did you just say that to piss me off again?
  • LeoTCK @ LeoTCK:
    besides I had bigger worries today
  • LeoTCK @ LeoTCK:
    but what do you know about that, you won't believe me anyways
  • K3Nv2 @ K3Nv2:
    @BigOnYa can answer that
  • BigOnYa @ BigOnYa:
    BigOnYa already left the chat
  • K3Nv2 @ K3Nv2:
    Biginya
  • BigOnYa @ BigOnYa:
    Auto correct got me, I'm on my tablet, i need to turn that shit off
  • K3Nv2 @ K3Nv2:
    With other tabs open you perv
  • BigOnYa @ BigOnYa:
    I'm actually in my shed, bout to cut 2-3 acres of grass, my back yard.
  • K3Nv2 @ K3Nv2:
    I use to have a guy for that thanks richard
  • BigOnYa @ BigOnYa:
    I use my tablet to stream to a bluetooth speaker when in shed. iHeartRadio, FlyNation
  • K3Nv2 @ K3Nv2:
    While the victims are being buried
  • K3Nv2 @ K3Nv2:
    Grave shovel
  • BigOnYa @ BigOnYa:
    Nuh those goto the edge of the property (maybe just on the other side of)
  • K3Nv2 @ K3Nv2:
    On the neighbors side
    +1
  • BigOnYa @ BigOnYa:
    Yup, by the weird smelly green bushy looking plants.
    K3Nv2 @ K3Nv2: https://www.the-sun.com/news/10907833/self-checkout-complaints-new-target-dollar-general-policies...