Fire Emblem If - RomFS rebuild won't work correctly?

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by DJPlayer, Jun 24, 2015.

  1. DJPlayer
    OP

    DJPlayer Banned

    Banned
    542
    186
    May 21, 2015
    Netherlands
    Hey Guys,

    I just tried to extract and rebuild (WITHOUT ANY CHANGES) the Fire Emblem If RomFS but there's something weird :/
    The original (decrypted) RomFS has a size of 1.772.920 kb but after rebuild, it has only a size of 1.689.048 kb.

    This means that 83.872 kb got lost.

    Why does it happens?

    I extracted the RomFS with @Asia81's PackHack (HackingToolkit.bat -> partition -> romfs)
    and rebuilt the RomFS with RomFS Builder and tried makeromfs, too.

    The Game won't boot after rebuild with the smaller RomFS (stuck at 3DS Loading Screen).

    Someone who knows how to fix it?
     
  2. Falo

    Falo GBAtemp Regular

    Member
    262
    202
    Jul 22, 2012
    Germany
    Just like the first game (FE Awakening) they used japanese letters in the filesystem, you need a unpacker/repacker with full unicode support and make sure your OS supports it.

    Example how it should look after unpacking:

    [​IMG]
    (Note: no this tool is not public, i will NOT share it, don't ask.)

    RomFS Builder is a C# app and it should have full unicode support, so you just need a better unpacker.
     
  3. DJPlayer
    OP

    DJPlayer Banned

    Banned
    542
    186
    May 21, 2015
    Netherlands
    Okay, it seems that Asia81's HackToolkit is not able to extract files with Hiragana/Katakana-Names.
    So I wrote a simple RomFS-Extractor by myself that was able to do it.

    Here's a example (HackTool extracted RomFS -> My extracted RomFS)
    Warning: Spoilers inside!
     
    Celice likes this.
  4. SciresM

    SciresM GBAtemp Advanced Fan

    Member
    596
    1,862
    Mar 21, 2014
    United States
    I guess I only ever posted it on the serenesforest forums, but RomFS Extractor is totally a thing that I made forever ago: https://www.dropbox.com/s/b3wx0oqq7clnlo0/RomFS Extractor.zip?dl=0
     
    Celice likes this.
  5. DJPlayer
    OP

    DJPlayer Banned

    Banned
    542
    186
    May 21, 2015
    Netherlands
    Thank you but i fixed this problem already xD

    There's another problem I have at the moment:

     
  6. Asia81

    Asia81 In my Ecchi World <3

    Member
    5,140
    2,569
    Nov 15, 2014
    France
    Albi
    He can try, I already provided RomFS Extractor in my pack.
    @DJPlayer : Sorry, but it's not my fault if the RomFS can't be extracted properly, it's a problem with CtrTool

    — Posts automatically merged - Please don't double post! —

    I hate when people show a private tool and don't want share it...
    Don't show it in this case (-_-)
     
  7. DJPlayer
    OP

    DJPlayer Banned

    Banned
    542
    186
    May 21, 2015
    Netherlands
    I just told you xD I already have extracted the RomFS already WITHOUT problems with selfwritten shit.
    The only Problem now is translating the stuff because I'm not able to break the Limits of bytes without crashing the game
     
  8. SciresM

    SciresM GBAtemp Advanced Fan

    Member
    596
    1,862
    Mar 21, 2014
    United States
    Just make a text archive repacker. The format is REALLY simple. I might even go so far as to call it literally trivial to take apart and repack. So long as you pack your archives correctly, the game doesn't limit the size of your strings at all:

    Screenshot of english menu
     
  9. DJPlayer
    OP

    DJPlayer Banned

    Banned
    542
    186
    May 21, 2015
    Netherlands
    Could you send me this tool? Would be awesome
    I just used HEX Editing for it. I'm not so good in developing stuff to repack stuff
     
  10. SciresM

    SciresM GBAtemp Advanced Fan

    Member
    596
    1,862
    Mar 21, 2014
    United States
    I'm eventually going to post FEAT on Github (Automatic .arc extractor, .lz decompressor, Message Binary Extractor/Builder, .ctpk Extractor, and .bch extractor).

    Image of FEAT

    In the mean-time, if you don't want to RE the format yourself:

    Extraction Code: http://pastebin.com/GKihesX5

    Building Code: http://pastebin.com/hxaCRHcs
     
    Celice likes this.
  11. DJPlayer
    OP

    DJPlayer Banned

    Banned
    542
    186
    May 21, 2015
    Netherlands
    Thank you :=)
    some bch-files can be opened with Ohana3DS (some, not all).
    ctpk is no problem for me but the arc-files of FE:if seems to be much different than the ARC or DARC files I know.
    I can't open them in EFE.
    Would be awesome if you could look into this files if you have some free time :3

    Edit: At the moment I'm not able to compile anything (I'm visiting Japan right now) x_x
    Could you send me the tools via PM or here?
     
  12. SciresM

    SciresM GBAtemp Advanced Fan

    Member
    596
    1,862
    Mar 21, 2014
    United States
    My tool, FEAT, already fully extracts .arc files with no problems, and extracts BCH textures where possible. Again, I'll throw it up on GitHub soonish :)
     
    Celice and gamesquest1 like this.
  13. DJPlayer
    OP

    DJPlayer Banned

    Banned
    542
    186
    May 21, 2015
    Netherlands
    Thanks :)

    btw. could you upload your tools as compiled executable?
    At the moment, I can't compile anything (visiting japan, no good PC here).
     
  14. SciresM

    SciresM GBAtemp Advanced Fan

    Member
    596
    1,862
    Mar 21, 2014
    United States
    I don't like posting compiled tools before they're feature-complete -- same reason I held off on posting 3DS Builder for four months.

    It also makes it hard to keep track of what version of a tool people are using. When I'm satisfied that FEAT's done I'll post it.
     
  15. DJPlayer
    OP

    DJPlayer Banned

    Banned
    542
    186
    May 21, 2015
    Netherlands
    Yea, I can understand that :/ but could you make an exception? Would be really cool
     
  16. SciresM

    SciresM GBAtemp Advanced Fan

    Member
    596
    1,862
    Mar 21, 2014
    United States
    A tip: If you, ah, swap the font from US Awakening to JP If, the English text Kerning issues disappear completely:

    Proper English Menu
     
    Last edited by SciresM, Jun 25, 2015
    Celice, RainThunder and frogboy like this.
  17. DJPlayer
    OP

    DJPlayer Banned

    Banned
    542
    186
    May 21, 2015
    Netherlands
    Thanks for the Info :)
    would be cool if you can send me the tools for the Text-archives :)
    I will stop the translation until I can unpack and repack the archives.
    Sadly I'm not able to compile it by myself at the moment...
     
  18. liomajor

    liomajor GBAtemp Maniac

    Member
    1,463
    1,065
    Jun 10, 2008
    United States
    DJPlayer, don't you think you should do something else instead of asking for other guys stuff again?
     
  19. DJPlayer
    OP

    DJPlayer Banned

    Banned
    542
    186
    May 21, 2015
    Netherlands
    Dude, I already wrote that I'm on vacation in Japan :P
    The most tools I used at home doesn't work here (or I can't install them here) .
    And I told you that I'll work on Assassination Classroom when I get back to Netherlands.
     
  20. omegapirate

    omegapirate Member

    Newcomer
    42
    2
    May 25, 2012
    Mexico
    Just get ctrtool.exe and run>

    Code:
    ctrtool -p --exefs=exefs.bin --romfs=romfs.bin 00040000000a0500.cxi
    Line above creates romfs.bin, then just run this line>

    Code:
    ctrtool -x --romfsdir=romfs_ext romfs.bin
    I dont know how but it just repacks everything regarding the japanese/asian symbols. Works wonders and you dont have to use a private tool :D