Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Pressure Plates and Hatches  (Read 694 times)

HermitDwarf

  • Bay Watcher
    • View Profile
Pressure Plates and Hatches
« on: November 01, 2010, 03:18:49 pm »

I built a pressure plate with the trigger being 0-4 water.
I connected it to a closed hatch.

After it's connected, the hatch doesn't open. I set the plate tile to be a pond and dwarves dumped some water on it so the plate now has 1/7 water on it. The hatch still hasn't opened.

Why?
Logged

Fayrik

  • Bay Watcher
    • View Profile
Re: Pressure Plates and Hatches
« Reply #1 on: November 01, 2010, 03:24:34 pm »

Sounds like the hatch will only trigger if a state-change has occurred. You need to have 5/7 water for a state change, then 4/7 water for it to start.
Logged
So THIS is how migrations start.
"Hey, dude, there's this crazy bastard digging in the ground for stuff. Let's go watch."

Reese

  • Bay Watcher
    • View Profile
Re: Pressure Plates and Hatches
« Reply #2 on: November 01, 2010, 03:38:47 pm »

I built a pressure plate with the trigger being 0-4 water.
I connected it to a closed hatch.

After it's connected, the hatch doesn't open. I set the plate tile to be a pond and dwarves dumped some water on it so the plate now has 1/7 water on it. The hatch still hasn't opened.

Why?

Because the plate has already triggered- it only sends a signal at the time it triggers, and needs to be in the non triggering condition (5/7 or greater water) for atleast 100 steps in order to reset.  It will have triggered almost immediately after it was built.

You might want to try remaking it to trigger on 1/7-4/7 water instead, that way you can initially trigger it with a bucket full of water, and it should not become dry again if I am correct in my guess that it's meant to regulate water flow to prevent flooding.
Logged
All glory to the Hypno-Toady!

Sphalerite

  • Bay Watcher
    • View Profile
    • Drew's Robots and stuff
Re: Pressure Plates and Hatches
« Reply #3 on: November 01, 2010, 03:50:12 pm »

Triggers (pressure plates and levers) send momentary 'on' and 'off' commands when they change state.  They don't send continuous commands, and they don't send an initial command when first built.  A building (such as a hatch) connected to a trigger will only change state when the trigger changes state.

You can connect multiple triggers to a single target, and they won't interfere with each other.  The target will just obey the last command it gets.  (Actually, devices which have a delay on opening or closing will ignore new commands received during the delay time, which can be a problem sometimes).  You should be able to build a lever and connect it to the hatch to open the hatch initially.  The hatch will then close when the pressure plate triggers 'off' when the water level goes above 4/7.
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.