Skip to content

vimontgames/bhktools

Repository files navigation

bhkmap

Main Features

  • Read/Write .hmap files
  • Display elevation level, territories, biomes, tile types, strategic resources, luxury resources, natural wonders
  • Display, randomize and edit player spawn points (including order)
  • Fix corrupted saves after adding landmarks in the map editor

Build

Open bhktools.sln using Visual Studio 2017 or later then build solution :)

All dependencies but the SFML have been copied to this repo, you will need to set an environment variable named $(SFML) pointing to your SFML install in order to compile.

i.e. SFML=G:\SFML\SFML-2.5.1

Changelog

v0.55

  • Fix pink screen when opening map because of new (?) GLSL shader compilation errors

v0.54

  • Change global UI scale

v0.53

  • Fix some natural wonders not showing

v0.52

  • Can now increase max player count up to 10

v0.51

  • Offset map
  • Refactor bitmap import/export to use 2D arrays

ScreenShot051

v0.5

  • Added multi-map support
  • Maps are displayed inside an ImGui window rather than the backbuffer directly

ScreenShot050

v0.41

  • Fix corrupted zip file export

v0.4

  • Export player spawn locations
  • Randomize player spawn order

ScreenShot040a

ScreenShot040b

v0.33

  • Export "UseMapCycling"
  • Export "UseProceduralMountainChains"

ScreenShot033

v0.32

  • Display player spawns
  • Improve heightfield and territory shader to show continent and island shapes better
  • Increase max shader read buffer size from 4k to 16k to handle bigger files

ScreenShot032

v0.31

  • Display tile type
  • Resource counters
  • Hide unselected natural wonders
  • Fix crash with ImGui::TreePop when some controls were collapsed

ScreenShot031

v0.3

  • Fix resource draw order
  • Clean unused menus

v0.24

  • Replicate hexes distortion on textures and icons

ScreenShot024

v0.23

  • Refactor menus
  • Display natural wonders as ressources with custom colors

ScreenShot023

v0.22

  • Refactor shaders (per-texel vs. global flags)
  • Refactor map save
  • Display natural wonders

ScreenShot022

v0.21

  • Save .hmap files
  • Remove landmarks at save to fix corrupted save files

ScreenShot021

v0.20

  • Display resource icons
  • Change mouse pan to left button to match the in-game editor
  • Display territory biomes
  • Improve shaders

ScreenShot020

v0.13

  • Add shader manager
  • Display territory borders

ScreenShot013

v0.12

  • Pan & Zoom using SFML views
  • Improve the "Debug" window and add an "Help" window
  • Switch to light theme

ScreenShot012

v0.11

  • Add camera pan using left mouse button
  • Add menu for tool windows
  • Fix docking issue with tool windows

v0.1

  • Initial commit
  • Open .hmap file and decode data

ScreenShot0

Dependencies