ROM Hack How do you recompile a CIA of a "system data archive"?

Ryccardo

Penguin accelerator
OP
Member
Joined
Feb 13, 2015
Messages
7,696
Trophies
1
Age
29
Location
Imola
XP
6,948
Country
Italy
Topic.

I have extracted one by using Decrypt9's deep CIA decryption then running it through Asia91's PackHack, the romfs was decompressed successfully, and I've made the edits I wanted.

Now I was trying to assemble the partitions back into a 3DS to be converted to CIA, but I couldn't do that as I do not have a valid ExHeader (it's an empty file, as it should be for this class of CIAs).

I've manually repacked the romfs and downloaded Makerom, but I don't know how I'm supposed to use it. The "command builder" GUI doesn't appear to be designed for this scenario either...
 

xXDungeon_CrawlerXx

Well-Known Member
Member
Joined
Jul 29, 2015
Messages
2,091
Trophies
1
Age
29
Location
Liverpool
XP
3,750
Country
That's how I edited System Titles:
ctrtool --content=system systemtitle.cia
3dstool -xvtf cfa system.0000.000000[ID] --header ncch.header --exh exheader.bin --exefs exefs.bin --romfs romfs.bin --plain plain.bin --logo logo.bcma.lz
3dstool -xvtf exefs exefs.bin --exefs-dir exefs --header exefs.header
3dstool -xvtf romfs romfs.bin --romfs-dir romfs
EDIT STUFF
3dstool -cvtf romfs romfs.bin --romfs-dir romfs
3dstool -cvtf exefs exefs.bin --exefs-dir exefs --header exefs.header
3dstool -cvtf cfa system.0000.000000[ID] --header ncch.header --exh exheader.bin --exefs exefs.bin --romfs romfs.bin --plain plain.bin --logo logo.bcma.lz
makerom -f cia -o Systemtitle.CIA -content system.0000.000000[ID]:0:0x[ID] -major [majorversion] -minor [minorversion]
 
  • Like
Reactions: Ryccardo

Ryccardo

Penguin accelerator
OP
Member
Joined
Feb 13, 2015
Messages
7,696
Trophies
1
Age
29
Location
Imola
XP
6,948
Country
Italy
Thaaanks! Since I already made a romfs.bin, that's how I worked:

C:\Users\Ryccardo\Desktop\PackEnglishV4.3\makerom>ctrtool.exe --content=system NS.cia
[...]
TMD header:
Title version: 4.0.0 (v4096)
[...]
TMD contents:
Content id: 00000008
Content index: 0000

Saving content #0000 to system.0000.00000008
------------------------------------
3dstool.exe -xvtf cfa system.0000.00000008 --header ncch.header --exh exheader.bin --exefs exefs.bin --romfs romfs.bin --plain plain.bin --logo logo.bcma.lz
save: ncch.header
INFO: exefs is not exists, exefs.bin will not be create
save: romfs.bin
-------------------------------------
(replace romfs.bin with custom one)
-------------------------------------
C:\Users\Ryccardo\Desktop\PackEnglishV4.3\makerom>3dstool.exe -cvtf cfa system.0000.00000008 --header ncch.header --romfs romfs.bin
load: ncch.header
load: romfs.bin
-------------------------------------
C:\Users\Ryccardo\Desktop\PackEnglishV4.3\makerom>makerom.exe -f cia -o NScfa-10.5-custom.cia -content system.0000.00000008:0:00000008 -major 4 -minor 1

:yay3ds:
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Veho @ Veho: Due to budgetary constraints, we can't afford to run a train on him, so we had to use a bus.