Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Two Gates, 1 Level, Alternate Opening?  (Read 2184 times)

Two Gates, 1 Level, Alternate Opening?
« on: May 13, 2012, 06:52:57 pm »

Would it be possible to build a gate like the following: (W = Wall, G = Gate, X = Empty Space)

WGGGW
WXXXW
WXXXW
WXXXW
WGGGW

But have 1 lever operate both gates (which I know is possible in and of itself) but on alternating er... "frequencies?" So that when 1 gate is open, the other gate is closed? You know, like a pressure hatch or something.

I was thinking I would build 1 gate, link it to the lever, close the gate, remove the link, build the other gate and then link both back to the lever, but I am not sure if an open gate losing the lever link will remain open or immediately close.
Logged

Eric Blank

  • Bay Watcher
  • *Remain calm*
    • View Profile
Re: Two Gates, 1 Level, Alternate Opening?
« Reply #1 on: May 13, 2012, 06:55:30 pm »

Yeah, just pull the lever after linking it to the first bridge/floodgate set, then link it to the other one. Then you can link both of them to a pressure plate(s)
Logged
I make Spellcrafts!
I have no idea where anything is. I have no idea what anything does. This is not merely a madhouse designed by a madman, but a madhouse designed by many madmen, each with an intense hatred for the previous madman's unique flavour of madness.

Sphalerite

  • Bay Watcher
    • View Profile
    • Drew's Robots and stuff
Re: Two Gates, 1 Level, Alternate Opening?
« Reply #2 on: May 13, 2012, 06:59:20 pm »

Yeah, just pull the lever after linking it to the first bridge/floodgate set, then link it to the other one.

This does not work.  Levers do not send toggle commands, they send open/close commands.  When you pull the lever the second time, both gates will just get set to the same status (open or closed).

There are two ways to do this.  The first is to use some type of dwarven water logic device to invert the action of the lever.  Connect the lever to directly to one of the gates, and also to the input to the inverter.  Connect the output of the inverter to the second gate.  This requires you to build an inverter mechanism, which is not simple.

The second, easier way to do this is to use a raising drawbridge for one of your gates, and a row of floodgates for the other.  Raising bridges and floodgates have opposite actions - the bridge will be lowered when the floodgates are closed - so this will get you the airlock system you're trying to get.
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.

Urist Da Vinci

  • Bay Watcher
  • [NATURAL_SKILL: ENGINEER:4]
    • View Profile
Re: Two Gates, 1 Level, Alternate Opening?
« Reply #3 on: May 13, 2012, 07:21:29 pm »

Another way to do this is with 2 retracting bridges. On one side, the bridge crosses a moat when extended. On the other side, the bridge covers a ramped opening going down to the fort when extended.

Sadrice

  • Bay Watcher
  • Yertle et al
    • View Profile
Re: Two Gates, 1 Level, Alternate Opening?
« Reply #4 on: May 13, 2012, 07:53:48 pm »

A disadvantage of the drawbridge design is that dwarves can be crushed by it if they are on it when it raises.


A disadvantage of the inverter design is that there will be a delay, so they won't close at the same time.
Logged
Re: Two Gates, 1 Level, Alternate Opening?
« Reply #5 on: May 13, 2012, 08:10:19 pm »

Yeah, just pull the lever after linking it to the first bridge/floodgate set, then link it to the other one.

This does not work.  Levers do not send toggle commands, they send open/close commands.  When you pull the lever the second time, both gates will just get set to the same status (open or closed).

There are two ways to do this.  The first is to use some type of dwarven water logic device to invert the action of the lever.  Connect the lever to directly to one of the gates, and also to the input to the inverter.  Connect the output of the inverter to the second gate.  This requires you to build an inverter mechanism, which is not simple.

The second, easier way to do this is to use a raising drawbridge for one of your gates, and a row of floodgates for the other.  Raising bridges and floodgates have opposite actions - the bridge will be lowered when the floodgates are closed - so this will get you the airlock system you're trying to get.

I am rather new to fortress crafting (I used to be an Adventurer...)But then I took an arrow in the knee.
Is the inverter an object my dwarves craft, or something I must build using the mechanics of the game and clever building? Both are fine; I just need to know what I'm doing.
« Last Edit: May 13, 2012, 08:11:53 pm by TheCoolSideofthePIllow »
Logged

Sphalerite

  • Bay Watcher
    • View Profile
    • Drew's Robots and stuff
Re: Two Gates, 1 Level, Alternate Opening?
« Reply #6 on: May 13, 2012, 08:30:22 pm »

An inverter gate is something you need to build from various devices and furniture, typically some combination of a water-sensing pressure plate, and doors/floodgates/floor hatches to let water on and off the pressure plate.  I recommend using a combination of bridges and floodgates instead.
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.

kingubu

  • Bay Watcher
    • View Profile
Re: Two Gates, 1 Level, Alternate Opening?
« Reply #7 on: May 14, 2012, 04:59:28 am »

Another way to do this is with 2 retracting bridges. On one side, the bridge crosses a moat when extended. On the other side, the bridge covers a ramped opening going down to the fort when extended.

This is the way I do it, except the second bridge covers a ramp going up.  Dwarfs won't get smashed by retracting bridges, and buildingdestroyers can't break in.
Logged

gzoker

  • Bay Watcher
    • View Profile
Re: Two Gates, 1 Level, Alternate Opening?
« Reply #8 on: May 14, 2012, 05:24:04 am »

This is basically what was said before, only it can't crush your dwarves, and customizable. It doesn't need an inverter.
You can use more hatches next to each other if you need a wider corridor. Also the hatch cannot be destroyed from below - switch directions if that is a problem.
Only downside is it needs more mechanisms for wider corridors, and it's two Z level High.
Spoiler (click to show/hide)

EDIT: typo
« Last Edit: May 14, 2012, 05:32:44 am by gzoker »
Logged
Active Interactions: RAIDER_MADNESS

Twangykid

  • Bay Watcher
    • View Profile
Re: Two Gates, 1 Level, Alternate Opening?
« Reply #9 on: May 14, 2012, 05:28:20 am »

I usually make, and I made this for markedangels, a raising bridge on one end, and a retracting bridge over a channel on the other.
Logged

blue sam3

  • Bay Watcher
    • View Profile
Re: Two Gates, 1 Level, Alternate Opening?
« Reply #10 on: May 14, 2012, 08:52:29 am »

A disadvantage of the drawbridge design is that dwarves can be crushed by it if they are on it when it raises.


A disadvantage of the inverter design is that there will be a delay, so they won't close at the same time.

You could put a delay into the uninverted signal to sync them up again.
Logged

Arkenstone

  • Bay Watcher
  • Perfect Clear Diamond
    • View Profile
Re: Two Gates, 1 Level, Alternate Opening?
« Reply #11 on: May 14, 2012, 10:22:49 am »

A disadvantage of the inverter design is that there will be a delay, so they won't close at the same time.

You could put a delay into the uninverted signal to sync them up again.

What you're looking for is called a "buffer" gate.  Simply build an inverter gate, except with the output pressure plate set to trigger when there is water flowing over it.


But if you're expecting dwarves to be able to use it without micro, I think you'd be better off with a different gate design.
Logged

Quote from: Retro
Dwarven economics are still in the experimental stages. The humans have told them that they need to throw a lot of money around to get things going, but every time the dwarves try all they just end up with a bunch of coins lying all over the place.

The EPIC Dwarven Drinking Song of Many Names

Feel free to ask me any questions you have about logic/computing; I'm majoring in the topic.