Bay 12 Games Forum

Dwarf Fortress => DF Suggestions => Topic started by: Sukasa on April 13, 2008, 11:08:00 pm

Title: Rotation Sensors
Post by: Sukasa on April 13, 2008, 11:08:00 pm
I couldn't find this in the reqs/bloats/etc, so I thought I'd post it.

Anyways, one thing I've been thinking of that would be absolutely awesome for DF is just a way to link a setup to an axle/gearbox/etc that, when the device is active, acts like a pulled lever, and when not active acts like an unpulled lever, and can be linked to objects just like a lever or pressure plate, and of course have an inverted output option.  Some people might say it's silly (we have water logic, after all), but I can see a good use for this, at least for everyone who wants to start building fortress automation devices and specialized traps and such, and if they're like me, would prefer to deal with machine logic rather than water logic.

Title: Re: Rotation Sensors
Post by: Coke_Can64 on April 14, 2008, 02:48:00 am
IMO, that is a great idea, i can see traps and other things unfolding from that:

#1 There could be a bridge linked up to one of those and a waterwheel on a pit of water (or lava if you can find a way to get rid of it later) under the bridge with a floodgate controlling the water and the switch far in the fort. The invaders charge in, the floodgates open turning the waterwheel placed past the bridge (so that there is water at the "dropsite" to flush away those monsters) flushing away those evil goblins...

Lv 0

code:

 ~~~~~
 ~~~~~
XXXXXXXXX
X+++++++X
XXXXXXXXX
 ~~~~~
 ~~~~~
^That's a bridge over a pit (currently empty).

Lv -1

code:

###~###
###X###
#~~~~~#
#~~~~~#
..~~~~~..
..~~~~~..
..~~~~~..
#~~~~~#
#~~~~~#
##=~###
M-=~###
##=~###

^ The level below with:
X - A floodgate
M - The Rotary Sensor
=
= - A Waterwheel
=
~ - Water
. - Area covered by bridge
# - Wall


As above, the floodgate is operated by a lever, the bridge is operated by the rotary sensor, and the water will flush out to somewhere else.

Title: Re: Rotation Sensors
Post by: Align on April 14, 2008, 09:10:00 am
In that particular case, why not just link the switch directly to the floodgate and bridge?
I like the idea though.
Title: Re: Rotation Sensors
Post by: Crafty Barnardo on April 14, 2008, 09:53:00 am
I'm not sure I understand.  Are you talking about something like a turnstile?  How would it be different from a pressure plate?
Title: Re: Rotation Sensors
Post by: Draco18s on April 14, 2008, 10:41:00 am
quote:
Originally posted by Align:
<STRONG>In that particular case, why not just link the switch directly to the floodgate and bridge?
I like the idea though.</STRONG>

Because you want the gobos on the bridge when it goes up.

Title: Re: Rotation Sensors
Post by: Align on April 14, 2008, 03:45:00 pm
And how would the gear-activated thingey be better than just waiting with flipping the switch? At least then it'd be reliable rather than depend on how the water decides to flow.
Title: Re: Rotation Sensors
Post by: Haedrian on April 14, 2008, 03:59:00 pm
Having trouble understanding this.

Is what you want a NOT-pressure plate? An inverter?

Title: Re: Rotation Sensors
Post by: Sukasa on April 14, 2008, 04:07:00 pm
What I meant was, a device (like a gearbox), but instead of being controlled by a leverl/etc, it can be used as a trigger, just like how we use pressure plates in water logic.

I then asked that an inverted output option be made available (e.g. activates when power is off as opposed to when it's on)

Title: Re: Rotation Sensors
Post by: Haedrian on April 14, 2008, 04:19:00 pm
Ahh fair enough.

Would be very useful.

Title: Re: Rotation Sensors
Post by: Sukasa on April 15, 2008, 08:07:00 pm
Was thinking about this some more, another couple things to add to this could be...

*Total Power (i.e. activate when total power is ___ to ___)
*Available Power
*Total Power in Use

Title: Re: Rotation Sensors
Post by: GreyMario on April 15, 2008, 08:09:00 pm
How exactly are you supposed to build this in real li--wait.

The above argument is invalid because this is Dwarf Fortress.

This must be implemented.

Title: Re: Rotation Sensors
Post by: Sowelu on April 15, 2008, 08:20:00 pm
My concern:  What's the delay like?

Is it instantaneous across the whole system?  What if it loops back, that would be bad.

Would it be just like..one frame or something?  Or more?  Could get confusing.

Title: Re: Rotation Sensors
Post by: Sukasa on April 15, 2008, 10:49:00 pm
I would think it would use the normal delays (AFAIK, it's not the trigger that delays, it's the triggered building.  Also, AFAIK gearboxes have a one-step delay, which makes machine logic insanely efficient)

Also, GM?  Pretty easy to do in real life, actually.  ASCII sucks for illustrating it though, I'll try to make up an image for you tomorrow.

Title: Re: Rotation Sensors
Post by: GreyMario on April 15, 2008, 11:18:00 pm
I kinda meant the detecting how much power was being put into it.
Title: Re: Rotation Sensors
Post by: Sukasa on April 16, 2008, 08:25:00 am
Ah.  I have no idea either, but who cares.  Like you said, this is DF and must be implemented  :D

Not to mention if it does I have about 8+ pages worth of Machine Logic contraptions (well, 8+ on my TI-89+)

Title: Re: Rotation Sensors
Post by: Othob Rithol on April 16, 2008, 11:31:00 am
Power = Torque x RPM / Unit Constant

RPM can be measure by a Tachometer (invented 1817)
And the earliest dynamometer was the De Prony brake (invented 1821)

Both of these inventions could be built with dwarven technology.

However, they they occur after the time horizon Toady has chosen (or so I am told).

[ April 16, 2008: Message edited by: Othob Rithol ]

Title: Re: Rotation Sensors
Post by: Nadaka on April 16, 2008, 12:05:00 pm
this would greatly improve DF computing projects. Right now the best computing solution is to use mechanics for transport of information and water for storage and some switching.