RandomParadox icon indicating copy to clipboard operation
RandomParadox copied to clipboard

Bitmap has constant errors

Open Astram2k22 opened this issue 2 months ago • 4 comments

I'm trying to make a map with a custom bitmap, the resolution is a multiple of 64, but it keeps giving me 20:31:57:921 Image width not divisible by resolutionBase: 256 20:31:57:922 ERROR: Height or Width of the configuration are not divisible by 64. This means the resolution of both width and height must be a multiple of64, so for example 64, 128, 192, 256....1024....2048....4096 20:31:57:923 Resolution of heightmap does not have correct resolution even if everything is done perfectly any way to fix this or am I just dumb?

bitmap.bmp bitmap for reference

Astram2k22 avatar Oct 24 '25 00:10 Astram2k22

Hey, no, that's my fault. Over time, hoi4 started having issues also with multiples of 64. Since then, a multiple of 256 is required. I had changed this, but didn't change the hardcoded values in the error message.

panik4 avatar Oct 24 '25 16:10 panik4

I am having a similar issue althoughit is more related to this error:

Climate input map size does not match height map size. Please ensure that the input map is the same size as the height map.

Both maps are identical in hieght, width and even file size. Any way to fix this?

PhoenixLP44 avatar Nov 23 '25 16:11 PhoenixLP44

This is odd, can you attach the log.txt for me? You can find it in the tools folder next to the executable.

As a test, in case you are loading a bitmap, I suggest converting it to a png, and trying again. Furthermore, after loading the heightmap, check if the tool has detected the resolution that you intended, you can find the detected resolution here

Image

panik4 avatar Nov 25 '25 07:11 panik4

i figured it our, it was a problem with the map itself, I saved it as a 32 bit file, not 8 bit. I can try to replicate the issue if you want.

PhoenixLP44 avatar Nov 25 '25 11:11 PhoenixLP44