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

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by DeathChaos25, Feb 9, 2016.

  1. DeathChaos25
    OP

    DeathChaos25 Unmei wo kaeru!

    Member
    1,292
    658
    Oct 21, 2015
    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.

    [​IMG]

    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.
     
  2. MasterLel

    MasterLel You have an error in your SQL syntax;

    Member
    1,240
    449
    Mar 14, 2015
    France
    Hum try to run the rom builder in japanese language 日本語 using AppLocale. If you can't use it, change your system region to japanese.
     
    Last edited by MasterLel, Feb 9, 2016
  3. Tomato Hentai

    Tomato Hentai snart

    Member
    3,683
    5,835
    Oct 30, 2014
    Canada
    actually north korea. please send help
    RFSE, if you have the decrypted RomFS.bin available.
     
  4. MasterLel

    MasterLel You have an error in your SQL syntax;

    Member
    1,240
    449
    Mar 14, 2015
    France
    What is "RFSE" exactly ?
     
  5. Tomato Hentai

    Tomato Hentai snart

    Member
    3,683
    5,835
    Oct 30, 2014
    Canada
    actually north korea. please send help
    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.
     
    MasterLel likes this.
  6. MasterLel

    MasterLel You have an error in your SQL syntax;

    Member
    1,240
    449
    Mar 14, 2015
    France
    Oh okay !
     
  7. DeathChaos25
    OP

    DeathChaos25 Unmei wo kaeru!

    Member
    1,292
    658
    Oct 21, 2015
    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.
     
    Tomato Hentai likes this.
  8. MasterLel

    MasterLel You have an error in your SQL syntax;

    Member
    1,240
    449
    Mar 14, 2015
    France
  9. DeathChaos25
    OP

    DeathChaos25 Unmei wo kaeru!

    Member
    1,292
    658
    Oct 21, 2015
  10. RainThunder

    RainThunder GBAtemp Regular

    Member
    212
    133
    Jun 22, 2012
    Hanoi
  11. DeathChaos25
    OP

    DeathChaos25 Unmei wo kaeru!

    Member
    1,292
    658
    Oct 21, 2015
    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.
     
  12. RainThunder

    RainThunder GBAtemp Regular

    Member
    212
    133
    Jun 22, 2012
    Hanoi
    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, Feb 11, 2016
  13. DeathChaos25
    OP

    DeathChaos25 Unmei wo kaeru!

    Member
    1,292
    658
    Oct 21, 2015
    Alright, I'll give this a try
     
  14. DeathChaos25
    OP

    DeathChaos25 Unmei wo kaeru!

    Member
    1,292
    658
    Oct 21, 2015
    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.
    Warning: Spoilers inside!
     
  15. Merik2013

    Merik2013 Member

    Newcomer
    24
    2
    Sep 16, 2014
    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.
     
  16. Asia81

    Asia81 In my Ecchi World <3

    Member
    4,881
    2,348
    Nov 15, 2014
    France
    Albi
    RomFS Extractor
    repack with RomFS builder
     
  17. Merik2013

    Merik2013 Member

    Newcomer
    24
    2
    Sep 16, 2014
    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.
     
    Omegablu likes this.