Search found 9 matches

by Hafting
Mon Oct 23, 2023 9:32 pm
Forum: Wishlist
Topic: More terrain types
Replies: 11
Views: 92381

Re: More terrain types

Made some volcanoes. I don't know a way to make them erupt. They are high reward in that they provide lots of production - volcanoes bring unusual stuff like sulphur to the surface. And they are a bit difficult in that they don't allow roads.
Image
by Hafting
Mon Oct 16, 2023 8:36 pm
Forum: Wishlist
Topic: More terrain types
Replies: 11
Views: 92381

Re: More terrain types

Making new terrain turned out to be easier than I thought. Well, as long as I don't need to be a graphics artist. (New hilltypes is simply the hold hill, but with the color modified to match the base tile.) hilltypes.png Here are some deserts with desert hills in them, as well as tundra hills and sn...
by Hafting
Mon Oct 16, 2023 9:44 am
Forum: Wishlist
Topic: More terrain types
Replies: 11
Views: 92381

Re: More terrain types

The "Desert Hill", "Forested Hill" and "Arctic Hill" would be functionally the same as a mountain? Movement cost is different though. Mountain is 010, same as desert, but can't be irrigated and doesn't produce trade when road is built (does get +1 productivity from rai...
by Hafting
Sat Oct 14, 2023 10:30 am
Forum: Contribution
Topic: New terrain generator
Replies: 11
Views: 12635

Re: New terrain generator

Interesting comparison of maps. If you want more city-friendly terrain, consider increasing the "temperate" parameter. That way, you get less icy regions. Obviously, increasing the land percentage will also help. For example: tergen testmap 0 0 160 90 0 40 30 70 The 40% land setting thicke...
by Hafting
Fri Oct 13, 2023 3:31 pm
Forum: Wishlist
Topic: More terrain types
Replies: 11
Views: 92381

More terrain types

Low land has many types (swamp, forest, grass, plain, desert, jungle). But there is only one hill, and one mountain. I have made a heightmap-based terrain generator, and find this limiting. A desert or forest isn't always flat, for example. Proposed terrain types: desert hill Barren like the desert,...
by Hafting
Fri Oct 13, 2023 12:24 pm
Forum: Contribution
Topic: New terrain generator
Replies: 11
Views: 12635

Re: New terrain generator

I have fixed some bugs that gave flat continents with isometric topologies, as well as some other bugs. If you want mostly landlocked cities and realism - well, the real world has about 71% oceans. If you want to keep a realistic amount of oceans too, you need to make rather large maps. Or you could...
by Hafting
Thu Oct 12, 2023 11:31 am
Forum: Contribution
Topic: New terrain generator
Replies: 11
Views: 12635

Re: New terrain generator

Here is a working sincosf(). void sincosf(float x, float *sin, float *cos) { *sin = sinf(x); *cos = cosf(x); } As for terrain realism; I agree that my terrain is not perfectly realistic. I have some ideas for improvements, but I also have real work to do. It could take some time. When you say that m...
by Hafting
Wed Oct 11, 2023 9:53 am
Forum: Contribution
Topic: New terrain generator
Replies: 11
Views: 12635

Re: New terrain generator

Thanks for testing. The compile error is strange. I include math.h, which defines sincosf. And the "-lm" ought to link math libraries. Perhaps Mac OS X does things differently? I don't have a mac, but I'll be happy to take som tips from anyone that do. sincosf() can be replaced with sincos...
by Hafting
Mon Oct 09, 2023 12:35 pm
Forum: Contribution
Topic: New terrain generator
Replies: 11
Views: 12635

New terrain generator

I made a new terrain generator, which can be downloaded from https://github.com/Hafting/tergen . I got bored with the built-in terrain generation, and tried to improve. Tergen makes a height map with some continents, and then simulates plate tectonics to raise mountain ranges at plate boundaries. We...