Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: self filling cistern  (Read 1835 times)

timotheos

  • Bay Watcher
    • View Profile
self filling cistern
« on: December 01, 2011, 04:10:47 pm »

I tried to set up a cistern that would refill itself as I used it up without me having to keep an eye on it. It seems I messed up and now my hospital and workshops are underwater. and I can't get to the emergency cut off lever.
I had a pressure plate set to water level 3 on the bottom level another to water level 5 on the z level above both linked to a flood gate by the river 5 levels higher. I thought this would keep the water between those 2 limits.
What piece of dwarven idiocy did I miss? and how do i fix it for next time?
Logged

proxn_punkd

  • Bay Watcher
  • Still a better dove story than Twilight
    • View Profile
Re: self filling cistern
« Reply #1 on: December 01, 2011, 04:16:13 pm »

Triggering the pressure plates tells them to open a connected floodgate, not to shut it. So when your 5-deep pressure plate was triggered, it sent a signal to open the floodgate that the 3-deep pressure plate had already opened.
Logged

Sphalerite

  • Bay Watcher
    • View Profile
    • Drew's Robots and stuff
Re: self filling cistern
« Reply #2 on: December 01, 2011, 04:18:34 pm »

Pressure plates don't send toggle commands, they send an 'open' command when their conditions are met, and a 'close' command when their conditions are not met.  If you set a pressure plate to activate when the water is above 5/7, it will send an 'open' command when the water goes from 4/7 to 5/7 (or above), and a 'close' command when the water goes from 5/7 to 4/7 (or below).  These are one-time commands, that aren't sent constantly when the conditions are met, so the floodgate will essentially follow the most recent command it gets.

The way to do what you're trying to do is with a single floodgate, set to trigger when the water is say 5/7 or below.  It will open when the water is less than that, and close when it is higher.  I've found this to not be terribly reliably however.  It's much safer to use a pressure break through a diagonal passage and then just let the cistern fill by gravity with no pressure plate required.
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.

timotheos

  • Bay Watcher
    • View Profile
Re: self filling cistern
« Reply #3 on: December 01, 2011, 04:32:45 pm »

Ok that's confusing because the first (3/7) plate on the lower level did close the flood gate as the water went from 0/7 past 3/7 and I had to re open the gate with the lever. The higher level 5/7 plate then also shut the flood gate when its level was reached.
Logged

Garath

  • Bay Watcher
  • Helping to deforest the world
    • View Profile
Re: self filling cistern
« Reply #4 on: December 01, 2011, 04:38:49 pm »

always put your emergency lever somwhere where the water cant get to unless in a nighmare, not anywhere near the instalation. I think you can set notes, which are supposed to be used militairy, but are great for noting which lever toggles what
Logged
Quote from: Urist Imiknorris
Jam a door with its corpse and let all the goblins in. Hey, nobody said it had to be a weapon against your enemies.
Quote from: Frogwarrior
And then everyone melted.

eggrock

  • Bay Watcher
    • View Profile
Re: self filling cistern
« Reply #5 on: December 01, 2011, 04:43:32 pm »

The Repeater is an easy way to autofill a cistern and trigger your spike rooms. I wouldn't use the exact design on the wiki but it's a good concept (bridge vs. floodgate triggers.)
Logged

Triaxx2

  • Bay Watcher
    • View Profile
Re: self filling cistern
« Reply #6 on: December 01, 2011, 06:26:14 pm »

Why not fill with a pump from a lower level? That'll keep the water from flowing higher than the pump? Plus done right, the pump will power itself.
Logged

Sutremaine

  • Bay Watcher
  • [ETHIC:ATROCITY: PERSONAL_MATTER]
    • View Profile
Re: self filling cistern
« Reply #7 on: December 01, 2011, 06:42:05 pm »

How about doors? They open and close immediately, so water shifting back and forth over the pressure plate and toggling it constantly won't spam the door with commands it can't carry out until it's done executing the last one.

Depressurising the water at the appropriate level is probably the safest option. Alternatively, you could have a pressure plate on the level above the reservoir set to close the floodgate if it detects any water at all.
Logged
I am trying to make chickens lay bees as eggs. So far it only produces a single "Tame Small Creature" when a hen lays bees.
Honestly at the time, I didn't see what could go wrong with crowding 80 military Dwarves into a small room with a necromancer for the purpose of making bacon.

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: self filling cistern
« Reply #8 on: December 01, 2011, 08:43:26 pm »

Pressure plates don't send toggle commands, they send an 'open' command when their conditions are met, and a 'close' command when their conditions are not met.

An important distinction (which you probably intended to include but simply forgot): they send their close command after their conditions have not been met for 100 ticks (the same delay between pulling a lever and a floodgate/bridge/whatever responding).
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

