The International Simutrans Forum

Community => Simutrans Help Center => Topic started by: Bub on February 02, 2011, 09:24:08 PM

Title: How can I get a .bmp map into the simutrans game
Post by: Bub on February 02, 2011, 09:24:08 PM
     I have a map of the Mediterranean ready to put into my Simutrans game. I put the file named westernmediterranean.bmp in the same folder where simutrans and its components are located on my computer. But when I opened up Simutrans and looked in Load Height Map, nothing was there. If anyone knows how to put a .bmp file into Simutran's Load Height Map tab, could I have some instruction?
Title: Re: How can I get a .bmp map into the simutrans game
Post by: Buckermann on February 02, 2011, 09:48:42 PM
You need to convert your bmp into a ppm file with a image converter like IrfanView (http://www.irfanview.com/). Simutrans can only use ppm images as height maps.
And just in case your image doesn't works; maps in the right format can be found here (http://maps.simutrans.com/index.html).
Title: Re: How can I get a .bmp map into the simutrans game
Post by: VS on February 02, 2011, 09:56:33 PM
The "only ppm" part is not strictly true, but it's far easier to do this.

The other possibility is bmp in a specific format - iirc grayscale with run-length encoding. If you have some image viewer/convertor/editor such as IrfanView, GIMP, Photoshop and such, try opening your bitmap, save as (or maybe export?) and see what options are available for bmp. I can't be more specific than this - every single program will do this in a slightly different way.
Title: Re: How can I get a .bmp map into the simutrans game
Post by: DirrrtyDirk on February 02, 2011, 10:00:10 PM
I thought certain .png's also worked by now... but I may be wrong.
Title: Re: How can I get a .bmp map into the simutrans game
Post by: Buckermann on February 02, 2011, 10:25:10 PM
I stand corrected.
Is there a place which has information about the specific image formats than can be used as a height map? It's not super important; I'm just curious. The old and new wiki are not very helpful in that regard.
Title: Re: How can I get a .bmp map into the simutrans game
Post by: prissi on February 02, 2011, 11:45:47 PM
8 bit BMP bitmap (any format) and ppm will work.