v50 Steam/Premium information for editors
  • 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.
This notice may be cached—the current version can be found here.

Editing v0.34:Pressure plate

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.

You are editing a page for an older version of Dwarf Fortress ("Main" is the current version, not "v0.34"). Please make sure you intend to do this. If you are here by mistake, see the current page instead.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
{{quality|Exceptional|21:03, 26 April 2011 (UTC)}}{{av}}
 
{{quality|Exceptional|21:03, 26 April 2011 (UTC)}}{{av}}
'''Pressure plates''' act in similar ways to [[lever]]s, in that they require [[mechanisms]] to be built, and then a pair of mechanisms to be linked to a [[floodgate]], [[Trap_component|spike trap]], [[bridge]], or what-have-you. Their accompanying activity is triggered the instant a creature has stepped on them (not including the delay associated with the triggered item); leave a time delay space for traps based on enemy movement as necessary.
+
'''Pressure plates''' act in similar ways to [[lever]]s, in that they require [[mechanisms]] to be built, and then a pair of mechanisms to be linked to a [[floodgate]], [[Trap_component|spike trap]], [[bridge]], or what-have-you. Their accompanying activity is triggered the instant a creature has stepped on them (not including the delay associated with the triggered item); leave a time delay space for traps based on enemy movement as necessary. Pressure plates will not be targeted by [[building destroyer]]s.
 
 
Pressure plates are sensitive to some creatures and uninfluenced by others (see [[#Unusual Triggers|Unusual Triggers]]). They are not sensitive to inert weight. Pressure plates trigger when the accumulated weight of sensitive creatures reaches a threshold specified by the player (see [[#Choosing Weights|Choosing Weights]]). Pressure plates are not targeted by [[building destroyer]]s.  
 
  
 
==Types==
 
==Types==
Line 15: Line 13:
 
Pressure plates send an ''open'' command the instant their criteria are met, and a ''close'' command 99 ticks after their triggering criteria are no longer met.  If a pressure plate sends an ''open'' command to a [[door]], [[floodgate]], or [[hatch cover|hatch]] that is already opened, nothing happens.  The only exception to this is [[gear assembly|gear assemblies]], which toggle their engaged/disengaged state on every trigger from a [[lever]] or pressure plate.
 
Pressure plates send an ''open'' command the instant their criteria are met, and a ''close'' command 99 ticks after their triggering criteria are no longer met.  If a pressure plate sends an ''open'' command to a [[door]], [[floodgate]], or [[hatch cover|hatch]] that is already opened, nothing happens.  The only exception to this is [[gear assembly|gear assemblies]], which toggle their engaged/disengaged state on every trigger from a [[lever]] or pressure plate.
  
==Operation==
+
==Advanced techniques==
 
Making complicated devices with pressure plates requires a full and detailed understanding of how pressure plates function.
 
Making complicated devices with pressure plates requires a full and detailed understanding of how pressure plates function.
  
 
Resetting pressure plates send two signals: an ''open'' signal, when first triggered by an appropriate creature or fluid; and a ''close'' signal, set to occur 99 ticks after the pressure criteria are no longer met.  They do not send continuous ''open'' signals while the pressure criteria are met.  A pressure plate that is untriggered then retriggered before it has sent a ''close'' signal will not send an ''open'' signal on the second trigger, and will abort the ''close'' signal scheduled to occur from the untriggering.
 
Resetting pressure plates send two signals: an ''open'' signal, when first triggered by an appropriate creature or fluid; and a ''close'' signal, set to occur 99 ticks after the pressure criteria are no longer met.  They do not send continuous ''open'' signals while the pressure criteria are met.  A pressure plate that is untriggered then retriggered before it has sent a ''close'' signal will not send an ''open'' signal on the second trigger, and will abort the ''close'' signal scheduled to occur from the untriggering.
  
Special care must be taken when linking multiple pressure plates to a single device.  When doing so, it's possible for one of the plates to become activated before another plate has sent a ''close'' signal.  Unlike with single plates, the triggering of the second plate will not abort the ''close'' signal scheduled from the first plate, and the triggered device can become deactivated (closed) despite a triggered pressure plate linked to the device.
+
Special care must be taken when linking multiple pressure plates to a single device.  When doing so, it's possible for one of the plates to become activated before another plate has sent a ''close'' signal.  Unlike with single plates, the triggering of the first plate will not abort the ''close'' signal scheduled from the second plate, and the triggered device can become deactivated (closed) despite a triggered pressure plate linked to the device.
  
 
Similar situations can occur when activating a bridge or other refractory building with a pressure plate: if the pressure plate sends an ''open'' too rapidly after sending a ''close'', the bridge will ignore the ''open'' and wedge close.
 
Similar situations can occur when activating a bridge or other refractory building with a pressure plate: if the pressure plate sends an ''open'' too rapidly after sending a ''close'', the bridge will ignore the ''open'' and wedge close.
  
 
===Build order===
 
===Build order===
One essential consideration with carefully timed devices is build order.  Pressure plates can send ''open'' and ''close'' signals at different times depending on what sort of building is being triggered and whether the building was built before or after the pressure plate.  That is because furniture is evaluated in the reverse order in which it is built-- when you build a pressure plate before the furniture it's linked to, in many cases that furniture will not receive a signal until the tick following pressure plate activation.
+
Another essential consideration with carefully timed devices is build order.  Pressure plates can send ''open'' and ''close'' signals at different times depending on what sort of building is being triggered and whether the building was built before or after the pressure plate.  That is because furniture is evaluated in the reverse order in which it is built-- when you build a pressure plate before the furniture it's linked to, in many cases that furniture will not receive a signal until the tick following pressure plate activation.
  
 
* Linked doors and hatches always open the same tick that a pressure plate is triggered, but close depending on build order: if built before the pressure plate, they close 99 ticks after the trigger is removed, and if built after, they close 100 ticks after the trigger is removed.
 
* Linked doors and hatches always open the same tick that a pressure plate is triggered, but close depending on build order: if built before the pressure plate, they close 99 ticks after the trigger is removed, and if built after, they close 100 ticks after the trigger is removed.
Line 33: Line 31:
  
 
Essentially, pressure plates send open signals immediately upon triggering and close signals 99 ticks after their trigger is removed; pressure plates built before the device they trigger work a tick later; and doors and hatches are always opened on the exact tick that they're triggered by a pressure plate, regardless of build order, although their close tick is still affected by build order.
 
Essentially, pressure plates send open signals immediately upon triggering and close signals 99 ticks after their trigger is removed; pressure plates built before the device they trigger work a tick later; and doors and hatches are always opened on the exact tick that they're triggered by a pressure plate, regardless of build order, although their close tick is still affected by build order.
 
===Unusual triggers===
 
Pressure plates will be set off by a sufficiently large [[undead]] corpse reanimating on their tile.  They will be set off by creatures that fall onto them, even if those creatures [[gravity|fall]] onto another creature occupying the same tile.  However, if a creature dies upon contact with the ground, as with a fall from a great height, that creature will not set off a pressure plate upon landing.  A mechanic who completes the first attachment job on a pressure plate will not cause an ''open'' to be sent to the building being linked, but a ''close'' will be sent-- when the ''open'' is sent, the building is not yet linked!  This tends to toggle gears upon linkage, and makes futile single-use, civilians-trigger pressure plates.  Neither [[Trading|merchants]], their pack animals, nor [[trading#Liasons|diplomats]] will set off pressure plates, even pressure plates set to be triggerable by civilians.  Should an invading force arrive, they will not activate any pressure plates that have been observed by any diplomat from their civilization.  Flyers and swimmers will set off pressure plates in any tile they move through.
 
 
Regardless of whether a pressure plate is set to civilians-trigger or not, any creature that is [[unconscious]] or [[web|webbed]] will set off a pressure plate-- diplomat, sieging human, [[trapavoid]]er, or your own dwarf.
 
 
===Hanging pressure plates===
 
Like other buildings, pressure plates built on top of a constructed wall remain even after that constructed wall is removed{{Bug|0377}}.  All linkages to such a plate need to be completed before removing the construction supporting the plate.  Creatures falling through a hanging pressure plate will not trigger that plate, but fluid falling through or pumped into a square occupied by a hanging pressure plate will trigger that plate as normal.  Flyers or swimmers moving through the tile containing the hanging pressure plate will trigger it as normal.
 
 
==Advanced techniques==
 
 
  
 
===Latching Pressure Plates===
 
===Latching Pressure Plates===
Line 56: Line 43:
 
Now, whenever your pressure plate is triggered, the hatch will immediately open and dump the water from 1 onto the plate at 2, holding that plate down until you use your reset lever to activate the pump and put the water back on top of the hatch. Don't forget to turn the pumps off after all the water has moved, or it will continue to reset itself until the pumps are stopped.  You can eliminate that minor problem by hooking the pressure plates in the [[User:Uristocrat/Toggle_System|toggle system]] to the gear assembly on top of the pumps instead of a lever, but that's significantly more complex.
 
Now, whenever your pressure plate is triggered, the hatch will immediately open and dump the water from 1 onto the plate at 2, holding that plate down until you use your reset lever to activate the pump and put the water back on top of the hatch. Don't forget to turn the pumps off after all the water has moved, or it will continue to reset itself until the pumps are stopped.  You can eliminate that minor problem by hooking the pressure plates in the [[User:Uristocrat/Toggle_System|toggle system]] to the gear assembly on top of the pumps instead of a lever, but that's significantly more complex.
  
===Lightspeed repeater===
+
===Unusual triggers===
Pressure plates have a refractory period of 99 ticks, limiting [[repeater]]s to triple-digit cycles. However, multiple pressure plates attached to a target can be "staggered" such that the ''open'' signal from one plate is followed much sooner by the ''close'' signal from another plate. Using three pressure plates, a repeater can be constructed to toggle a target three times in 100 ticks:
+
Pressure plates will be set off by a sufficiently large [[undead]] corpse reanimating on their tile.  They will be set off by creatures that fall onto them, even if those creatures [[gravity|fall]] onto another creature occupying the same tile. However, if a creature dies upon contact with the ground, as with a fall from a great height, that creature will not set off a pressure plate upon landing.  A mechanic who completes the first attachment job on a pressure plate will not cause an ''open'' to be sent to the building being linked, but a ''close'' will be sent-- when the ''open'' is sent, the building is not yet linked!  This tends to toggle gears upon linkage, and makes futile single-use, civilians-trigger pressure plates. Neither [[Trading|merchants]], their pack animals, nor [[trading#Liasons|diplomats]] will set off pressure plates, even pressure plates set to be triggerable by civilians.  Should an invading force arrive, they will not activate any pressure plates that have been observed by any diplomat from their civilization.  Flyers and swimmers will set off pressure plates in any tile they move through.
  
Time --->
+
Regardless of whether a pressure plate is set to civilians-trigger or not, any creature that is [[unconscious]] or [[web|webbed]] will set off a pressure plate-- diplomat, sieging human, [[trapavoid]]er, or your own dwarf.
  
Repeater 1          ---O--C--O--C--O--C--O--C
+
===Hanging pressure plates===
Repeater 2          -----O--C--O--C--O--C--O-
+
Like other buildings, pressure plates built on top of a constructed wall remain even after that constructed wall is removed{{Bug|0377}}. All linkages to such a plate need to be completed before removing the construction supporting the plate. Creatures falling through a hanging pressure plate will not trigger that plate, but fluid falling through or pumped into a square occupied by a hanging pressure plate will trigger that plate as normal. Flyers or swimmers moving through the tile containing the hanging pressure plate will trigger it as normal.
Repeater 3          -------O--C--O--C--O--C--
 
What the door sees  ---O-OCOCOCOCOCOCOCOCOCOC
 
 
 
This can be extended, with additional pressure plates, up to a maximum of one cycle every two ticks (one tick for open, and one for close) using 50 pressure plates. While these designs were [http://www.bay12forums.com/smf/index.php?topic=92454.msg2585477#msg2585477 originally created with fluid-logic], the introduction of [[minecart]]s provides a much simpler way to stagger the signals from multiple pressure plates.
 
 
 
Note that only a few targets that don't have a built-in delay can handle switching at such speeds ([[door]]s, [[hatch]]es, and [[gear assembly|gears]]).
 
 
 
Keep also in mind that quickly switching buildings will seriously hurt the performance of your game. A single door opening and closing every dozen steps may reduce your frame rate by about a third.
 
 
 
===Priority close===
 
Pressure plates are very timely when detecting a trigger and sending an ''open'' signal, but require 99 ticks when sending a ''close'' signal. Unfortunately, there are situations where closing a hatch or door 100 ticks later might just be too late. This limitation can be overcome by constructing multiple pressure plates that are continually refreshed in a cycle less than 100 ticks. When a trigger condition occurs the cycle is stopped, leading the pressure plate that would have been refreshed next to send a ''close'' signal much sooner. [http://www.bay12forums.com/smf/index.php?topic=128095.msg4449221#msg4449221 A well-calibrated design] should be able to provide a ''close'' signal in five ticks or less.
 
  
 
==Construction==
 
==Construction==
Line 94: Line 70:
 
The weight settings are set up in what appears to be an odd way, but makes sense for the large scale of numbers we can work with. {{k|e}} or {{k|d}} will decrease the weight by 10,000 (1,000 on-screen), and {{k|r}} or {{k|f}} will increase the weight by 100,000 (10,000 on-screen).  It is slightly clumsy but it would be annoying to increase digits by units of 10,000 when trying to get from crundles to whales.
 
The weight settings are set up in what appears to be an odd way, but makes sense for the large scale of numbers we can work with. {{k|e}} or {{k|d}} will decrease the weight by 10,000 (1,000 on-screen), and {{k|r}} or {{k|f}} will increase the weight by 100,000 (10,000 on-screen).  It is slightly clumsy but it would be annoying to increase digits by units of 10,000 when trying to get from crundles to whales.
  
A pressure plate set to trigger on {{k|T}}rack can also be adjusted to respond only to [[Minecart]]s of defined weights. The default settings are 1 as minimum and "any" as maximum, which responds to carts of any weight. If only carts of specific weights are supposed to trigger a signal, different minimum and maximum values can be chosen, in steps of 50 kg, ranging from 1 to 2000. {{k|t}} and {{k|y}} lower and increase the minimum, {{k|g}} and {{k|h}} affect the maximum weight setting. Only carts falling within the limits specified will trigger a signal, carts that are too light or too heavy will not. The gross weight of the cart will be consulted, i.e. the weight of the cart including its cargo. Differing weights of empty carts only cover part of the choosable weight range - the heaviest empty carts are made from platinum and weigh 856 kg.
+
A pressure plate set to trigger on "T"rack can also be adjusted to respond only to [[Minecart]]s of defined weights. The default settings are 1 as minimum and "any" as maximum, which responds to carts of any weight. If only carts of specific weights are supposed to trigger a signal, different minimum and maximum values can be chosen, in steps of 50 kg, ranging from 1 to 2000. {{k|t}} and {{k|y}} lower and increase the minimum, {{k|g}} and {{k|h}} affect the maximum weight setting. Only carts falling within the limits specified will trigger a signal, carts that are too light or too heavy will not. The gross weight of the cart will be consulted, i.e. the weight of the cart including its cargo. Differing weights of empty carts only cover part of the choosable weight range - the heaviest empty carts are made from platinum and weigh 856 kg.
  
 
{{buildings}}
 
{{buildings}}

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)

Templates used on this page: