Anonymous

Changes

From Final Fantasy Inside

FF7/Field/MIMfile

753 bytes added, 21:41, 10 January 2007
no edit summary
The MIM filestructure begins with the

====MIM Header====
typedef struct
{
UINT32 Header_Palette;
UINT16 PalX, PalY;
UINT16 PalWidth;
UINT16 PalHeight;
} MIMHeader;

which is followed by PalHeight number of
====MIM Palette====
typedef struct
{
UINT16 Palette[256];
} BGRPal256;

After the palettes comes the

====MIM Block Header====
typedef struct
{
UINT32 WordCount; // # words of data in image
UINT16 ImageX, ImageY; // location of blocks on 1024x512 display area
UINT16 Width, Height; // Width is the # of Word units (UINT16) the blocks are wide
} MIMBaseImage;

lastly the actual block data for display follows. The palettes are selected from information in the DAT section 3 data.
Anonymous user