Hacking Possible to extract from DLC CIA files?

Aveyn Knight

Active Member
OP
Newcomer
Joined
Oct 20, 2011
Messages
25
Trophies
0
XP
143
Country
I wanted to tinker around with the Fire Emblem Awakening DLC files, so I grabbed the CIA files online.

However I'm unsure if I can even do anything with these files.

The furthest I've gotten (if you can call it that) is trying to use ctrtool to extract the contents, but I get an error "Common key could not be found" (or something similar).

Are these files encrypted? Or is there some easy way I could break them apart again?
 

geddanof

Well-Known Member
Newcomer
Joined
Jul 11, 2016
Messages
47
Trophies
0
Age
27
Location
Otoko no Ko
XP
79
Country
That's what I want to know as well, I can't find a working guide anywhere... :(

I'm trying to edit DLC files for Fire Emblem If (specifically the translation patch).


EDIT:
I've figured it out! :D
You'll need:
- Decrypt9 installed into your 3DS
- ctrtool
- makerom
- RomFS Extractor (can also be found in Asia81's HackingToolkit3DS tool)
- RomFS Builder (can also be found Asia81's HackingToolkit3DS tool)



Extracting:
1. First follow the Decrypting step of this guide.

2. Extract the contents of the decrypted CIA; check out this page for more details.
In short, just enter this command, after opening Command Prompt in the folder with the decrypted CIA (Shift -> Right-click -> "Open command window here"):

ctrtool *name of CIA* --content=*beginning name of all extracted files*

e.g. : (--content can be anything you want, really)
Code:
ctrtool FireEmblemIFdlc.cia --content=c

3. Extract the romfs of the desired content file; check out this thread for more details.
In short, just enter this command into command prompt:

ctrtool *name of content file to extract* --romfs=*output name of romfs*

e.g. :
Code:
ctrtool c.0004.0000001a --romfs=0004.0000001a.bin

4. Open RomFS Extractor, select the newly made romfs file(s) (in my case, 0004.0000001a.bin ), press go & you successfully extracted the content in File Hierarchy structure! Now you can replace the files with your translation patch, mod etc.



Rebuilding:
Follow & adapt to RainThunder's example here, from step 5 onward.


Tip: Make sure ctrtool & makerom .exe are in the same folder as the target files!
Tip: This guide here contains some explanation of the arguments used within the makerom command.
Tip: You can quickly get the list of all files in a folder (sorted in hexadecimal order) by "Open command window here" in the folder, and then type in the command:

Code:
dir /B > filelist.txt

------------------------------------------------------------------------------------------

Example:
To apply Team If's translation patch over Fire Emblem If DLC, you need to:

- Decrypt your Fire Emblem If DLC cia file.
- Extract both c.0003.00000019 & c.0004.0000001a .
- Apply the latest patch to both extracted romfs folders ( Patch\rom\m\C --> local\m\C )
- Rebuild both folders back to c.0003.00000019 & c.0004.0000001a , one at a time.
- Rebuild the entire cia file.

The contents of the DLC cia might also be different depending on the version of the DLC, so you will have to edit the rebuilding CIA command slightly.
Code:
makerom -f cia -rsf rom.rsf -o 0004008c0012dc00.cia -ckeyid 0 -major 0 -minor 10 -micro 0 -DSaveSize=0 -dlc -i c.0000.0000005b:0x0000:0x0000005b -i c.0001.00000017:0x0001:0x00000017      ...
TO
Code:
makerom -f cia -rsf rom.rsf -o 0004008c0012dc00.cia -ckeyid 0 -major 0 -minor 13 -micro 0 -DSaveSize=0 -dlc -i c.0000.0000006b:0x0000:0x0000006b -i c.0001.00000017:0x0001:0x00000017      ...
 
Last edited by geddanof,
General chit-chat
Help Users
  • K3N1 @ K3N1:
    Things tend to kind of get that way when people are allowed to do the same thing over and over again
  • Sonic Angel Knight @ Sonic Angel Knight:
    @Psionic Roshambo Tell us more about this new fetish? :blink:
  • K3N1 @ K3N1:
    He's got an entire bibles on fetishes
  • The Real Jdbye @ The Real Jdbye:
    @Julie_Pilgrim always has been
  • S @ SeniorFuego:
    So why is it that we're not allowed to talk about somebody shooting up a school if that person happens to be trans, even when not expressing a personal opinion???
  • Veho @ Veho:
    Who are you?
    +1
  • S @ SeniorFuego:
    A concerned citizen
  • S @ SeniorFuego:
    Here's a neat trick... if you have the edit post page open,, you can edit your post, even after the thread is locked. :D
  • S @ SeniorFuego:
    And knowing is half the battle. So why aren't the people allowed to know about the school shooting that happened the other day? People sure are free to talk about every other divisive topic in the politics section. And it usually swings in favor of the anti-republican types if a thread is allowed to stay up. Funny, that...
  • Veho @ Veho:
    But not really "ha ha" funny.
  • S @ SeniorFuego:
    I thought you people were supposed to be against authoritarianism.
  • Maximumbeans @ Maximumbeans:
    Lmao muh rights
  • Maximumbeans @ Maximumbeans:
    Everybody already knows about it, you know that your thread was taken down for your own idiotic statement and not because of the content. Take two minutes to browse the politics forum and you'll see that the admins definitely aren't authoritarian.
  • sombrerosonic @ sombrerosonic:
    pol is funni, i cause people to get pissed
    +1
  • SylverReZ @ SylverReZ:
    Political people do get pissed on this site, even at random outside of POL.
  • sombrerosonic @ sombrerosonic:
    huh, i find it funni with it
  • sombrerosonic @ sombrerosonic:
    NEver seen it outside pol
  • SylverReZ @ SylverReZ:
    Disappointing how somebody joined just to fall into the trap.
  • Modder_Boi @ Modder_Boi:
    Why the politics? This is a game forum lol.
    +1
    Modder_Boi @ Modder_Boi: Why the politics? This is a game forum lol. +1