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

DJPlayer

Banned!
OP
Banned
Joined
May 21, 2015
Messages
542
Trophies
0
Age
46
XP
429
Country
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?
 

Falo

Well-Known Member
Member
Joined
Jul 22, 2012
Messages
680
Trophies
2
XP
2,627
Country
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:


(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.
 

DJPlayer

Banned!
OP
Banned
Joined
May 21, 2015
Messages
542
Trophies
0
Age
46
XP
429
Country
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)
4ef9bc6fbe.png
 
  • Like
Reactions: Celice

SciresM

Developer
Developer
Joined
Mar 21, 2014
Messages
973
Trophies
3
Age
33
XP
8,294
Country
United States
  • Like
Reactions: Celice

DJPlayer

Banned!
OP
Banned
Joined
May 21, 2015
Messages
542
Trophies
0
Age
46
XP
429
Country
Netherlands
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
Thank you but i fixed this problem already xD

There's another problem I have at the moment:

Possibly I could need help to get it to work to ADD new bytes without crash the game^^'

If there's someone who could help me with removing the limitation, please tell me. Could send you some file examples (decompressed)

possibly someone in this forum could help me with it :/
It's ugly to be not able to use something like "New Game", "Load Game", "Copy Data" or "Delete Data" because of the limitations.
Have to use "NewGame", "Load ", "Copy" and "Erase" because I've not enough space for more characters.

COuld someone Link some Users who could help me with this?
 

Asia81

Yuri Lover ~
Member
Joined
Nov 15, 2014
Messages
6,656
Trophies
3
Age
29
XP
3,495
Country
France
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

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

--------------------- MERGED ---------------------------

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:


(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.

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

DJPlayer

Banned!
OP
Banned
Joined
May 21, 2015
Messages
542
Trophies
0
Age
46
XP
429
Country
Netherlands
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

--------------------- MERGED ---------------------------



I hate when people show a private tool and don't want share it...
Don't show it in this case (-_-)
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
 

SciresM

Developer
Developer
Joined
Mar 21, 2014
Messages
973
Trophies
3
Age
33
XP
8,294
Country
United States
Thank you but i fixed this problem already xD

There's another problem I have at the moment:

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:

pD0Ki24.jpg
 

DJPlayer

Banned!
OP
Banned
Joined
May 21, 2015
Messages
542
Trophies
0
Age
46
XP
429
Country
Netherlands
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:

pD0Ki24.jpg

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
 

SciresM

Developer
Developer
Joined
Mar 21, 2014
Messages
973
Trophies
3
Age
33
XP
8,294
Country
United States
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

I'm eventually going to post FEAT on Github (Automatic .arc extractor, .lz decompressor, Message Binary Extractor/Builder, .ctpk Extractor, and .bch extractor).

ubLWZN2.png

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
 
  • Like
Reactions: Celice

DJPlayer

Banned!
OP
Banned
Joined
May 21, 2015
Messages
542
Trophies
0
Age
46
XP
429
Country
Netherlands
I'm eventually going to post FEAT on Github (Automatic .arc extractor, .lz decompressor, Message Binary Extractor/Builder, .ctpk Extractor, and .bch extractor).

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
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?
 

SciresM

Developer
Developer
Joined
Mar 21, 2014
Messages
973
Trophies
3
Age
33
XP
8,294
Country
United States
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

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 :)
 

DJPlayer

Banned!
OP
Banned
Joined
May 21, 2015
Messages
542
Trophies
0
Age
46
XP
429
Country
Netherlands
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 :)
Thanks :)

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

SciresM

Developer
Developer
Joined
Mar 21, 2014
Messages
973
Trophies
3
Age
33
XP
8,294
Country
United States
Thanks :)

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

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.
 

DJPlayer

Banned!
OP
Banned
Joined
May 21, 2015
Messages
542
Trophies
0
Age
46
XP
429
Country
Netherlands
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.
Yea, I can understand that :/ but could you make an exception? Would be really cool
 

DJPlayer

Banned!
OP
Banned
Joined
May 21, 2015
Messages
542
Trophies
0
Age
46
XP
429
Country
Netherlands
A tip: If you, ah, swap the font from US Awakening to JP If, the English text Kerning issues disappear completely:

pgconwu.jpg

kXlCMN3.jpg

5LTqNQN.jpg
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...
 

DJPlayer

Banned!
OP
Banned
Joined
May 21, 2015
Messages
542
Trophies
0
Age
46
XP
429
Country
Netherlands
DJPlayer, don't you think you should do something else instead of asking for other guys stuff again?
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.
 

omegapirate

Well-Known Member
Newcomer
Joined
May 25, 2012
Messages
47
Trophies
0
XP
98
Country
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
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    AncientBoi @ AncientBoi: Que dices?