EMI
Back to index | Edit this page
Contents
EMI
{{GRAFPageMisc{{ subst:#if: Archive | {{subst:!}}Archive }}{{ subst:#if: Little Endian | {{subst:!}}Little Endian }}}}
Format Specifications
Notes and Comments
None
MultiEx BMS Script
<bms ext="emi" games="'Breath of Fire 4'" platforms="'PS'" version="1.0" author="Mr.Mouse" verbose="no" silence="no"># 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. Lets 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!</bms>
Supported by Programs
MultiEx Commander http://multiex.xentax.com
Documentation
Original request thread: http://forum.xentax.com/viewtopic.php?t=1984
Games
Breath of Fire 4