WMAP files

Description

This describes the top-level map structure of the game. It tells which areas are located at which coordinates on the worldmap, and it tells which MOS and BAM files to use to visually display the worldmap. It appears to also encode which areas are visited, which areas are visible, and possibly which areas are visitable.

WMAP file versions

WMAP V1.0

Overall structure

WMAP V1.0 Header

OffsetSize (datatype)Description
0x00004 (char array)Signature ('WMAP')
0x00044 (char array)Version ('V1.0')
0x00084 (dword)Count of worldmap entries.
0x000c4 (dword)Offset of worldmap entries from start of file.

WMAP V1.0 Worldmap entry

OffsetSize (datatype)Description
0x00008 (resref)Map resource name (i.e. MOS file for background graphics of this worldmap).
0x00084 (dword)Width
0x000c4 (dword)Height
0x00104 (dword)Unknown
0x00144 (strref)Name of the area (for tooltips?)
0x00184 (dword)Unknown
0x001c4 (dword)Unknown
0x00204 (dword)Count of area entries in this worldmap.
0x00244 (dword)Offset of first area entry for this worldmap.
0x00284 (dword)Offset of first area link entries for this worldmap.
0x002c4 (dword)Count of area link entries in this worldmap.
0x00308 (resref)Resource name of the BAM file containing the map icons for the areas.
0x0038128 (bytes)Probably reserved for future expansion

WMAP V1.0 Area entry

OffsetSize (datatype)Description
0x00008 (resref)name of this area (as referenced by area links?)
0x00088 (resref)AREA resref for this area
0x001032 (char array)Area long name (probably only used for editing purposes?)
0x00304 (dword)Bitmap indicating status of area:
  • bit 0: is area visible?
  • bit 1: unknown
  • bit 2: set if area can be visited
  • bit 3: set if area has been visited
  • bits 4-31: unused?
0x00344 (dword)Sequence within BAM file for the icons for this area.
0x00384 (dword)X coordinate of this area within the world map
0x003c4 (dword)Y coordinate of this area within the world map
0x00404 (strref)Name of this location (as seen on captions)
0x00444 (strref)Same as field at 0x40? (or perhaps name for tooltips?)
0x00488 (resref)Resref of MOS file to be shown while this area is loading.
0x00504 (dword)Index of the first entry in the first group (North?) of area links from this area.
0x00544 (dword)Count of entries in the first group (North?) of area links from this area.
0x00584 (dword)Index of the first entry in the second group (West?) of area links from this area.
0x005c4 (dword)Count of entries in the second group (West?) of area links from this area.
0x00604 (dword)Index of the first entry in the third group (South?) of area links from this area.
0x00644 (dword)Count of entries in the third group (South?) of area links from this area.
0x00684 (dword)Index of the first entry in the fourth group (East?) of area links from this area.
0x006c4 (dword)Count of entries in the fourth group (East?) of area links from this area.
0x0070128 (bytes)Reserved for future expansion?)

WMAP V1.0 Area Link entry

OffsetSize (datatype)Description
0x00004 (dword)index of the area to which this link leads
0x000432 (char array)Name of the entry point in the destination area
0x00244 (dword)Travelling time (in hours) to the destination area
0x0028144 (bytes)Unknown/reserved

[ back to index ]