Hello, I'd like to request to please help me understand/unpack these files.
I believe em.bin (EMF_), emdeb.bin (EMDb) and rf3.mc (MYCF) work in unison, possibly extracting into a file/folder structure. Included .eng and .jpn because they are in the folder, but I do not believe they are part of the group.
Ps. I partially understand the emdeb file but decided to keep it short as recommended in the forum FAQ.
Rune Factory 4 (3DS) EMF_, EMDb, MYCF
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: Rune Factory 4 (3DS) EMF_, EMDb, MYCF
Let's starts from the TEXT files (rf3mc.eng and rf3mc.jpn):
Yeah the new SLog command of quickbms 0.6.5 is really powerful
The following is for the "mc" file:
I don't know if the bin files contain real data.
Code: Select all
get NAME filename
string NAME + ".txt"
idstring "TEXT"
get STRINGS long
for i = 0 < STRINGS
get SIZE long
get OFFSET long
slog NAME OFFSET SIZE
next i
The following is for the "mc" file:
Code: Select all
idstring "MYCF"
goto 0xc
get END_INFO long
goto 0x18
get OFFSET long
goto OFFSET
xmath FILES "(END_INFO - OFFSET) / (4 + 4)"
for i = 0 < FILES
get OFFSET long
get SIZE long
log "" OFFSET SIZE
next i
I don't know if the bin files contain real data.
-
- Posts: 3
- Joined: Thu Jul 16, 2015 1:57 am
Re: Rune Factory 4 (3DS) EMF_, EMDb, MYCF
Wow thanks you're amazing, been breaking my head for like a week over the mc file!
heres what I could gather from the emdeb file:
emdeb.bin
I believe the em.bin, which is EMF_ magic word works with it somehow, some sort of indexing.
heres what I could gather from the emdeb file:
emdeb.bin
Code: Select all
header
size 30h
offset 0x0 4 bytes magic word EMDb
offset 0x8 4 bytes file size
offset 0x28 4 bytes address first entry
table
8 byte entries, 4 bytes entry length in bytes, 4 bytes address offset in file of entry
part way starts adding 00 01 00 00 every two entries
further the pattern gets harder to follow but the very last entry corresponds to the correct size and address of the last entry in the data
data
entries in the table separated by a null. these entries seem to come in pairs, an ansi label and a comment in SHIFT-JIS japanese encoding. Not all ansi entries have a comment, have a blank entry instead. File names perhaps, appear to reference script chunks based on my understanding of the game.
I believe the em.bin, which is EMF_ magic word works with it somehow, some sort of indexing.
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: Rune Factory 4 (3DS) EMF_, EMDb, MYCF
It's a bit more complex than that.
I tried to write a script but some points are not clear and in any case are just very short strings.
I tried to write a script but some points are not clear and in any case are just very short strings.
-
- Posts: 3
- Joined: Thu Jul 16, 2015 1:57 am
Re: Rune Factory 4 (3DS) EMF_, EMDb, MYCF
Alright, thanks for the assist and your time!
You are right, its just short strings in the end even if they worked together. The main mystery is/was the mc file which at least it now seems is just a container, now I just need to interpret the contents.
You are right, its just short strings in the end even if they worked together. The main mystery is/was the mc file which at least it now seems is just a container, now I just need to interpret the contents.