Hacking NCA and XCI ?

MonMonz

Well-Known Member
OP
Member
Joined
Nov 7, 2014
Messages
485
Trophies
0
XP
1,680
Country
Egypt
i already searched and all i found is that there is two type of backup extension what is the deference between them? sciresm say "NCA is Nintendo Content Archive" -- you can think of it as like an NCCH for the 3DS" what does NCCH means?
and which one of them hold the specific unique information of the gamecard
thanks for advance :)
 
Last edited by MonMonz,

Falo

Well-Known Member
Member
Joined
Jul 22, 2012
Messages
680
Trophies
2
XP
2,627
Country
Germany
3DS file formats:
.CSU = .3DS = NCSD Game Cartridge
.CIA = Installer (Citrus Installer Archive)
.CFA / .CFX = Content File Archive / Content File Executable Partition (NCCH)
if you unpack a NCSD or CIA, you get multiple CFA and 1 CFX, these are the game files
if you unpack a CFA/CFX you get romfs/exefs/manual/...

Switch file formats:
.XCI = PFS0 Game Cartridge
.NSP = PFS0 Installer (Nintendo Submission Package)
.NCA = Nintendo Content Archive (NCA2 / NCA3)
if you unpack a XCI or NSP you get multiple NCA, these are the game files
if you unpack a NCA you get romfs(istorage)/exefs/manual/...
 

BelmontSlayer

Pokémon Master
Member
Joined
May 11, 2006
Messages
306
Trophies
1
Age
34
Location
Memememe Island
XP
1,280
Country
Thailand
NCA and XCI are containers for Switch game dumps, similar to .3DS or .CIA on the 3DS. XCI is the newer container everyone is dumping in now, apparently it has some parts that NCA dumps left out. NCCH is also a container format but for the 3DS, you can read about it here:
https://www.3dbrew.org/wiki/NCCH
 

SimonMKWii

Professional Idiot
Member
Joined
Nov 18, 2017
Messages
666
Trophies
0
Location
Melbourne, Victoria
XP
2,760
Country
Australia
Switch file formats:
.XCI = PFS0 Game Cartridge
.NSP = PFS0 Installer (Nintendo Submission Package)
.NCA = Nintendo Content Archive (NCA2 / NCA3)
if you unpack a XCI or NSP you get multiple NCA, these are the game files
if you unpack a NCA you get romfs(istorage)/exefs/manual/...
That's filled with misinformation.
.XCI = 1:1 image of the game cart's eMMC chip / NX Cart Image.
.NSP = What devs submit to Nintendo when they're ready to release a game: the "master ROM", it contains the game NCA, meta, description, NACP, various documents, the unique ticket and the cert.
.NCA = Nintendo Content Archive, can contain RomFS, ExeFS and PFS0 partitions. All NCAs must contain either a RomFS or PFS0 partition with at least one file, so if a title is ExeFS only, a RomFS or PFS0 partition needs to be added.
For example, all the necessary files for FLOG, the NES Golf emulator were contained in the executable, so Nintendo added a RomFS partition with a null file called "AtLeastOneFile", amusingly.
Similarly, Splatoon 2's Octo Expansion contains a null file called "aoc_data.dat", presumably a purchase verification method to unlock internal files, or a placeholder for an AOC revision.
 

MHDestination

Well-Known Member
Member
Joined
Sep 12, 2009
Messages
392
Trophies
0
Location
Under your bed
XP
888
Country
Germany
Any info of xci header ? For look offsets and extrack of my one gamecard (for im save prívate header if i need in other moments for inject on other xci...?

Here:
http://switchbrew.org/index.php?title=Gamecard_Format

It's not header that's unique. The cert is what you need.

The backups will still run with a wrong cert (or even entirely removed, like BBB did),
but i don't think that exchanging the cert with one of a different game will make your dump "stealth".
It's likely that nintendo will know that the cert doesn't belong to that game.
Because they included several checksums.
 
Last edited by MHDestination,

afi2003

Member
Newcomer
Joined
Jul 7, 2018
Messages
11
Trophies
0
Age
42
XP
68
Country
Brazil
Is the procedure for installing .nca the same as .nsp?
(I have SX OS 1.3 Xecuter, I use DEVMENU to install .nsp but did not test with .nca for fear of brick)
 

Draxzelex

Well-Known Member
Member
Joined
Aug 6, 2017
Messages
19,011
Trophies
2
Age
29
Location
New York City
XP
13,378
Country
United States
Is the procedure for installing .nca the same as .nsp?
(I have SX OS 1.3 Xecuter, I use DEVMENU to install .nsp but did not test with .nca for fear of brick)
We cannot install .NCAs at the moment. We may never be able to install them as .NSP is the supported file format for installations.
 
  • Like
Reactions: afi2003

Draxzelex

Well-Known Member
Member
Joined
Aug 6, 2017
Messages
19,011
Trophies
2
Age
29
Location
New York City
XP
13,378
Country
United States
Is that I downloaded Splatoon and an .nca file came along, what do I do with it?
You try converting them with this tool but it may or may not work after conversion: https://gbatemp.net/threads/nspbuild-build-nsp-files.509816/

Also, you mentioned you downloaded them. Did you download them from a CDN or warez site? If the latter, those files should be in .NSP format somewhere either on the site or elsewhere on the Internet.
 
  • Like
Reactions: afi2003

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    cearp @ cearp: Welcome hazbeans