ROM Hack How to extract content from CIA DLC with Japanese characters in filename?

DeathChaos

Unmei wo koeru!
OP
Member
Joined
Oct 21, 2015
Messages
1,364
Trophies
0
Age
28
XP
1,726
Country
Puerto Rico
So I'm trying to extract my Fire Emblem: If DLC, I followed this tutorial and everything worked out nicely, however, I have run into a major problem that won't allow me to rebuild my DLC.

Instead of getting the correct filenames, the extractor is instead replacing all Japanese characters with pound signs, making it impossible to rebuild the romfs and thus the cia.

2kg6YkG.png


For example, in this picture, there should be 6 files, 2 of them should contain the name クロム "Kuromu", or Chrom, another 2 should be リズ, "Rizu" or, Lissa, and the final 2 "フレデリク", Frederick.

While renaming these particular files would be fine, there are still many more whose filenames I have no knowledge of, so some help in this would be greatly appreciated.
 

DeathChaos

Unmei wo koeru!
OP
Member
Joined
Oct 21, 2015
Messages
1,364
Trophies
0
Age
28
XP
1,726
Country
Puerto Rico
I was referring to the command used in Asia81's PackHack to open another RomFS extractor. I think it's just called "RomFS Extractor". Can't remember right now.
That one works perfectly when extracting content from the Fire Emblem game's romfs, but Asia81's PackHack is not giving me a romfs file, otherwise I would've just ran it through that.

The problem itself is Ctrtools, which does not support Japanese characters, and the hack pack does not give me a romfs that I can run through RomFS Extractor.
 
  • Like
Reactions: Deleted User

DeathChaos

Unmei wo koeru!
OP
Member
Joined
Oct 21, 2015
Messages
1,364
Trophies
0
Age
28
XP
1,726
Country
Puerto Rico
You should use RomFS Extractor (by SciresM) for DecryptedRomFS.bin
I know that, I've already extracted romfs for both Awakening and If, the problem is that the Pack Hack gives no DecryptedRomFS file for the DLC, it simply extracts everything in the romfs with ctrtools, and ctrtools doesn't support Japanese file characters.
 

RainThunder

Well-Known Member
Member
Joined
Jun 22, 2012
Messages
212
Trophies
0
Location
Hanoi
XP
351
Country
I know that, I've already extracted romfs for both Awakening and If, the problem is that the Pack Hack gives no DecryptedRomFS file for the DLC, it simply extracts everything in the romfs with ctrtools, and ctrtools doesn't support Japanese file characters.
I think you should decrypt the DLC pack manually. For example ("Before Awakening" DLC)
Code:
ctrtool -p --content=c decryptedDLC.cia
ctrtool -p --romfs=romfs.bin c.000e.00000029
Then extract all files in romfs.bin using RomFS Extractor.

Edit: If it doesn't work, try decrypting it in a traditional way (xorpads)
Code:
ctrtool -p --content=c encryptedDLC.cia
python ncchinfo_gen.py c.000e.00000029
 
Last edited by RainThunder,

DeathChaos

Unmei wo koeru!
OP
Member
Joined
Oct 21, 2015
Messages
1,364
Trophies
0
Age
28
XP
1,726
Country
Puerto Rico
I think you should decrypt the DLC pack manually. For example ("Before Awakening" DLC)
Code:
ctrtool -p --content=c DLC.cia
ctrtool -p --romfs=romfs.bin c.000e.00000029
Then extract the files in romfs.bin using RomFS Extractor.
Alright, I'll give this a try
 

DeathChaos

Unmei wo koeru!
OP
Member
Joined
Oct 21, 2015
Messages
1,364
Trophies
0
Age
28
XP
1,726
Country
Puerto Rico
Strange, used ctrtools to extract the contents from the cia, then tried to extract the contents from "Before Awakening", ctrtools gives me a romfs.bin, but RomFSExtractor says it's not a valid romfs binary, and I'm 100% sure I ran the DLC through Decrypt9, otherwise pack hack wouldn't have extracted it, I'm probably missing something very obvious here.
v7cCs3p.png
 

Merik2013

Active Member
Newcomer
Joined
Sep 16, 2014
Messages
35
Trophies
0
Age
33
XP
212
Country
United States
Did anyone solve this? I'm having the exact same issue trying to patch Fire Emblem Fates CIAs. The program is replacing Japanese characters with hashtags.
 

Merik2013

Active Member
Newcomer
Joined
Sep 16, 2014
Messages
35
Trophies
0
Age
33
XP
212
Country
United States
thanks. It seems to be working. Just realized a hitch though. I seem to have neglected to download one of my dlc. I should be good though.
 
  • Like
Reactions: Omegablu

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • BigOnYa @ BigOnYa:
    I kept thinking jaws was gonna come up and attack
  • K3Nv2 @ K3Nv2:
    Jaws is on a diet
  • K3Nv2 @ K3Nv2:
    Damn power went out
  • BigOnYa @ BigOnYa:
    Ok xdqwerty, your little bro prob tripped On the cord and unplugged you
  • K3Nv2 @ K3Nv2:
    Ya I'm afraid of the dark hug me
  • BigOnYa @ BigOnYa:
    Grab and hold close your AncientBoi doll.
  • K3Nv2 @ K3Nv2:
    Damn didn't charge my external battery either
  • BigOnYa @ BigOnYa:
    Take the batteries out of your SuperStabber3000... Or is it gas powered?
  • K3Nv2 @ K3Nv2:
    I stole batteries from your black mamba
    +1
  • K3Nv2 @ K3Nv2:
    My frozen food better hold up for an hour I know that
  • BigOnYa @ BigOnYa:
    Or else gonna be a big lunch and dinner tomorrow.
  • BigOnYa @ BigOnYa:
    Did you pay your power bill? Or give all yo money to my wife, again.
  • K3Nv2 @ K3Nv2:
    Oh good the estimated time is the same exact time they just said
    +1
  • BigOnYa @ BigOnYa:
    Load up your pc and monitor, and head to a McDonalds dining room, they have free WiFi
  • K3Nv2 @ K3Nv2:
    Sir please watch your porn in the bathroom
    +2
  • BigOnYa @ BigOnYa:
    No sir we can not sell you anymore apple pies, after what you did with the last one.
  • K3Nv2 @ K3Nv2:
    We ran out
  • HiradeGirl @ HiradeGirl:
    for your life
    +1
  • K3Nv2 @ K3Nv2:
    My life has no value my fat ass is staying right here
  • K3Nv2 @ K3Nv2:
    Nearly 4 hours without power :(
  • Veho @ Veho:
    SO POWERLESS
  • K3Nv2 @ K3Nv2:
    Tell Kanye I need power
    K3Nv2 @ K3Nv2: Tell Kanye I need power