Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2]

Author Topic: Possible cause for stagnant river bug  (Read 6121 times)

reilwin

  • Bay Watcher
    • View Profile
Re: Possible cause for stagnant river bug
« Reply #15 on: April 20, 2012, 05:52:23 pm »

Again, these would nearly all be solved by a simple check for the "flow" tag.

*shrug

Would it really? What would happen to water reservoirs then which don't employ a flowing water source? Only flowing water can avoid being stagnant? What if a stagnant pool suddenly starts flowing because you're draining it? Is it still stagnant? What if the water from the stagnant pool was drained into another reservoir and stopped flowing?

Your idea is appealing in its simplicity but there are several edge cases which make it a bit more complicated than it seems.
Logged

wierd

  • Bay Watcher
  • I like to eat small children.
    • View Profile
Re: Possible cause for stagnant river bug
« Reply #16 on: April 20, 2012, 06:01:03 pm »

See my original post.

Stagnant water, by definition, is water that isn't flowing. That it usually connotates "yucky" is due to the fact that stagnant water doesn't "breathe" the same way, and accumulates toxins from microbes living in it.

Turbulent water is a harsher environment for micrbial colonies, and is cleaner than stagnant water.  Any water left to stand will eventually become stagnant. This includes wells open to the surface.

In this case, the stagnant water plauge is just more realistic. Moving water is never stagnant though. It can be contaminated, but is never stagnant.

See the wiki page on water stagnation


For stagnant reservoirs, etc, a system to "flush" them, and thus set the "flow" tag should, by the same simple check, remove the stagnant tag from the water.  Eg, to fix a broken well, just flush it occasionally.

« Last Edit: April 20, 2012, 06:24:22 pm by wierd »
Logged

Monk321654

  • Bay Watcher
  • [COMPUTER_DEPENDENT]
    • View Profile
Re: Possible cause for stagnant river bug
« Reply #17 on: April 20, 2012, 06:39:32 pm »

Isn't there a Bug/Feature where any water obtained from a well is automaticly filtered, or was that fixed already?
Logged
This is a side-effect of dwarven animal training (hit animal with hammer until it forgets that it hates you, then lovingly cuddle it).

I'm not your average Bay12er. I care about my drunken midgets.

wierd

  • Bay Watcher
  • I like to eat small children.
    • View Profile
Re: Possible cause for stagnant river bug
« Reply #18 on: April 20, 2012, 06:49:19 pm »

That's passing through a screwpump.  Wells can bucket up stagnant water, which greatly increases rate of infection if used by a hospital.

Logged

NW_Kohaku

  • Bay Watcher
  • [ETHIC:SCIENCE_FOR_FUN: REQUIRED]
    • View Profile
Re: Possible cause for stagnant river bug
« Reply #19 on: April 20, 2012, 06:54:14 pm »

You have to completely replace all walls and floors with constructed walls and floors before water touches them, or else they will be marked as "stagnant" tiles permanently if you are using a screw pump, so if you miss even a single tile, even using a screw pump is just going to be pumping stagnant water. 

Plus, once a tile is marked "stagnant", it basically stays stagnant forever, even if fresh water from an entirely new source is poured into dry tiles - and that stagnancy will spread backwards to infect the whole water source, as well.
Logged
Personally, I like [DF] because after climbing the damned learning cliff, I'm too elitist to consider not liking it.
"And no Frankenstein-esque body part stitching?"
"Not yet"

Improved Farming
Class Warfare

Sphalerite

  • Bay Watcher
    • View Profile
    • Drew's Robots and stuff
Re: Possible cause for stagnant river bug
« Reply #20 on: April 20, 2012, 06:55:11 pm »

A problem with using the flow tag to make water not stagnant would be that detection of flowing water in DF is really not very reliable.  As many designs for dwarven water generators have shown, it is possible for a completely sealed body of water to still be considered to be flowing by the game engine.  Just having some of the water at a different depth could be enough to trigger the flow tag and make a murky pool no longer stagnant.
Logged
Any intelligent fool can make things bigger and more complex... It takes a touch of genius --- and a lot of courage to move in the opposite direction.

wierd

  • Bay Watcher
  • I like to eat small children.
    • View Profile
