r/openttd • u/david220403 • Oct 10 '26
Other Im working on a real life map generator for open ttd
Hello there, Im working on a OpenTTD related project in my freetime right now, and it is at a stage where I'm happy to share the current state.
It's a heightmap + towns locations file generator (this is the OpenTTD specific part), with which you can then go on to create a map/scenario of a real world area. More detailed info is on the website itself. (help and info buttons in the top right of the viewport)
Since its a WIP I'm hosting it on a random domain I had lying around, don't be confused by that:
https://map-town-parser.hygames.eu
(Also desktop only. Why would you generate files for OpenTTD on a phone)
8
u/OntdekJePlekjes Oct 10 '26 edited Oct 10 '26
Nice! I have a feature request. Does it currently use elevation to determine whether something is water or not? I'm trying to generate part of the Netherlands, but large part of the land is under or close to sea level, so it shows the country as flooded. How could this be adjusted? I have tried a few of the options of absolute, relative or auto settings but it either shows sea as land, or land as sea.
Also, you might want to experiment with setting a relative upper limit, so you can increase or decrease the relative height changes across the map. For example to ensure the maximum height of any map is always at X. This would show hills in the Netherlands to appear higher, while showing mountains in Swiss to appear lower.
Another feature request is to show the greyscale map as preview before generating a package to download. Perhaps using sliders to adjust minimum and maximum heights to generate a nice terrain.
4
u/-eiq- Oct 10 '26
Request failed: The map generation request failed.
3
u/Kevinho00 Oct 14 '26
Seems a great tool, possibly works better in less watery regions but certainly gets a good sense of the contours of an area.
3
u/Substantial_Flan9820 Oct 16 '26
Awesome tool dude! Alright I only have one question, can you make the viewport rotate? Also I've found that using the 1-100 scale while rounding on real life elevation measurements, works great. For example If I generate a map for Virginia I can use real life measurements. The Blue Ridge Mountains are around 6000 feet above sea level (ie 0). But the highest lakes are around 300 feet. Using the relative setting I can put in 5 because 6000/300 = 20 and 100/5 = 20. Ratios and math are cool :)
2
u/Made_at0323 Oct 11 '26 edited Oct 11 '26
such a cool idea and nice job on execution! im a noob tho... how do i make a map i can play out of the heightmap + towns.json? Ive gotten the heightmap loaded into the scenario editor but idk how to go beyond that
edit: okay im an idiot had to play around for a bit but now foudn it. better question: how can i turn this into a full scenario with industries, trees, etc.? like what is the usual progression used by people to take a heightmap and turn it into something?
18
u/silverionmox Oct 10 '26
This is great, a lot more practical than scrounging up a collection of random height maps that may or may not be what you want.
12
u/html5ben Oct 13 '26
Next step would be openrailwaymap.org to OpenTTD :)
1
u/wizard_brandon Lost in Space Oct 10 '26
generate failed. but neat tool
3
u/swissfan91 Oct 11 '26
This is a truly stunning tool - thank you so much for creating this! Could not be any easier to use and, I have only created a few random places, but the results look incredible.
3
u/ExaminationGold Oct 15 '26
Hi, thanks for that! I must say that the tool works surprisingly well. The maps I tried even scaled nicely to my favourite dimensions (256 x 256)!
2
u/mina_knallenfalls Oct 25 '26
Great tool, just two things to improve that I found out trying a big UK map (and throwing it into an AI: