Skip to content

Map File Formats

shartte edited this page Apr 2, 2015 · 35 revisions

Map Properties (map.prp)

Found in the map directory. Has the following structure:

struct MapProperties {
  int artId; // Lookup key for art/ground/ground.mes
  int unused; // Mostly 0, sometimes garbage (cccccccc, stack pointers)
  uint64_t limitX; // Seems to be number of tiles on X axis. Always 960
  uint64_t limitY; // Seems to be number of tiles on Y axis. Always 960
};

The art id of the current map is stored at 0x1080FA58.

Map Start Location (startloc.txt)

This file is actually optional. It may have been used for the start location within the editor only.

The format is a simple text file that has a X position on the first line and Y position on the second line.

Example (for Hommlet):

487
506

Measured in tiles. It is stored in memory location 0x10AA9590 as a 64-bit integer (lower 32-bit are X, upper 32-bit are Y).

Global Lighting (global.lit)

Seems optional.

struct GlobalLighting {
  bool enabled; // 32-bit repr
  D3DLIGHT8 light; // Describes the light.
};

Description of D3DLIGHT8

Clone this wiki locally