Difference between revisions of "MAP.DAT"
Jump to navigation
Jump to search
m (→See Also: added category) |
(Little more information about MAP files.) |
||
Line 3: | Line 3: | ||
Length of wglob[2]*wglob[3]*wglob[4]*4 bytes. | 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 map | + | |
− | + | *The first byte is the ground. | |
− | The first byte is the ground. | + | *The second is the west wall. |
− | The second is the west wall. | + | *The third is the north wall. |
− | The third is the north wall. | + | *The forth is the contents (not usable objects - dirt and stuff). |
− | The forth is the contents (not usable objects - dirt and stuff). | + | |
− | Tiles are stored in order of left to right, | + | Tiles are stored in order of left to right, top to bottom, top floor to bottom floor. |
− | top to bottom, top floor to bottom floor. | + | |
+ | <b>Note:</b> 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 <b>above</b>. | ||
==See Also== | ==See Also== |
Revision as of 02:09, 16 November 2008
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.