Important information: this site is currently scheduled to go offline indefinitely by end of the year.

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

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

Post by Darkfox »

It does sound promising :) thanks again guys
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 682 times
Contact:

Post by Mr.Mouse »

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: 749
Joined: Tue May 16, 2006 10:55 pm
Location: Everywhere
Has thanked: 34 times
Been thanked: 42 times

Post by lionheartuk »

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 »

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: 749
Joined: Tue May 16, 2006 10:55 pm
Location: Everywhere
Has thanked: 34 times
Been thanked: 42 times

Post by lionheartuk »

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.
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 682 times
Contact:

Post by Mr.Mouse »

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: 749
Joined: Tue May 16, 2006 10:55 pm
Location: Everywhere
Has thanked: 34 times
Been thanked: 42 times

Post by lionheartuk »

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 »

Well if Mr.Mouse can make the extractor, maybe he can post the script i here. so someone can messing around with it.
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 682 times
Contact:

Post by Mr.Mouse »

lionheartuk wrote: LIB files? But arnt the games file .EMI.
Er.. yeah, EMI files.
User avatar
lionheartuk
double-veteran
double-veteran
Posts: 749
Joined: Tue May 16, 2006 10:55 pm
Location: Everywhere
Has thanked: 34 times
Been thanked: 42 times

Post by lionheartuk »

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.
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 682 times
Contact:

Post by Mr.Mouse »

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: 688
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

Post by Darkfox »

Thanks alot Mr.Mouse, I'll wait till then!
LustD
beginner
Posts: 34
Joined: Wed Jul 19, 2006 3:21 pm

Post by LustD »

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 »

Sorry if i asking, but has it worked?
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 682 times
Contact:

Post by Mr.Mouse »

Has what worked?
Post Reply