- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
Difference between revisions of "User:Kami/Logic gates"
m |
m |
||
Line 99: | Line 99: | ||
== Logic gates == | == Logic gates == | ||
=== Power to signal converter === | === Power to signal converter === | ||
− | When you are dealing with {{l| | + | When you are dealing with {{l|Mechanical logic|mechanical logic}}, you'll finally want or have to trigger something else than machine components, like doors or bridges. Currently, there doesn't exist any trigger in dwarf fortress that reacts on the working state of machine components, thus power on/off. So, you'll have to convert power via pressure plates, screw pumps and fluid into an on/off signal. |
<div style="position:relative; float:left;"> | <div style="position:relative; float:left;"> | ||
'''Z 0''' | '''Z 0''' | ||
Line 162: | Line 162: | ||
<div style="clear:left;"> | <div style="clear:left;"> | ||
<br /> | <br /> | ||
− | When the pump is connected to power, it will suck water from the pressure plate and pump it to the right. The water level on the pressure plate will fall to 0. The plate can be constructed to react on 0…3 water. You can invert it to get an off signal instead setting it to 4…7. In both cases the ''off signal'' will have a delay of 100 steps.{{verify}} This gate is fluid conserving, what means you will neither need internal {{l|flow|flow}} nor have to refill it because of {{l| | + | When the pump is connected to power, it will suck water from the pressure plate and pump it to the right. The water level on the pressure plate will fall to 0. The plate can be constructed to react on 0…3 water. You can invert it to get an off signal instead setting it to 4…7. In both cases the ''off signal'' will have a delay of 100 steps.{{verify}} This gate is fluid conserving, what means you will neither need internal {{l|flow|flow}} nor have to refill it because of {{l|Water#Evaporation|evaporation}}. |
</div> | </div> | ||
=== Logic gates === | === Logic gates === |
Revision as of 13:02, 29 November 2010
ToDo
General
Template:L in dwarf fortress is the practice of setting up complex constructions to perform logical operations and calculations, ideally to control some functionality of your fortress. This is a guide leading deep into the topic, giving advanced assistance for Template:L who want to create their own dwarfputer. It does not stick to a special (Template:L, Template:L, ...) logic but tries to measure the adventages, disadventages and best practices from all Template:L. This guide adresses to people who are familar with the concept of Template:L and have a basic understanding of computing in dwarf fortress.
Key
█
|
█
|
█
|
█
|
any tile |
█
|
█
|
█
|
█
|
floor |
█
|
█
|
█
|
█
|
no floor |
█
|
█
|
█
|
█
|
solid |
█
|
█
|
█
|
█
|
█
|
║
|
█
|
o
|
█
|
axle |
·
|
█
|
█
|
█
|
channel |
┼
|
█
|
█
|
█
|
door |
X
|
█
|
█
|
█
|
flood gate |
*
|
█
|
█
|
█
|
gear assembly |
█
1 |
█
… |
█
7 |
█
|
magma depth |
▲
|
█
|
▼
|
█
|
ramp |
^
|
█
|
█
|
█
|
pressure plate (reacting on water) |
÷
|
÷
► ► |
█
|
█
|
screw pump (pumping right) |
█
1 |
█
… |
█
7 |
█
|
water depth |
Logic gates
Power to signal converter
When you are dealing with Template:L, you'll finally want or have to trigger something else than machine components, like doors or bridges. Currently, there doesn't exist any trigger in dwarf fortress that reacts on the working state of machine components, thus power on/off. So, you'll have to convert power via pressure plates, screw pumps and fluid into an on/off signal.
Z 0
|
Z-1
|
When the pump is connected to power, it will suck water from the pressure plate and pump it to the right. The water level on the pressure plate will fall to 0. The plate can be constructed to react on 0…3 water. You can invert it to get an off signal instead setting it to 4…7. In both cases the off signal will have a delay of 100 steps.[Verify] This gate is fluid conserving, what means you will neither need internal Template:L nor have to refill it because of Template:L.