Map.data

map.data is file with raw binary values of height of the custom map. Forest village support only squared maps of three sizes:
 * 512 x 512 meters;
 * 1024 x 1024 meters;
 * 2048 x 2048 meters.

Height map represented as sequence of height values (in meters) of each 1x1 cell of map that starts from southwestern point (bottom-left of minimap), follows cell by cell to the east (right) and line by line to the north (top) as shown on image below:

Height values can be stored in one of the following formats:
 * 32-bit float value [IEEE754]
 * 32-bit signed integer value (little-endian) [integer]
 * 32-bit unsigned integer value (little-endian) [integer]

In all formats positive values means altitude above the sea level in meters and negative values means altitude below sea level.

mapinfo.lua
Although Forest Village can automatically detect format of height map and also scale it to match more preferable size, it is highly recommended to annotate it by mapinfo.lua file. It contains following information:

return {   format = "float" , scale = 1 , offset = 0 , landingPlace = { x = 256 , y = 256 , radius = 20 } }

Where:
 * format — on of the following values:
 * "float" for float values;
 * "int" or "int32" for signed integer values;
 * "uint" or "uint32" for unsigned integer values;
 * scale — multiplier factor for each value;
 * offset — offset that will be added for each value;
 * landingPlace — information about position and radius (in meters) of landing place. Landing place is special area on the map that will be flatten out and where start village will be located.