Re: Possible cause for stagnant river bug
« Reply #21 on: April 20, 2012, 07:06:56 pm »

You have to completely replace all walls and floors with constructed walls and floors before water touches them, or else they will be marked as "stagnant" tiles permanently if you are using a screw pump, so if you miss even a single tile, even using a screw pump is just going to be pumping stagnant water. 

Plus, once a tile is marked "stagnant", it basically stays stagnant forever, even if fresh water from an entirely new source is poured into dry tiles - and that stagnancy will spread backwards to infect the whole water source, as well.

This is a problem with "stagnant" and "flow" being non-exclusive, which linguistically they are. Its an implementation problem.  Having flow hard-kill stagnation would solve the problem, as flow over the stagnant marked tile would kill the stagnant mark.

Sphalerites poignant observation that not "level" pools of a uniform fullness (moving depth tiles) would trigger the flow flag, and thus "clean" the pool is a problem of note, but also not far from reality either.  This is exactly what keeps freshwater lakes from being stagnant; wind makes waves, which stirs the water up, and keeps it moving. However, a murky pool simply isn't big enough for wind to be a reasonable explanation for flow, unless the wind is galeforce typhoon-like outside. 

Perhaps a threshold on flow? Greater than 3 depth units per cycle tick?
Logged

CodexDraco

  • Bay Watcher
  • [SARCASTIC]
    • View Profile
Re: Possible cause for stagnant river bug
« Reply #22 on: April 20, 2012, 07:16:07 pm »

The stagnant flag could be applied to the water itself instead of the tile it's in. So the flowing single water "block" would be cleaned but the rest would be left stagnant.
Logged
Finely minced dwarven wine... what?

rtg593

  • Bay Watcher
    • View Profile
Re: Possible cause for stagnant river bug
« Reply #23 on: April 20, 2012, 07:24:28 pm »

Can a site have both stagnant and salty water?  My current oceanside fortress has several murky pools, none of which seem to be stagnant.  They're probably all salty instead.

Yup. My oceanside embark had a fresh water river and stagnant pools. I connected a pool, river started to become stagnant. I ran an ocean breached tunnel underground and opened it up under that spot, and it started spreading as stagnant salt water.


You have to completely replace all walls and floors with constructed walls and floors before water touches them, or else they will be marked as "stagnant" tiles permanently if you are using a screw pump, so if you miss even a single tile, even using a screw pump is just going to be pumping stagnant water. 

Plus, once a tile is marked "stagnant", it basically stays stagnant forever, even if fresh water from an entirely new source is poured into dry tiles - and that stagnancy will spread backwards to infect the whole water source, as well.

BZZZZ. As long as the water coming out isn't touching the same tile as a stagnant water tile, it will be fresh. Not construction needed.

I just did this on my previous fort to gain water for a well without having to breach the caverns right off the bat.
« Last Edit: April 20, 2012, 07:28:13 pm by rtg593 »
Logged
Is it because light travels faster than sound,
that people appear bright until you hear them speak?

wierd

  • Bay Watcher
  • I like to eat small children.
    • View Profile
Re: Possible cause for stagnant river bug
« Reply #24 on: April 20, 2012, 07:29:27 pm »

The problem there is that it looks like stagnant and salty are being treated similarly.

Flows of saline water are perfectly normal and natural, while flows of "stagnant" water are literally impossible.

Because the game needs to remember that an ocean is salty, it can't let the player magically clean it all up using screwpumps and clever archetecture to eradicate all the salt. That's why it marks the container tile.

The problem here is treating stagnacy the same as salinity. They are not the same thing. Agitating stagnant water will actually promote improvements in water quality, even without filtration. The agitation introduces oxygen and other atmospheric radicals into the water which break down the festering microbial goop in the stagnant water, eliminating it from the water as co2, and solid precipitates which nucleate and settle, despite the agitation. (See eg, "river silt").

Thought experiment:

Fishtank. Week with lunged fish (say, mudpuppies, a beta, whatever) in a tank away from home. The filter/bubbler fails.

What does the tank look like when you get back?  Does the filter pack in the filter really retard all the funk growing, or is it just the water moving?
Logged
Pages: 1 [2]