Maybe someone will find this useful.
The Map file is read by the game from left to right, from top to the bottom, like a book. The layout mirrors the map in the editor. Each map tile is made of 4 pairs of hexadecimals. For example, if you have a 5x5 map with Keeper 1 dungeon heart, the first tile line in the editor (border in.r, 5x dungeon h, border in.r.) will read as 011E0201 010E0301 010E0301 010E0301 010E0301 010E0301 011E0201. This should give you a hint on how to find different terrain types in the map. The North-Western coordinate is the beginning of the file, and the South-Eastern is the end.
Some codes will have a * after a digit. This symbol indicates that this is a progressing code, and you can easily alter the numbers for different players. For example, the heart for player 1 is 010E03*01. This means that for player 2 it will be 010E0401, for 3 - 010E0501, for 4 - 010E0601, etc. Remember, that 01 = Good Player, 02 = Neutral player, 03 and higher – players 1,2,3,4,5.
Terrain
Border impenetrable rock code - 011E0201
Impenetrable Rock – 01010201
Diggable Rock – 01020201
Dirt Path – 01030201
Water – 01040201
Lava – 01050201
Gold – 01060201
Gem Seam – 01070201
Rooms, portals and walls
Clamed Tile (Good Player) – 010801*01 (01080201 is an equivalent to 01030201(dirt path) because there is no tile for a neutral player)
Reinforced Wall (Good Player) – 010901*01 (01090201 is an equivalent to 01020201(Diggable Rock) because there is no fortification available for a neutral player)
Mana Vault (Good Player) – 012001*01
Hero lair (Good Player) – 012301*01
Dungeon Heart (keeper 1) - 010E03*01
Portal (Good Player) - 010C01*01
Lair (Good Player) - 010B01*01
Hatchery (Good Player) - 010D01*01
Library (Good Player) - 010F01*01
Training Room (Good Player) – 011001*01
Treasury (Good Player) - 010A01*01
Workshop (Good Player) – 011301*01
Casino (Good Player) – 011801*01
Guard Post (Good Player) – 011201*01
Wooden Bridge (Good Player) – 011101*01
Stone Bridge (Good Player) – 01240101; (Neutral player) – 011A02*01
Prison (Good Player) – 012401*01
Torture Chamber (Good Player) – 011501*01
Combat Pit (Good Player) – 011901*01
Graveyard (Good Player) – 011701*01
Temple (Good Player) – 011601*01
Hero Gate Final (Good Player) - 011C01*01
Standard Hero Gate (Good Player) - 011C01*01
Hero Gate 3x1 (Good Player) – 012501*01
Editor Mercenary Portal (Good Player) – 012801*01
P.S. I have it uploaded to google dox.
Ty, Necror.
Here