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 {
  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
};

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).

Clone this wiki locally