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
28
Location
Otoko no Ko
XP
89
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,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • SylverReZ @ SylverReZ:
    @The Real Jdbye, They pulled a Completionist.
  • Veho @ Veho:
    It's like, I'm supporting you by buying your overpriced crap.
  • Veho @ Veho:
    It's not a charity drive, they're outright asking for more money.
  • The Real Jdbye @ The Real Jdbye:
    if you send like 25% of it to charity and take the rest as "operating costs" then it's perfectly legal. that's what half the big charities do anyway
    +1
  • Veho @ Veho:
    This is not a charity, it's just them asking for money so they can have money.
  • The Real Jdbye @ The Real Jdbye:
    yeah they didn't @SylverReZ i'm just saying that would be more effective
    +1
  • The Real Jdbye @ The Real Jdbye:
    everybody hates forced tipping but people like donating to charities
    +1
  • The Real Jdbye @ The Real Jdbye:
    so glad tipping culture is not a thing here but doesn't stop some places from trying... bars for some reason always make you type the price into the card scanner and i always type my pin... luckily it checks for that
  • SylverReZ @ SylverReZ:
    @The Real Jdbye, I have a thought. Do the charities even donate to help poor African children or anybody in need?
  • The Real Jdbye @ The Real Jdbye:
    drunk people tip more i guess
  • The Real Jdbye @ The Real Jdbye:
    and the nearest pizza place does it too
  • SylverReZ @ SylverReZ:
    Drunkards buy more beer.
  • The Real Jdbye @ The Real Jdbye:
    @SylverReZ africa doesn't want our help. the african government gets mad every time we donate anything because it makes them seem weak
    +1
  • The Real Jdbye @ The Real Jdbye:
    that pizza place also happens to serve beer... i sense a pattern here
    +1
  • Veho @ Veho:
    They accept it though.
  • Veho @ Veho:
    They make a show of "not needing help" but then take it anyway.
  • Veho @ Veho:
    I mean they do have a point, developing nations don't need a can of beans, they need tools to grow their own beans.
  • Veho @ Veho:
    But that's a very long term project and it's easier to just pelt them with cans.
  • Veho @ Veho:
    BEAN UP!
  • The Real Jdbye @ The Real Jdbye:
    they still complain when people give them tools so idk
  • Veho @ Veho:
    Fucking SP is $100 with shipping and customs, grumble grumble.
  • Veho @ Veho:
    But I have a $1 off coupon so that's nice.
  • Veho @ Veho:
    Debating with myself.
  • SylverReZ @ SylverReZ:
    @Veho, Whatchu after, Veho?
    SylverReZ @ SylverReZ: @Veho, Whatchu after, Veho?