READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

Capcom .EMI file format (from Breath Of Fire 4)

Old posts about game archives and other formats.
Darkfox
VVIP member
VVIP member
Posts: 689
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

Post by Darkfox » Sat Sep 23, 2006 6:15 am

It does sound promising :) thanks again guys

User avatar
Mr.Mouse
Site Admin
Posts: 4038
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 412 times
Been thanked: 552 times
Contact:

Post by Mr.Mouse » Sat Sep 23, 2006 9:18 am

lionheartuk wrote: Btw what does "uint" mean cos u ahve many uint32 ect...
uint32 = unsigned 32-bit integer (4 bytes)
uint16 = unsigend 16-bit integer (2 bytes).

User avatar
lionheartuk
double-veteran
double-veteran
Posts: 673
Joined: Tue May 16, 2006 10:55 pm
Location: Tokyo, Japan
Has thanked: 22 times
Been thanked: 22 times

Post by lionheartuk » Sat Sep 23, 2006 9:27 am

LustD wrote:Seem this request have nice progress
lol.
Actually it was dead for awhile Until you posted an revived it, but since then some Progress has been made on this game.
Nicely too.
Still Im not sure if we will be able tp uncompress them compressed textures or not,

LustD
beginner
Posts: 34
Joined: Wed Jul 19, 2006 3:21 pm

Post by LustD » Sat Sep 23, 2006 9:39 am

Lol, you make me like necromancer.

So the main problem is how to uncompresed it?
Well Capcom have good job with this

User avatar
lionheartuk
double-veteran
double-veteran
Posts: 673
Joined: Tue May 16, 2006 10:55 pm
Location: Tokyo, Japan
Has thanked: 22 times
Been thanked: 22 times

Post by lionheartuk » Sat Sep 23, 2006 9:58 am

LustD wrote:Lol, you make me like necromancer.

So the main problem is how to uncompresed it?
Well Capcom have good job with this
Yes thats IF there compresse as strobe ses.
Im not actually sure.
The info that MrMouse Posted wasnt in Visual Basic.
Seing as im relativly new to this whole ripping thing so far I can only do more common formats.
Funnyly enough though, Mr Mouses info can be posted to VB, But seign as im actually rather new to this I dont know Quite how atm.
Tho Uint function can be made rather simply.

User avatar
Mr.Mouse
Site Admin
Posts: 4038
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 412 times
Been thanked: 552 times
Contact:

Post by Mr.Mouse » Sat Sep 23, 2006 10:10 am

No no, what I posted it just the format of the header able of LIB files. An unsigned 32-int is just that. A format of a number. It's not difficult to write an extractor based on what I posted. I might even write a Multiex script for it.

User avatar
lionheartuk
double-veteran
double-veteran
Posts: 673
Joined: Tue May 16, 2006 10:55 pm
Location: Tokyo, Japan
Has thanked: 22 times
Been thanked: 22 times

Post by lionheartuk » Sat Sep 23, 2006 10:37 am

Mr.Mouse wrote:No no, what I posted it just the format of the header able of LIB files. An unsigned 32-int is just that. A format of a number. It's not difficult to write an extractor based on what I posted. I might even write a Multiex script for it.
lol.
Cool.
THo i dont own Multi Ex so thats no use to me personally.
But doesnt mean many others wont use it eh.
LIB files? But arnt the games file .EMI.

LustD
beginner
Posts: 34
Joined: Wed Jul 19, 2006 3:21 pm

Post by LustD » Sat Sep 23, 2006 10:57 am

Well if Mr.Mouse can make the extractor, maybe he can post the script i here. so someone can messing around with it.

User avatar
Mr.Mouse
Site Admin
Posts: 4038
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 412 times
Been thanked: 552 times
Contact:

Post by Mr.Mouse » Sat Sep 23, 2006 11:37 am

lionheartuk wrote: LIB files? But arnt the games file .EMI.
Er.. yeah, EMI files.

User avatar
lionheartuk
double-veteran
double-veteran
Posts: 673
Joined: Tue May 16, 2006 10:55 pm
Location: Tokyo, Japan
Has thanked: 22 times
Been thanked: 22 times

Post by lionheartuk » Sat Sep 23, 2006 1:44 pm

Mr.Mouse wrote:
lionheartuk wrote: LIB files? But arnt the games file .EMI.
Er.. yeah, EMI files.
lol.
Im still a bit confused as to what i would write into my ripper atm.
But have sent oyu that PM which should explain what i mean.

User avatar
Mr.Mouse
Site Admin
Posts: 4038
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 412 times
Been thanked: 552 times
Contact:

Post by Mr.Mouse » Tue Sep 26, 2006 9:27 pm

Version 4.3 of MultiEx Commander will be released come sunday.

That can open EMI files and extract all content using this script:

Code: Select all

# MexScript for EMI files from Breath Of Fire 4
# By Mr.Mouse
# ----------------------------
# First get the Number of files (FN)
ImpType SFileSize ;
Get FN Long 0 ;
Get U1 Long 0 ;
GetDString ID 8 0 ;
# The ID string is "MATH_LAB"
# Very well, now prepare some padding calculations
# Each data stream (data section) is padded up to 
# 0x800 blocks. 
Set B Long 2048 ;
Set A Long FN ;
Math A *= 16 ;
Math A += 16 ;
Set C Long A ;
Math C /= B ;
Math C *= 2048 ;
Math C += 2048 ;
Set Off Long C ;
# Good, now we have calculated the Offset of the 
# first file. Let's start reading the file info for each file 
# in the archive!
For T = 1 To FN ;
SavePos FSO 0 ;
Get FS Long 0 ;
Get U2 Long 0 ;
Get ID2 Long 0 ;
Get U3 Int 0 ;
Get END Int 0 ;
Log "" Off FS 0 FSO ;
# Need to perform padding calculations to get to the 
# offset of the next file (if any)
Math FS /= 2048 ;
Math FS *= 2048 ;
Math FS += 2048 ;
Math Off += FS ;
Next T ;
# There! That did the trick! 
So, hold your breath :)

Darkfox
VVIP member
VVIP member
Posts: 689
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

Post by Darkfox » Wed Sep 27, 2006 4:32 am

Thanks alot Mr.Mouse, I'll wait till then!

LustD
beginner
Posts: 34
Joined: Wed Jul 19, 2006 3:21 pm

Post by LustD » Wed Sep 27, 2006 12:41 pm

Wow that great news, i cant wait for this.

User avatar
Ray Phoenix
ultra-n00b
Posts: 3
Joined: Sun Nov 18, 2007 8:09 pm
Contact:

Post by Ray Phoenix » Tue Nov 20, 2007 1:35 am

Sorry if i asking, but has it worked?

User avatar
Mr.Mouse
Site Admin
Posts: 4038
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 412 times
Been thanked: 552 times
Contact:

Post by Mr.Mouse » Tue Nov 20, 2007 11:52 am

Has what worked?

Post Reply