Transport Fever 2

Transport Fever 2

View Stats:
Rick Locker Jan 3, 2021 @ 11:22am
Can't import heightmaps. Map Generation Failed.
I'm trying to import heightmaps into the map editor to make some custom maps but all of the images I try get errors.

I have 13 images. All in grayscale, all of them heightmaps. I try to use any of them and I get an error: Map Generation Failed: Internal error (see console for details).

I check the console and I get this:

Exception type: struct heightmap_util::ImportException

Details:

Error message: Image type must be grayscale.

Minidump: C:/Program Files (x86)/Steam/userdata/95634119/1066780/local/crash_dump/39cb4f00-aecf-4891-8d33-a62c817df6e3.dmp

In file: c:\build\tpf2_steam\src\game\terrain\heightmap_util.cpp:51

In function: class std::vector<float,class std::allocator<float> > __cdecl heightmap_util::ReadHeightmap(const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,float,float,int *,int *)

All of these heightmaps are in grayscale so I don't know why the game thinks they're not.

Can anyone help me with this? I just want to make some maps.
< >
Showing 1-5 of 5 comments
ClearchusOfSparta Jan 3, 2021 @ 12:41pm 
I have a sneaky feeling the images are not true grayscale. To make sure, I would import the heightmap into GIMP, convert them here to 16 bit grayscale and then export the file selecting 16 bit grayscale again, and if I remember right, it needs to be a BMP file.
Hope this helps.
SoopahMan Jan 10, 2021 @ 2:20pm 
This has been a fantastic place to get heightmaps:

https://tangrams.github.io/heightmapper

You can then use Gimp:

https://www.gimp.org/

To edit the image and under Image > Mode change the Precision to 16-bit (from 8-bit) and the Color to Grayscale.

Then save it to PNG and when it has the option to pick which specific format change it from Automatic to grayscale 16bpp.
Originally posted by SoopahMan:
This has been a fantastic place to get heightmaps:

https://tangrams.github.io/heightmapper

You can then use Gimp:

https://www.gimp.org/

To edit the image and under Image > Mode change the Precision to 16-bit (from 8-bit) and the Color to Grayscale.

Then save it to PNG and when it has the option to pick which specific format change it from Automatic to grayscale 16bpp.


I used GIMP and changed the precision to 16bit and set the color to grayscale, extracted a copy in .PNG format and set it to grayscale 16bpp then placed it in the 1066780 folder but when i go into the map editor there's nothing on the list that i can import. Any ideas?
Huperspace Jul 9, 2021 @ 12:14am 
Originally posted by blymee:
... then placed it in the 1066780 folder but when i go into the map editor there's nothing on the list that i can import. Any ideas?
the grayscale image must be in "/Steam/userdata/<steam_id>/1066780/local/heighmaps" as the import screen tells you
Last edited by Huperspace; Jul 9, 2021 @ 12:14am
Originally posted by Huperspace:
Originally posted by blymee:
... then placed it in the 1066780 folder but when i go into the map editor there's nothing on the list that i can import. Any ideas?
the grayscale image must be in "/Steam/userdata/<steam_id>/1066780/local/heighmaps" as the import screen tells you

Sorry, I forgot to state that other folder step. It is in the heightmaps under 1066780/local

I watched a youtube video that went step by step how to do it exactly as SoopaMan's post describes but it still doesn't show up in editor.
Last edited by Dr. Fao Xi, DO/MD [31 CHN]; Jul 9, 2021 @ 12:20am
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Jan 3, 2021 @ 11:22am
Posts: 5