DVeL

  • Bay Watcher
    • View Profile
Re: self filling cistern
« Reply #9 on: March 06, 2012, 12:13:33 pm »

How about doors? They open and close immediately, so water shifting back and forth over the pressure plate and toggling it constantly won't spam the door with commands it can't carry out until it's done executing the last one.

Depressurising the water at the appropriate level is probably the safest option. Alternatively, you could have a pressure plate on the level above the reservoir set to close the floodgate if it detects any water at all.

And how can i set pressure plate to CLOSE floodgate? My own attempts never succeeded.
Logged

NecroRebel

  • Bay Watcher
    • View Profile
Re: self filling cistern
« Reply #10 on: March 06, 2012, 12:24:45 pm »

And how can i set pressure plate to CLOSE floodgate? My own attempts never succeeded.
You use a device called an inverter. Basically, these devices involve a pressure plate linked to powered disengaged gear assembly that is, in turn, linked to a screw pump. In the screw pump's input tile is a pressure plate that triggers on 7/7 water that is linked to the floodgates you want to close when the first pressure plate is triggered and 7/7-depth water. When the first pressure plate is triggered, it engages the gear assembly, thus powering the screw pump and pulling the water off the second pressure plate, thus causing it to turn off and send a "close" signal to the floodgates.

Alternatively, you use single-tile drawbridges, which always raise (forming impassible tiles) when floodgates open and lower (forming passable tiles) when floodgates close. Much simpler.
Logged
A Better Magma Pump Stack: For all your high-FPS surface-level magma installation needs!

Sphalerite

  • Bay Watcher
    • View Profile
    • Drew's Robots and stuff
Re: self filling cistern
« Reply #11 on: March 06, 2012, 12:27:33 pm »

How about doors? They open and close immediately, so water shifting back and forth over the pressure plate and toggling it constantly won't spam the door with commands it can't carry out until it's done executing the last one.

Depressurising the water at the appropriate level is probably the safest option. Alternatively, you could have a pressure plate on the level above the reservoir set to close the floodgate if it detects any water at all.

And how can i set pressure plate to CLOSE floodgate? My own attempts never succeeded.

Set the pressure plate to trigger when there is no water (level 0-0 or 0-1).  Link it to the floodgate.  Also build a lever and link it to the floodgate.  Pull the lever, this will open the floodgate.  When the pressure plate detects water, it will trigger to the 'off' state and send a 'close' command to the floodgate.
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.

GoldenShadow

  • Bay Watcher
    • View Profile
Re: self filling cistern
« Reply #12 on: March 06, 2012, 12:30:40 pm »

Use the diagonal opening trick. Any water flowing through will be unpressurized. So you can leave your pump running forever, but make the water enter your cistern from a diagonal, and it will never raise above the point of entry, no matter how high the water source is.
Logged

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: self filling cistern
« Reply #13 on: March 06, 2012, 12:32:26 pm »

Just a piece of advice here, and that is that you don't want to use floodgates or bridges for automatic cisterns. This is due to the open/close delay that can really cause some problems. Example:
1)Water is low and triggers pressure plate to open gate
2)While gate is waiting to open, a 1/7 of water moves over and deactivates the pressure plate, sending the close command.
3)This command is then ignored because the gate is still opening.
4)Gate remains open and fort floods with watery death.

This is simplified down of course, but the point is that bridges and floodgates when dealing with a multi /7th's reservoir can get really messed up due to the delay. As such I strongly suggest that you either use a door for all of your reservoir openings, or simply connect it to a lever that you open once every few years to refill.

Also Rather then using 2 pressure plates I'm fairly certain that you can just set a minimum and a maximum for a single plate, so that it is only triggered when the water is between those two values and is "off" when the water is above or below them.
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

DVeL

  • Bay Watcher
    • View Profile
Re: self filling cistern
« Reply #14 on: March 06, 2012, 01:56:04 pm »

How about doors? They open and close immediately, so water shifting back and forth over the pressure plate and toggling it constantly won't spam the door with commands it can't carry out until it's done executing the last one.

Depressurising the water at the appropriate level is probably the safest option. Alternatively, you could have a pressure plate on the level above the reservoir set to close the floodgate if it detects any water at all.

And how can i set pressure plate to CLOSE floodgate? My own attempts never succeeded.

Set the pressure plate to trigger when there is no water (level 0-0 or 0-1).  Link it to the floodgate.  Also build a lever and link it to the floodgate.  Pull the lever, this will open the floodgate.  When the pressure plate detects water, it will trigger to the 'off' state and send a 'close' command to the floodgate.

Wow, thank you! It really helped. I thought about the same design myself, with one small difference - I tried to set 0-7 water level, and the floodgate didn`t respond. Now i get the meaning of the second number =)
DF mechanics became a bit more clear.
Logged