I started trying to find out the dimension of the heightmap

I believe on a 1x1 patch the total size of the heightmap = 4356 bytes. Taking in account that one heightmap entry is a float of 4 bytes we can conclude that to get the total amount of points in the heightmap is (heightmap bytes / 4). So now we know the total amount of points in the heightmap. Taking a heightmap is width * height, this means that if our patch is 1 x 1 we should get the width and height of the heightmap by taking the square root.

total_heightmap = 4356
amount_heightmap_points = total_heightmap / 4 = 1089
width_height_size = SQRT(amount_heightmap_points) = 33

so I think our heightmap for a 1x1 patch is

33px x 33px bitmap file


update:

I was able to write a heightmap file to a patch file without breaking the file size. So my old import is working on this new file.

code:
https://github.com/Celludriel/DOS_T...porter/Importer/Dos2GrayScaleImporter.cs

However the height in the editor is not changing which is what I was afraid of. Those vertex things have something to do with the whole affair and I have no idea how to handle that.

Last edited by Celludriel; 25/09/17 01:25 PM.