Hammer of the Gods map

From ModdingWiki
Jump to navigation Jump to search

Used by Hammer of the Gods to store map layouts. This includes both WORLD.MAP (the predefined layout) and also an embedded section in saved games.

File format

Terrain layout

Offset Data type Description
0x0008 INT16LE X dimension (90) ! Changeable or is 90x60 always assumed?
0x000A INT16LE Y dimension (60) ! Changeable or is 90x60 always assumed?
0x000C INT8 array Column-major, nibble-based tile layout (2 tiles per byte).

Values up to 9 appear to be valid for each half-byte tile. ! What happens if higher values than these are inserted?

  • 0 - grass
  • 1 - water
  • 2 - forest
  • 3 - tundra
  • 4 - hill
  • 5 - mountain
  • 6 - big river
  • 7 - small river
  • 8 - waterfall or rapids (does not appear in WORLD.MAP but can appear in generated maps)
  • 9 - river mouth

The graphical variations on these tile types appear to be chosen by the program at run-time.

Cities, Monasteries, Dungeons

! These appear after the tile layout and the names can be seen in ASCII. The other values and exact layout have not yet been explored.