Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Rivers and Floods!  (Read 369 times)

Severinka

  • Escaped Lunatic
    • View Profile
Rivers and Floods!
« on: April 10, 2013, 07:03:18 am »

I am curious as to how rivers actually 'flow' in Dwarf Fortress? I would like to see some form of stream/river velocity that makes the center of the stream faster flowing while the edges less so. This would be a good feature for fishing as larger fish potentially could be in deeper water of a river.
Also there doesn't seem to be any flooding, (from my experiences I have never had an above ground river/stream flood). This should be a feature in biomes that are tropical and are susceptible to large storms or monsoons. Flooding would be a cool feature as there could be severe almost random flash flooding, as well as seasonal flooding of floodplains.
I know there are plans for much later release Arcs that will cover weather and so on, but there is no mention of flooding in the development log.

I have several more ideas about rivers, erosion and flooding but I will leave them for a future thread.
Logged

JanusTwoface

  • Bay Watcher
  • murbleblarg
    • View Profile
    • jverkamp.com
Re: Rivers and Floods!
« Reply #1 on: April 10, 2013, 11:29:41 am »

Here's a page on the Wiki that describes how water currently functions: Flow

Basically, water blocks teleport from where they are to a contiguously connected open tile. That does mean that it could / will skip across quite a wide area though, which causes some funny issues with exactly how flow works in the middle of a lake with input on on end and output on the other for example (read: it doesn't really). Natural flow in rivers and streams (which can be used to power water wheels) works somewhat differently, but that seems to be a hard coded thing.

It's not exactly a perfect system and you do get some strange artifacts from time to time, but considering how well it compares performance wise to the alternatives (a purely cellular automaton based system for example), it's probably the lesser evil. At least this way the water flows at least semi-naturally. And as an added bonus, pressure works!

So it's a good suggestion to make water more realistic, but I'm not sure how practical it actually is from a performance standpoint. Water is hard to do in just about any game like this. At least it's better than how Minecraft does it though. :)

So far as flooding, that would be neat--either natural river flooding or perhaps flooding based on torrential rains. Interestingly, the first was actually in much older versions of DF (specifically the 0.23.130.23a release and earlier), back before the z-levels and when there was a consistent order of things you found in a mountain. The river flooded yearly, and was capable of sweeping dwarves and items off of bridges and off into the mountain.

If you want to see what other people have thought about floods, it's been discussed several times before:
(These are from the first page of searching 'flooding' in the search box up at the top right. There are about 12 more pages... :) It's a pretty popular idea.)
Logged
You may think I'm crazy / And I think you may be right
But life is ever so much more fun / If you are the crazy one

My blog: Photography, Programming, Writing
Novels: A Sea of Stars, Confession