FANDOM


MAZExxxx.MOB files contain the Monster and Object information for each map, where xxxx is the map ID in decimal. It does not contain the specific graphic information. If the mapID is greater than 99, the first x becomes a literal X. ie, MAZEX123.DAT is the file for map ID 123.

Usage Edit

The file consists of three lists, each element containing four bytes: an X coordinate, a Y coordinate, the maps object ID, and the direction it faces. Each list is terminated by the hex string 0xFF 0xFF 0xFF 0xFF.
Objects can even be placed outside the current map (coordinates greater than 0xF or less than 0x0) so that, when stitched together with the map beside it, the object can be seen in the adjacent map.

File Format Edit

  • 16 bytes - An array corresponding to the Object Sprite to be displayed at that location. Unused slots should be filled with 0xFF values.
  • 16 bytes - An array corresponding to the monster id to be used on the map. Unused slots should be filled with 0xFF values.
  • 16 bytes - An array corresponding to the Wall Object Sprite to be displayed at that location. Unused slots should be filled with 0xFF values.
  • 4 bytes * n - The X coordinate, Y coordinate, object ID as a lookup into the above array (0x0-0xF), and the direction the "front" faces.
  • 4 bytes - Array termination string (0xFF 0xFF 0xFF 0xFF)
  • 4 bytes * n - The X coordinate, Y coordinate, and monster ID as a lookup into the above array (0x00-0x1F). The direction byte serves no purpose for monsters.
  • 4 bytes - Array termination string (0xFF 0xFF 0xFF 0xFF)
  • 4 bytes * n - Indoors: this applies to images displayed on walls, as in windows, gold veins, or skulls. They function exactly as objects above except in their 3D rendering (they can only be seen looking straight on). Outdoors, use is currently not precisely known. May be additional Map Flags that do not spawn actual monsters. Only the first two bytes (X and Y coordinate) are used; other two bytes (ID and direction) are always zero.
  • 4 bytes - Array termination string (0xFF 0xFF 0xFF 0xFF)

Notes Edit

If an object is placed outside the map, but doesn't also exist in the adjacent map, then crossing the threshold will cause the object to seemingly disappear. This is the cause of two known bugs in the Darkside where objects can be seen in one position, but disappear as you approach them, and two in Clouds with objects floating in space.

TODO Edit

Confirm third array is actually extra flags as suspected.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.