Jump to content

MAP.DAT

From UFOpaedia
Revision as of 02:09, 16 November 2008 by Zombie (talk | contribs) (Little more information about MAP files.)

This file is only used by tactical saves.

Length of wglob[2]*wglob[3]*wglob[4]*4 bytes.

The first 3 bytes indicate the width, length and height of the map module. After that, the actual cell data starts with each record containing 4 bytes. Each byte points to a different object in the MCD array summarized below.

  • The first byte is the ground.
  • The second is the west wall.
  • The third is the north wall.
  • The forth is the contents (not usable objects - dirt and stuff).

Tiles are stored in order of left to right, top to bottom, top floor to bottom floor.

Note: When opening map files with MS-EDIT, open it in 4-column widths, but remember that the ground tile of the cell will be found at the last byte in the row above.

See Also