Anonymous

Changes

From Final Fantasy Inside

FF8/FileFormat MAP

143 bytes added, 05:40, 25 July 2009
no edit summary
= MAP Files =
MAP files contain data about the tiles used to draw the field background. Every There is no header, every 16 bytes of the file is one 16x16 tilefrom the MIM data, ending with the special signature 0x7FFF followed by 12 zero bytes.To determine whether you're dealing with a type 1 or type 2 file, look at the MIM filesize, there is no obvious marker for type 2 in the MAP file.
== Tile format ==
=== Type 1 (Paletted images?) ===
Two signed 16-bit integers, X and Y relative to center (0, 0)<br />
Another 16-bit value, probably a fixed-point representation of the Z coordinate (divide by 4096 to get a floating point value)<br />
2 unknown bytes, the last one may be related to background animation.<br />
=== Type 2 (Non-paletted images?) ===
X and Y, same as above<br />
Source coordinates, both 16-bit this time<br />
Anonymous user