Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Mechanicle logic?  (Read 798 times)

Ciber_Ninja

  • Bay Watcher
    • View Profile
Mechanicle logic?
« on: October 20, 2009, 07:16:19 pm »

a question
I if i hook up a gear to a presure plate how will it work?
will it only transmit when being touched?
also can someone post a diagram of the gates needed to add bianary numbers?
Logged

dogstile

  • Bay Watcher
    • View Profile
Re: Mechanicle logic?
« Reply #1 on: October 20, 2009, 07:21:35 pm »

Answered
« Last Edit: October 21, 2009, 02:53:25 am by dogstile »
Logged
my champion is now holding his artifact crossbow by his upper left leg and still shooting with is just fine despite having no hands.
What? He's firing from the hip.

Malicus

  • Bay Watcher
    • View Profile
Re: Mechanicle logic?
« Reply #2 on: October 20, 2009, 07:27:16 pm »

Pressure plates don't need to be connected to anything with gears or axles.  They work like levers that are activated differently.  They only need to be connected to something through their own menu (q over them as if they were a workshop, mechanics do the work, two mechanisms (one for the plate, one for the object it's connected to) are needed).
Logged

Ciber_Ninja

  • Bay Watcher
    • View Profile
Re: Mechanicle logic?
« Reply #3 on: October 20, 2009, 07:28:49 pm »

my secondary goal here is to draw on graph paper all the gates needed to compute up to a 3 byte number
basicly any number up to 999
no i mean i read that gears when hooked up to things toggle diffrently
like if i pull one lever into on position it turns on but when i pull another it turns off
Logged

Malicus

  • Bay Watcher
    • View Profile
Re: Mechanicle logic?
« Reply #4 on: October 20, 2009, 07:32:05 pm »

Oh, that.

For most objects, levers and pressure plates send a distinct on or off signal to everything they are connected to, so one lever won't open one floodgate and close another.

However, gears get toggled by levers and pressure plates instead of getting set specifically to on or off, so it IS possible for one lever or pressure plate to turn one gear off and another gear on, or for one lever/plate to turn a gear on and another to turn it off.
Logged

Ciber_Ninja

  • Bay Watcher
    • View Profile
Re: Mechanicle logic?
« Reply #5 on: October 20, 2009, 07:57:35 pm »

if watter is on a plate and activates a gear will the gear h\keep going when the water moves off the plate?
Logged

Malicus

  • Bay Watcher
    • View Profile
Re: Mechanicle logic?
« Reply #6 on: October 20, 2009, 08:04:19 pm »

A plate being activated sends one signal, and the plate no longer being activated sends the opposite signal.  In the case of a gear assembly, it will get toggled both times.  So, no, if water on a pressure plate activated the gear, then it will stop when there is no longer sufficient water on the plate.

The exception is if you set the plate to "One use only" with (o) when placing it.  In that case, it will activate when its condition is met, then it will never do anything again, so the water being removed wouldn't deactivate it.

(There may be timing issues.  I haven't really done much with pressure plates.  Also, I can't help with the binary addition thing.)
Logged

Albedo

  • Bay Watcher
  • Menacing with spikes of curmudgeonite.
    • View Profile
Re: Mechanicle logic?
« Reply #7 on: October 20, 2009, 08:05:35 pm »

CN - have you looked up "computing" in the wiki?

even better, can someone post a tutorial for how machine parts actually work (no, not the wiki, the wiki is a reference, it doesn't explain well)

The wiki is accurate and complete (or nearly so), the problem is that it's often written by folks who already understand the topic, and so it doesn't paint the "simple picture" really well.

Okay, but you're hijacking this thread - the two topics are miles apart, highly advanced vs absolutely basic.  CN's OP should be addressed here - let's answer yours in another thread.  Stand by...

edit: see http://www.bay12games.com/forum/index.php?topic=43663.0

« Last Edit: October 20, 2009, 08:37:19 pm by Albedo »
Logged

Kanddak

  • Bay Watcher
    • View Profile
Re: Mechanicle logic?
« Reply #8 on: October 20, 2009, 08:13:46 pm »

Actually, the wiki is pretty damn theoretical about logic, and strays pretty far from the designs that were actually used in the working adders that have been built.

DENIAC by gregorah, 6-bit adder using mechanical logic powering fluid-pumping outputs.
Numberabbey by yours truly, 8-bit adder using pure fluid logic.
Logged
Hydrodynamics Education - read this before being confused about fluid behaviors

The wiki is notoriously inaccurate on subjects at the cutting edge, frequently reflecting passing memes, folklore, or the word on the street instead of true dwarven science.

Ciber_Ninja

  • Bay Watcher
    • View Profile
Re: Mechanicle logic?
« Reply #9 on: October 20, 2009, 08:22:06 pm »

Im building a fort with a big entrance hall
5 wide
I want to have enemy sensing presure plates across the floor
when any of them are active i want a signal to be sent that activates a sequence of traps
reducing the 5 presure plates into one output seems to require a minimum of 4 or gates
can you think of any faster way?
Logged

Malicus

  • Bay Watcher
    • View Profile
Re: Mechanicle logic?
« Reply #10 on: October 20, 2009, 08:24:31 pm »

You CAN hook all five pressure plates up to the same things.  Objects can have multiple levers/plates controlling them.

Edit to add: If you do this, then you should probably control your traps with hatches or doors, so that multiple pressure plates being activated don't flip a gear between on and off.
« Last Edit: October 20, 2009, 08:29:46 pm by Malicus »
Logged

Albedo

  • Bay Watcher
  • Menacing with spikes of curmudgeonite.
    • View Profile
Re: Mechanicle logic?
« Reply #11 on: October 20, 2009, 08:42:14 pm »

My offering of "basic mechanics" is here:

http://www.bay12games.com/forum/index.php?topic=43663.0

What Mal' said.  Connect all 5 plates directly to the same object. 10 mechanisms, no problem.

(I like a support that collapses - the game pauses, announces something like "A section of the fortress has collapsed", and centers on the location.  Unlike other traps, you can't miss that, and it can easily knock invaders unconscious, giving your dwarfs extra time to respond if needed.)

Actually, the wiki is pretty damn theoretical about logic, and strays pretty far from the designs that were actually used in the working adders that have been built.

Only because sages such as yourself have not contributed their wisdom, insight and experience.  Feel free - if an editor is unsure about their writing skills, they can count on collaboration. (Hell, it's the wiki - you can't avoid it!)



Logged

Ciber_Ninja

  • Bay Watcher
    • View Profile
Re: Mechanicle logic?
« Reply #12 on: October 21, 2009, 06:56:55 am »

are none of you people dwarven?!!
I said i want my fort traps to be controlled by a dwarfputer
i have a giant flooding trap above my trade depot
i want my bulkheads to auto seal
i want my goblins to auto drown
i want my enemy to be auto routed
I WANT DWARFPUTER
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Mechanicle logic?
« Reply #13 on: October 21, 2009, 07:22:08 am »

Then be dwarven and do it.

If it's a mandate though (highly likely), come pull that lever please. Thanks.


Ciber_Ninja has mandated a construction of an elaborate water trap.
The mandate has expired.
Urist Poorminer has been jailed.
Urist Poorminer has bled to death.
Ciber_Ninja has mandated a construction of an elaborate water trap.
Mandate has been completed.
Ciber_Ninja has drowned.
« Last Edit: October 21, 2009, 07:25:11 am by Deon »
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Ciber_Ninja

  • Bay Watcher
    • View Profile
Re: Mechanicle logic?
« Reply #14 on: October 21, 2009, 05:01:18 pm »

lol
Logged