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.

Difference between revisions of "Exploit"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(Spoiler warning added on top, in accordance with any page hinting to or containing HFS-related content.)
 
(101 intermediate revisions by 41 users not shown)
Line 1: Line 1:
{{Migrated_article}}
+
{{migrated article}}
{{quality|unrated}}{{av}}
+
{{Quality|Unrated}}
 +
{{av}}
 +
{{spoiler}}
  
An '''exploit''' is a quirk of a game that allows players to gain what other players may consider an unfair advantage, usually by making use of a feature that is not working properly or which defies logic. 'Exploiting the game' is distinct from '[[Main:cheating|cheating]]' because exploits occur within the game as written and do not need any external [[Main:utilities|utilities]] or [[Main:modding|modding]]. Whether a player chooses to make use of an exploit or not depends on their personal taste; given that [[Main:Dwarf Fortress|Dwarf Fortress]] is a single-player game, the user alone can decide what liberties to take and what options to shun. Among DF players there is much discussion about what actually should be considered an exploit, going from making sweetpod syrup instead of sugar, growing crops in winter, or even underground, as the one extreme, to justifying 'water wheel batteries' as the other. This page takes a rather relaxed approach in that you considering it an exploit is basically enough to add it, if you don't get too much opposition.
+
An '''exploit''' is a quirk of a game that allows players to gain what other players may consider an unfair advantage, usually by making use of a feature that is not working properly or which defies logic. 'Exploiting the game' is distinct from '[[cheating]]' because exploits occur within the game as written and do not need any external [[utilities]] or [[modding]]. Whether a player chooses to make use of an exploit or not depends on their personal taste; given that ''[[Dwarf Fortress]]'' is a single-player game, the user alone can decide what liberties to take and what options to shun. Among DF players, there is much discussion about what actually should be considered an exploit, ranging from making [[dwarven syrup]] instead of [[dwarven sugar]], growing crops in winter, or even underground, at the one extreme, to justifying 'water wheel batteries' at the other. This page takes a rather relaxed approach in that you considering it an exploit is basically enough to add it, if you don't get too much opposition.
  
== Atom Smasher ==
+
= Fortress mode exploits =
 +
 
 +
== Atom smasher ==
 
{{main|Dwarven atom smasher}}
 
{{main|Dwarven atom smasher}}
 +
Lowering a raised [[drawbridge]] can be used to obliterate most creatures or items beneath it, with some exceptions:
  
Lowering a raised [[drawbridge]] can be used to obliterate most creatures or items beneath it. The drawbridge will be destroyed if it is used to crush a creature of too large a size.
+
* Atom smashing a creature with a size over 1200000 will destroy the drawbridge.
 +
* [[Contaminant]]s are unaffected.
 +
* Smashing a bag of something will destroy the bag, but spill its contents.
 +
* [[Artifact]]s have a special exception; whereby upon being atom-smashed, they will be "hidden" and inaccessible for the rest of the playthrough.  See the main article for further details.
  
==Manager Exercise Program==
+
==Manager exercise program==
 +
As a [[manager]], skill is gained as tasks are ''approved'', not completed. Simply by queuing lots of jobs ({{menu icon|o}} - [[File:New work order icon.png|30px]]) and providing a meager office, the manager will quickly level to [[legendary]] as an [[Organizer]]. The tasks can then be removed once approved.
  
As a [[Manager]], skill is gained as tasks are approved, not completed. Simply by queuing lots of jobs ({{key|j}} {{key|m}} {{key|q}}) (and providing a meager office), the manager will quickly level to [[legendary]] as an [[Organizer]]. The tasks can then be removed once approved.
+
==Merchant swindles==
 +
There are a variety of ways to steal cargo from [[merchant]]s. All amount to naked theft, and the civilization responsible for the caravan will recognize this. Merchants will consider any lost goods to be stolen goods regardless of the method used to take possession of or destroy them (Verification: See [[40d:Trading#Note_that_the_civ|the 40d page]] and [http://www.bay12forums.com/smf/index.php?topic=43771.msg829692#msg829692 This forum post]). So unless you specifically want to take the clothing off the backs of the merchants or steal from your own civ, you might as well just seize the goods anyway.
  
==Merchant Swindles==
+
* [[DF2014:Trading#Seizing_items|Seizing goods via the trade dialog]] is most straightforward way to select specific items to steal; but there are more entertaining methods detailed below.
  
There are a variety of ways to steal cargo from [[merchant]]s without seizing it; all amount to naked theft. Tearing down the [[trade depot]] while the merchants are there is the easiest way.  
+
* Tearing down the [[trade depot]] while the merchants are there is the easiest way to seize all merchant goods at once.
  
Also, marking items for [[dump]]ing, using view creature mode ({{key|v}}), the stocks menu ({{key|z}}), items in room mode ({{key|t}}), or mass dump mode ({{key|d}})-({{key|b}})-({{key|d}}) then marking the entire depot, lets you relieve merchants of their goods. Just reclaim the items from your garbage dump [[zone]] later. You can even take clothing and equipment off merchant and guards this way.
+
* Marking items for [[dump]]ing by cliсking on [[File:Dump option icon.png|30px]] on item or in stocks menu ({{key|k}}), or mass dump mode ({{key|i}}-{{key|p}}) then marking the entire depot, lets you relieve merchants of their goods. Just reclaim the items from your garbage dump [[zone]] later. You can even take clothing and equipment off merchant and guards this way.
  
You can make a wall around the merchants (and even the poor animals) and let them starve to death, letting you take what ever you want. Wait quite a while for them to starve. They will become [[Insanity|very angry]] if you do, so never open the door once they are on the brink of death.
+
* You can make a wall around the merchants (and even the poor animals) and let them starve to death, letting you take whatever you want. Wait quite a while for them to starve. They will become [[Insanity|very angry]] if you do, so never open the door once they are on the brink of death.
 
 
However, the merchants will consider any lost goods to be stolen goods regardless of the method used to take possession of or destroy them.{{Verify}}  See [[40d:Trading#Note_that_the_civ|the 40d page]] and [http://www.bay12forums.com/smf/index.php?topic=43771.msg829692#msg829692 This forum post].  So unless you specifically want to take the clothing off the backs of the merchants or steal from your own civ, you might as well just seize the goods anyway.
 
  
 
== Quantum stockpiles ==
 
== Quantum stockpiles ==
 +
{{main|Quantum stockpile}}
 +
A quantum stockpile (QSP) allows you to store an infinite number of items in a single tile. QSPs can make for super efficient storage, allowing more compact fortresses, shorter hauling routes, more efficient manufacturing flows, and stocktaking at a glance by simply clicking on it.
  
A Quantum Stockpile (QSP) allows you to store an infinte number of items in a single tile. QSPs can make for super efficient storage, allowing more compact fortresses, shorter hauling routes, more efficient manufacturing flows, stocktaking at a glance with look {{K|k}} and [http://www.bay12forums.com/smf/index.php?topic=92241.msg3276117#msg3276117 possibly higher FPS]. 
+
== Building destroyer door ==
 +
Forbid something a dwarf is carrying as he goes through a door, and he'll drop it. The door won't close and won't stop any normal creature from going through, but building destroyers seem to stop in their tracks, waiting for it to close before moving on. Note: your civilians can pass the creature safely, but attacking it cancels your protection. {{Verify}}
  
Note that, due to {{bug|5994}}, deconstructing [[construction]]s near a quantum stockpile can potentially create many simultaneous [[hauling]] jobs. There is currently no easy way to prevent this. Undumps, due to their single-job nature, will not have this problem, and minecart stops will generate only a limited number of jobs due to their [[minecart#Capacity|capacity]].
+
== HFS's back door ==
 +
{{main|Semi-molten rock#Tunnelling down through multiple layers of Semi-molten rock|l1=Semi-molten rock § Tunnelling down through multiple layers of Semi-molten rock}}
 +
There's a convoluted way to dig down through [[semi-molten rock]] and evade the head-on encounter with [[hidden fun stuff]]. Doing this can enable you to, among other things, mine undiggable [[slade]] and duplicate rare minerals. See the page [[semi-molten rock]] for details.
  
=== Simple Quantum Stockpiles ===
+
== Forgotten beast zoo ==
The simplest QSP is created by designating a garbage pit zone instead of a [[stockpile]], dumping the items you want to store and then reclaiming them when you are ready to use them.
+
Wall off all the passageways into your lowest level at the outermost square of the map - except one, which leads to a little vestibule surrounded by fortifications. Wave hello to the various ungainly "[[forgotten beast]]s" which accumulate inside.
  
A similar effect may be achieved for stones by building a wall two tiles in front of a catapult and digging a channel between the wall and catapult. By firing the catapult at the wall, the stone falls into the trench. The stone will pile up in the channel, putting it out of sight and out of mind. Not only does this train [[siege operator]]s, but it clears the stone that your [[miner]]s leave everywhere.
+
Alternatively, by using a [[giant cave spider]] or web-spewing forgotten beast to place [[web]]s on cage traps you can capture and display non-web-spewing forgotten beasts, titans, and more.  
  
Another way to quantum stockpile is to not have appropriate stockpiles to move items back to after you move them to the trading depot.  The depot can hold an infinite number of items, and those items will not be removed if there is nowhere else to place them. This is also useful for anything you want to trade anyway.
+
== Dwarven water reactor ==
 +
{{main|Water wheel#Perpetual motion|l1=Water wheel § Perpetual motion}}
 +
A [[screw pump]] requires 10 power to move water; a [[water wheel]] supplies 100 power if it's got water moving it. Arrange the former to feed the latter, while the latter powers the former, and you can get [[Water wheel#Perpetual motion|perpetual motion]] going - with a surplus of [[power]] available.
  
=== The Minecart Stop ===
+
== And we'll throw in the barrel or bag for free ==
This method allows the type of items to be stored in the Quantum Stockpile to be completely controlled and to be as broad or specific as required.  Collection of items is automatic with no user input required (just like a normal stockpile), and the number of haulers collecting for the stockpile is controlled by the size and number of receiving stockpiles.  Distribution is also automatic, with dwarves coming to collect items as needed (just like from a normal stockpile).
+
On [[embark]], buying things which are stored in [[barrel]]s gets the barrel for free, with at most 10 items per barrel, so, for example, the 15 units of randomly chosen [[meat]] which come with the default supplies will get you two free barrels, one completely filled with 10 units of meat and one half filled with 5 units of meat; you get another two free barrels from the 15 units of randomly chosen [[Creature#Aquatic|fish]]. You can get rid of all of that food, then for the same cost select one unit each of meat from 30 different kinds of animals, giving you 30 free barrels instead of only 4, since each different kind of animal meat is put in its own barrel. Note that different types of meat from the same kind of animal goes into a single barrel, so choosing 1 yak brain + 1 yak eye + 1 yak spleen will get you only one free barrel instead of three.
  
This can be utilised as part of a [[minecart]] transport system, or standalone with no tracks or moving minecarts whatsoever.  The steps below are to create a standalone Quantum Stockpile, but the same general principles apply if used in a minecart transport system.
+
The same thing goes for things stored in [[bag]]s. Each unit of [[sand]] comes in its own bag, and since each unit of sand costs only 1 embark point while bags cost a minimum of 10 embark points each, you can get bags for ten times cheaper by buying sand, then [[dumping]] out the sand after embark.
  
''Setup:''
+
One down side is that all those containers then need to be individually hauled from the wagon to where ever you want them.
  rrrr    r receiving stockpile
 
  S      S track stop, set to dump south
 
  d      d distribution stockpile
 
  
# Build a track stop {{K|b}} - {{K|C}} - {{K|S}}.  Ensure you set the dumping direction {{K|d}}.
+
== Infinite metal ==
# Designate a 1x1 distribution stockpile {{K|p}} on the square where the stop will dump and define preferences {{K|q}} to make the settings {{K|s}} store only what you want, with no barrels {{K|E}}, bins {{K|C}} or wheelbarrows {{K|w}}.  Make it take from links only {{K|a}} but don't make any links.
+
Because one bar of metal produces 25 bolts, and a single bolt can be melted to 0.1 bars of metal, you can create unlimited [[adamantine]] wafers in your fortress using a [[Stupid_dwarf_trick#Bolt splitting operation|clever setup]] with marksdwarves to separate the stacks of [[adamantine]] bolts into single bolts. See this [http://www.bay12forums.com/smf/index.php?topic=51423.0 forum thread] for more details.
# Designate a receiving stockpile {{K|p}} (can be anywhere, but optimally right next to the constructed track stop) of any size. The larger it is, the more dwarves will simultaneously collect items.  Define the preferences {{K|q}} of this stockpile to be the same as the distribution stockpile, with the possible exception of the number of wheelbarrows.  If the QSP is for heavy items (e.g. loose [[stone]]s), you may want to use [[wheelbarrow]]s in the receiving stockpile to speed up collection. Wheelbarrows will place a limit of up to three dwarves simultaneously collecting, unless you make multiple receiving stockpiles, each with its own set of wheelbarrows.
 
# Construct a new hauling route {{K|h}} - {{k|r}}, assign a vehicle {{K|v}} (you'll need to make a minecart), and define a new stop {{K|s}} on your constructed track stop.   {{K|Enter}} to define the stop, {{K|Enter}} again to set the desired items to the same as your stockpiles, {{K|x}} to remove all existing conditions, {{K|s}} to make a stockpile link and choose the receiving stockpile/s {{K|p}}.
 
  
It is a little fiddly to initially set up, and if you miss any step it won't work at all, but once in operation it's an extremely efficient storage system, and scales easily with the size of your fortress, number of haulers and number of items to store.  
+
Weapon traps filled with crossbows will be loaded with individual bolts (10 per crossbow). Bolts cannot be designated to melt while loaded in the trap. It requires deconstruction of the trap. The components will scatter on deconstruction so surrounding the trap with an ammo stockpile set to links only and using dfhack automelt can semi-automate the process. Any metal components of the trap may also be melted.  
  
This method cannot store any items in [[bin]]s or [[barrel]]s at all, including bolts (which shouldn't be stored in a bin anyway {{bug|2706}}), and all types of drinks (you will see your dwarves leave barrels and pots of alcohol all over the place). [[Food]] stored using this method tends to attract [[vermin]], especially swarms of [[fly|flies]], since it can't be placed in barrels. This method works well for [[furniture]], [[wear|cast-off]] [[clothing]], [[metal]] and [[stone]]. A quantum minecart stop can be combined with some sort of [[garbage disposal]] mechanism to easily handle [[refuse]] and [[invader]]s' corpses.
+
Coins may also be split at a [[trade depot]] and melted down individually for up to a 50x return. Mint a stack of coins, then trade it to a caravan. You can then buy the stack back in pieces, and each individual smaller stack will melt and produce .1 bars. One bar produces 500 coins, but splitting it into stacks of 1 coin each would create 500 melt jobs, producing 50 bars in return. The process is discussed in greater detail, both with and without use of macros on this [http://www.bay12forums.com/smf/index.php?topic=111680.0 forum thread]. While potentially time-consuming, this new method both results in far more bars produced per stack (potentially a net profit of 49 bars instead of 1.5), and can duplicate any metal, not just military ones while simultaneously training your broker. Combined with a magma smelter and properly written macros, this method turns a smelter into a free metal generator. Those who are less patient may instead opt to simply melt the coin stacks immediately after they are minted - while this yields only a 10% gain, it is far less time-consuming. As of v50, this no longer works as coin stacks have to be bought back from the trader in full, as there is no option to buy back individual coins. However, melting a full stack of 500 coins will still produce 1.1 bars and can still be used to duplicate metal (including [[adamantine]]) as of v50.
  
Note however that if your dwarves are under [[standing orders]] to ignore outdoor refuse (the default setting) they will also not load an outdoor refuse pile into the minecart.
+
Recent dwarven !!SCIENCE!! has shown that certain visitors react badly to being trapped in a vault of treasure and can be used to [https://www.reddit.com/r/dwarffortress/comments/fql316/infinite_adamantine_using_elf_labor/ rapidly split stacks of coins]. Be careful what you wish for.
  
=== The Undump ===
+
For multiplying weapons/armor-grade metals, forging and melting giant axe blades, enormous corkscrews, menacing spikes, and leggings will yield a 50% gain per item; note that this does ''not'' work with [[adamantine]], since adamantine goods require 3 times as many wafers, instead leading to a 70% loss per item.
This technique was [http://www.bay12forums.com/smf/index.php?topic=92241.0 developed] before minecarts were implemented.  While still a valid method, it has been superseded by the Minecart Stop QSP which achieves the same result, is easier to set up and has fewer drawbacks.
 
  
''Setup:''
+
See the [[Melt item]] article for the best yields when melting down items made of mundane metals for the current version.
        H Hatch cover
 
  =====  ^ pressure plate, citizens trigger, linked to hatch
 
  ^sHs=  = Wall
 
  =====  s Stockpile (same type)
 
  
The idea is that haulers try to place some item on the right stockpile, step on the pressure plate and make the hatch cover retract. This makes them cancel the hauling job because they can't reach the right stockpile. They then drop the item on the left stockpile, on top of as big of a pile as you want.
+
== Quick trade goods ==
 +
[[Bolt|Bolts]], having a high stack size and being affected by quality modifiers, make excellent trade goods when made by a highly trained woodcrafter or metalsmith. This is because quality adds a flat amount to ''each bolt'''s value, going as high as 375☼ on exceptional, and 750☼ on masterwork bolts, making even cheap wooden bolts a quick way of buying out caravans.
  
More information on this method can be found on the inventor's [[User:Vasiln/Undump|user page]].
+
[[Prepared meal]]s can be quick and valuable trade goods - purchase an abundance of raw food when the traders arrive, and set your [[kitchen]] to work cooking that food into lavish meals, then haul the stacks of meals back to the depot and trade them for whatever supplies you really want. The caravan will buy back meals composed of their own ingredients at 25x to 100x their initial value.
  
Drawbacks to this design:
+
Single task [[instruments]] can also be a very lucrative business, although glass instruments have lower gains.
#It's slow, because the one target stockpile generates only one job at a time. If you have more than one target stockpile they create lag because of pathing issues. You probably want to keep your normal stockpiles and use the undump to clean them up slowly. At which point you could consider just using the normal quantum stockpile dumping. Or you build more undumps.
 
#Job cancellation spam. You can turn that off.
 
#Oftentimes, dwarves drop the item on top of the pressure plate instead of on the stockpile. A feeder stockpile just outside the undump helps here.
 
#You obviously need some materials to build it.
 
#You need to create an open space tile where the hatch cover is (channelling only leaves a ramp), which means digging in the level below.
 
#You want to set the pressure plate to the lowest minimum weight (10000, which gets a zero cut off and displays as 1000). This can get tedious, so getting a macro is advised.
 
#If your stockpile management is exceptional already, the undump may not be of as much use to you.
 
However, there is a multitude of potential applications that get discussed in [http://www.bay12forums.com/smf/index.php?topic=92241.0 this] thread.
 
  
== Building destroyer door ==
+
== Silk farm ==
 +
{{main|Silk farming}}
 +
A silk farm can serve as a safe and endless source of silk thread from [[giant cave spider]]s or other [[forgotten beast|web-spewing beasts]]. Its essence is a room with a "bait" creature separated from a web-spewing creature by fortifications. The webber will attempt to attack the "bait" by shooting [[web]]s through the fortifications. Weavers can collect the webs as silk thread and create silk cloth.
  
Forbid something a dwarf is carrying as he goes through a door, and he'll drop it. The door won't close and won't stop any normal creature from going through, but building destroyers seem to stop in their tracks, waiting for it to close before moving on.  Note: your civilians can pass the creature safely, but attacking it cancels your protection. {{Verify}}
+
== Dwarven road-dar ==
 +
Dwarven radar is a handy way of checking for caverns and other special features using the [[farm plot]]s, paved [[road]]s, and [[activity zone]]s. Know where the caverns are before you designate your carefully planned, fully symmetric living quarters!
  
== HFS's back door ==
+
For more details, see the [http://www.bay12forums.com/smf/index.php?topic=93694.0 forum thread].
  
There's a convoluted way to dig down through [[semi-molten rock]] and evade the head-on encounter with [[hidden fun stuff]]. Doing this can enable you to, among other things, mine undiggable [[slade]] and duplicate rare minerals.  See the page for [[semi-molten rock]] for details.
+
== Danger room ==
 +
{{Main|Danger room}}
 +
An [[Trap#Upright Spear/Spike|upright spike trap]] full of non-masterwork training spears (''not'' menacing spikes or metal spears, or even [[elf|elven]] wooden spears) is linked to a [[lever]], which is pulled repeatedly, and dwarves are stationed on the trap. The dwarves quickly learn how to dodge, block and parry these "attacks", gaining [[combat skill]]s much more quickly than through normal [[training]], unless they die.
  
== Forgotten beast zoo ==
+
This exploit does not work in newer versions due to changes to damage propagation.{{version|0.43.04}}
  
Wall off all the passageways into your lowest level at the outermost square of the map - except one, which leads to a little vestibule surrounded by fortifications.  Wave hello to the various ungainly "[[forgotten beast]]s" which accumulate inside.
+
== Coinstar room ==
 +
{{Main|Danger room#Coinstar room|l1=Danger room § Coinstar room}}
 +
A coinstar or popcorn room trains [[armor user]] skills via repeated (unblockable/undodgeable) impacts of various small objects such as [[coin]]s, [[seed]]s, [[sock]]s, [[leaves]], or other small, light objects. Channel a 1x2 trench (leaving ramps), and build two 1x1 '''retracting''' bridges on the bottom of the trench. Connect the bridges to a lever. Add coins (stacks of 15 or smaller are 100% safe) and dwarves.
  
Alternatively, by using a [[giant cave spider]] or web-spewing forgotten beast to place [[web]]s on cage traps you can capture and display non-web-spewing forgotten beasts, titans, and more.  
+
This exploit does not work in newer versions due to changes to damage propagation.{{version|0.43.04}}
  
== Dwarven Water Reactor ==
+
== Wildlife control ==
 +
Wild animals will not spawn when a certain number of them are still present on the map (2 for default 4x4 embark, for larger sites it's higher). This works also for cavern creatures (each cavern independently), or even for roaming [[HFS]] denizens, and can be exploited to prevent new creatures from a particular layer from spawning. Capture enough wild creatures in [[cage trap]]s, and release them somewhere they couldn't escape from. As long as they're there, no more beasts will show up. Note that thieving and [[gremlin|mischievous]] creatures are an exception to this, as their arrival is timed and unaffected by the number of other wildlife.
  
A [[screw pump]] requires 10 power to move water;  a [[water wheel]] supplies 100 power if it's got water moving it.  Arrange the former to feed the latter, while the latter powers the former, and you can get [[Water wheel#Perpetual motion|perpetual motion]] going - with a surplus of [[power]] available.
+
== Portable drain ==
 +
Due to buggy [[minecart]] interactions, a minecart on a [[Minecart#Track_Stops|track stop]] set to dump into a wall tile will constantly fill and empty, removing large amounts of liquid from the game. This is generally much more convenient than digging a tunnel and carving a fortification at the edge of the map. The effect can be controlled by linking a [[lever]] to the track stop (or by adding/removing the minecart in some manner). The portable drain will only reduce the fluid in its tile to below the minimum necessary to fill the cart (6/7); the remaining fluid will need to be dealt with in some other fashion.  
  
== Urist McAdventurer the Shield-wall ==
+
([http://www.bay12forums.com/smf/index.php?topic=154537.msg6657752#msg6657752 original forum post])
  
Adventurers are not limited in the number of items they can hold in their hands, allowing them to equip a virtually unlimited number of shields or bucklers with little effect to the adventurer's performance. This offers multiple chances to block attacks (vastly reducing the number that cause damage) and quickly trains up the shield user skill, further increasing the effectiveness of those shields. There is an indirect limit on how many shields you can equip based on how the total weight of your adventurer's items affects your speed, but the tradeoff between wearing a dozen (or more) shields is well worth the minor reduction in speed.
+
== Dwarven rocket elevator  ==
 +
By exploiting quirks in dwarven physics, minecarts can be accelerated without an external power source (beyond an initial push) to travel independently, or to ascend dozens of Z levels upwards very quickly. Details at [[Minecart#Impulse_ramps]].
  
== Infinite drink in adventure mode ==
+
== Infinite layer stone without magma ==
  
Thirst can be quenched indefinitely in adventure mode by emptying a waterskin when you only have 1 unit of liquid left and refilling it from the pool that forms; giving you 3 units of drink. This is especially useful if you managed to find alcohol and fill your waterskin with some, as alcohol never freezes in cold weather.
+
Constructed walls can be designated for both fortification carving and deconstruction. When the latter designation is completed, the former is kept. When the former is completed after that, stone floor becomes a natural stone fortification. This makes a cycle for infinite stone:
  
== Backpack of holding ==
+
Stone floor → Build Constructed Wall → Designate for removal and fortification carving → Deconstruct → Stone Floor (still designated as fortification) → Stone fortification → Dug out, stone floor + free stone boulder. (Disable engraving on all dwarves to delay the fortification carving.)
  
In adventurer mode, if you try to pick something up while both your hands are already holding something, it'll go straight in your backpack, even if it would not have fit had you first picked it up and then tried to put it inside. That means you can stuff as much as you want into your backpack.
+
The material used to construct the wall is reclaimed when it is deconstructed. Since mining doesn't always drop stone there is only a chance of getting stone from the fortification.
  
== And we'll throw in the barrel/bag for free ==
+
Using this, one can also retrieve stone from surface boulders, though as deconstruction leaves behind layer stone it will not duplicate adamantine or anything else. Soil gets carved, but remains as a floor, thus providing no gain.
  
On [[embark]] buying things which are stored in [[barrel]]s gets the barrel for free, with at most 10 items per barrel, so, for example, the 15 units of randomly chosen [[meat]] which come with the default supplies will get you two free barrels, one completely filled with 10 units of meat and one half filled with 5 units of meat; you get another two free barrels from the 15 units of randomly chosen [[fish]]. You can get rid of all of that food, then for the same cost select one unit each of meat from 30 different kinds of animals, giving you 30 free barrels instead of only 4, since each different kind of animal meat is put in its own barrel. Note that different types of meat from the same kind of animal goes into a single barrel, so choosing 1 yak brain + 1 yak eye + 1 yak spleen will get you only one free barrel instead of three.
+
([http://www.bay12forums.com/smf/index.php?topic=145317.msg8091746#msg8091746 Original forum post])
  
The same thing goes for things stored in [[bag]]s.  Each unit of [[sand]] comes in its own bag, and since each unit of sand costs only 1 embark point while bags cost a minimum of 10 embark points each, you can get bags for ten times cheaper by buying sand, then [[dumping]] out the sand after embark.
+
== Alternate water purification methods ==
  
== Infinite Adamantine / Metals ==
+
Contamination in the form of salty or stagnant water is apparently unable to climb stairs.  Lacking the materials to build a screw pump, you can instead purify water by forcing it to pass through a vertical u-bend made of stairs.
  
Because one bar of metal produces 25 bolts and a single bolt can be melted to 0.1 bars of metal, you can create unlimited adamantine wafers in your fortress using a [[Stupid_dwarf_trick#Bolt_Splitting_Operation|clever setup]] with marksdwarves to separate the stacks of adamantine bolts into single bolts. See this [http://www.bay12forums.com/smf/index.php?topic=51423.0 forum thread] for more details.
+
Flowing fresh water destroys stagnant water on contact, converting it into fresh water.  Oddly enough, flowing salt water also destroys stagnant water on contact, converting it to fresh water, so connecting your murky pools to the sea paradoxically provides clean drinking water.
  
Coins may also be split at a [[trade depot]] and melted down individually for up to a 50x return.  Smelt a stack of coins, then trade it to a caravan.  You can then buy the stack back in pieces, and each individual smaller stack will melt and produce .1 bars.  One bar produces 500 coins, but splitting it into stacks of 1 coin each would create 500 melt jobs, producing 50 bars in return.  The process is discussed in greater detail, both with and without use of macros on this [http://www.bay12forums.com/smf/index.php?topic=111680.0 forum thread].  While potentially time consuming, this new method both results in far more bars produced per stack (potentially a net profit of 49 bars instead of 1.5), and can duplicate any metal, not just military ones while simultaneously training your broker.  Combined with a magma smelter and properly written macros, this method turns a smelter into a free metal generator. Those who are less patient may instead opt to simply melt the coin stacks immediately after they are minted - while this yields only a 10% gain, it is far less time consuming.
+
= Adventure mode exploits =
  
For multiplying weapons/armor-grade metals, forging and melting giant axe blades, large serrated discs, and leggings will yield a 50% gain per item; note that this does ''not'' work with adamantine, since adamantine goods require 3 times as many wafers, instead leading to a 70% loss per item.
+
== Urist McAdventurer the shield-wall ==
 +
Adventurers are not limited in the number of items they can hold in their hands, allowing them to equip a virtually unlimited number of shields or bucklers with little effect to the adventurer's performance. This offers multiple chances to block attacks (vastly reducing the number that cause damage) and quickly trains up the shield user skill, further increasing the effectiveness of those shields. There is an indirect limit on how many shields you can equip based on how the total weight of your adventurer's items affects your speed, but the tradeoff between wearing a dozen (or more) shields is well worth the minor reduction in speed.
  
See the [[Melt item]] article for the best yields when melting down items made of mundane metals for the current version.
+
This exploit was made more complicated due to the addition of the ability to holster/draw weapons and shields, which is needed for [[climber|climbing]] and to avoid hostility from local guards. While an infinite number of weapons or shields can be strapped to your body, only the first two such items will be drawn, requiring a free hand for each. Retrieving multiple shields after unequipping them requires manually drawing each individual shield.
  
== Quick trade goods ==
+
== Infinite drink ==
 +
One's thirst can be quenched indefinitely by emptying a waterskin when you only have 1 unit of liquid left, and refilling it from the pool that forms; giving you 3 units of drink. This is especially useful if you managed to find alcohol and fill the waterskin with some, as alcohol never freezes in cold weather.  One can also make a potable pool of water, by emptying a waterskin containing saltwater.
  
Since [[trap component#spiked ball|spiked balls]] have an extremely high base [[item value]] of ''126'', they can be produced en masse from cheap [[wood]] or other materials and sold off to unsuspecting merchants. This makes for quick cash in any fortress that has a skilled carpenter and an excess of wood on hand.
+
== Backpack of holding ==
 
+
In adventurer mode, if you try to pick something up while both your hands are already holding something, it'll go straight in your backpack, even if it would not have fit had you first picked it up and then tried to put it inside. That means you can stuff as much as you want into your backpack - it will still affect your weight and speed, however.
In fact, any [[trap component]]s make extremely high-value trade goods, especially since metal components require only 1 [[bar]]. (They also increase the [[value]] of [[noble]]'s rooms, and are useful in defense.)
 
 
 
[[Prepared meal]]s can also be quick and valuable trade goods. Purchase an abundance of raw food when the traders arrive, and set your [[kitchen]] to work cooking that food into lavish meals. Then haul the stacks of meals back to the depot and trade them for whatever supplies you really want. The caravan will buy back meals composed of their own ingredients at 25x to 100x their initial value.
 
 
 
== Silk farm ==
 
 
 
{{main|Silk farming}}
 
A silk farm can serve as a safe and endless source of silk thread from [[giant cave spider]]s or other [[forgotten beast|web-spewing beasts]]. Its essence is a room with a bait creature separated from a web-spewing creature by fortifications. The webber will attempt to attack the bait by shooting [[web]]s through the fortifications. Weavers can collect the webs as silk thread and create silk cloth.
 
 
 
== Dwarven Road-Dar ==
 
 
 
Dwarven radar is a handy way of checking for caverns and other special features using the [[farm plot]]s, paved [[road]]s, and [[activity zone]]s. Know where the carverns are before you designate your carefully planned, fully symmetric living quarters!
 
 
 
For more details, see the [http://www.bay12forums.com/smf/index.php?topic=93694.0 forum thread].
 
 
 
== Danger Room ==
 
{{Main|danger room}}
 
 
 
An [[Trap#Upright Spear/Spike|upright spike trap]] full of training spears (''not'' menacing spikes or metal spear, or even [[elf|Elven]] wooden spears) is linked to a [[lever]], which is pulled repeatedly. Dwarves are stationed on the trap. The dwarves quickly learn how to dodge, block and parry these "attacks", gaining [[combat skill]]s much more quickly than through normal [[training]]. Unless they die.
 
 
 
== Coinstar Room ==
 
{{Main|danger room#Coinstar_Room|l1=Coinstar Room}}
 
 
 
A '''coinstar''' or '''popcorn''' room trains [[armor user]] skills via repeated (unblockable/undodgeable) impacts of small objects such as [[coin]]s. [[Seed]]s, [[sock]]s, [[leaves]], and other small, light objects will also work. Channel a 1x2 trench (leaving ramps), and build two 1x1 '''retracting''' bridges on the bottom of the trench. Connect the bridges to a lever. Add coins (stacks of 15 or smaller are 100% safe) and dwarves.
 
  
== Shaft of Enlightenment ==
+
== Pack adventurer ==
 +
You could hold items of any weight, but they affect your speed - except when you're riding a mount.
 +
* [[Jumping]] distance can't become lower than 2-square [[jump]]. Therefore, even overburdened adventurer can quickly move by [[jumping]]. On top of that, [[Jumping]] can be used to jump over various hazards, and to jump on enemies - what damages them, sends them flying and stuns them.
  
Creatures with at least Dabbling in a weapon skill that fall onto an [[DF2012:Spike#Upright_Spear.2FSpike|upright spear / spike]] with an appropriate weapon equipped can experience godly increases in certain combat skills, up to [[legendary]] +70.{{bug|6397}} A drop of 2-3 [[z-level]]s, low-quality wooden [[training spear]]s, and wooden floors are recommended to maximize survivability. See this [http://www.bay12forums.com/smf/index.php?topic=134512.0 forum thread] for details.
+
{{Category|Game}}
 +
[[ru:Exploit]]

Latest revision as of 07:51, 6 July 2024

This article is about the current version of DF.
Note that some content may still need to be updated.

Spoiler2010.png This article contains massive spoilers. If you do not wish to have your game experience spoiled, do not scroll down!

An exploit is a quirk of a game that allows players to gain what other players may consider an unfair advantage, usually by making use of a feature that is not working properly or which defies logic. 'Exploiting the game' is distinct from 'cheating' because exploits occur within the game as written and do not need any external utilities or modding. Whether a player chooses to make use of an exploit or not depends on their personal taste; given that Dwarf Fortress is a single-player game, the user alone can decide what liberties to take and what options to shun. Among DF players, there is much discussion about what actually should be considered an exploit, ranging from making dwarven syrup instead of dwarven sugar, growing crops in winter, or even underground, at the one extreme, to justifying 'water wheel batteries' at the other. This page takes a rather relaxed approach in that you considering it an exploit is basically enough to add it, if you don't get too much opposition.

Fortress mode exploits[edit]

Atom smasher[edit]

Main article: Dwarven atom smasher

Lowering a raised drawbridge can be used to obliterate most creatures or items beneath it, with some exceptions:

  • Atom smashing a creature with a size over 1200000 will destroy the drawbridge.
  • Contaminants are unaffected.
  • Smashing a bag of something will destroy the bag, but spill its contents.
  • Artifacts have a special exception; whereby upon being atom-smashed, they will be "hidden" and inaccessible for the rest of the playthrough. See the main article for further details.

Manager exercise program[edit]

As a manager, skill is gained as tasks are approved, not completed. Simply by queuing lots of jobs (Ui o.pngo - New work order icon.png) and providing a meager office, the manager will quickly level to legendary as an Organizer. The tasks can then be removed once approved.

Merchant swindles[edit]

There are a variety of ways to steal cargo from merchants. All amount to naked theft, and the civilization responsible for the caravan will recognize this. Merchants will consider any lost goods to be stolen goods regardless of the method used to take possession of or destroy them (Verification: See the 40d page and This forum post). So unless you specifically want to take the clothing off the backs of the merchants or steal from your own civ, you might as well just seize the goods anyway.

  • Tearing down the trade depot while the merchants are there is the easiest way to seize all merchant goods at once.
  • Marking items for dumping by cliсking on Dump option icon.png on item or in stocks menu (k), or mass dump mode (i-p) then marking the entire depot, lets you relieve merchants of their goods. Just reclaim the items from your garbage dump zone later. You can even take clothing and equipment off merchant and guards this way.
  • You can make a wall around the merchants (and even the poor animals) and let them starve to death, letting you take whatever you want. Wait quite a while for them to starve. They will become very angry if you do, so never open the door once they are on the brink of death.

Quantum stockpiles[edit]

Main article: Quantum stockpile

A quantum stockpile (QSP) allows you to store an infinite number of items in a single tile. QSPs can make for super efficient storage, allowing more compact fortresses, shorter hauling routes, more efficient manufacturing flows, and stocktaking at a glance by simply clicking on it.

Building destroyer door[edit]

Forbid something a dwarf is carrying as he goes through a door, and he'll drop it. The door won't close and won't stop any normal creature from going through, but building destroyers seem to stop in their tracks, waiting for it to close before moving on. Note: your civilians can pass the creature safely, but attacking it cancels your protection.[Verify]

HFS's back door[edit]

There's a convoluted way to dig down through semi-molten rock and evade the head-on encounter with hidden fun stuff. Doing this can enable you to, among other things, mine undiggable slade and duplicate rare minerals. See the page semi-molten rock for details.

Forgotten beast zoo[edit]

Wall off all the passageways into your lowest level at the outermost square of the map - except one, which leads to a little vestibule surrounded by fortifications. Wave hello to the various ungainly "forgotten beasts" which accumulate inside.

Alternatively, by using a giant cave spider or web-spewing forgotten beast to place webs on cage traps you can capture and display non-web-spewing forgotten beasts, titans, and more.

Dwarven water reactor[edit]

A screw pump requires 10 power to move water; a water wheel supplies 100 power if it's got water moving it. Arrange the former to feed the latter, while the latter powers the former, and you can get perpetual motion going - with a surplus of power available.

And we'll throw in the barrel or bag for free[edit]

On embark, buying things which are stored in barrels gets the barrel for free, with at most 10 items per barrel, so, for example, the 15 units of randomly chosen meat which come with the default supplies will get you two free barrels, one completely filled with 10 units of meat and one half filled with 5 units of meat; you get another two free barrels from the 15 units of randomly chosen fish. You can get rid of all of that food, then for the same cost select one unit each of meat from 30 different kinds of animals, giving you 30 free barrels instead of only 4, since each different kind of animal meat is put in its own barrel. Note that different types of meat from the same kind of animal goes into a single barrel, so choosing 1 yak brain + 1 yak eye + 1 yak spleen will get you only one free barrel instead of three.

The same thing goes for things stored in bags. Each unit of sand comes in its own bag, and since each unit of sand costs only 1 embark point while bags cost a minimum of 10 embark points each, you can get bags for ten times cheaper by buying sand, then dumping out the sand after embark.

One down side is that all those containers then need to be individually hauled from the wagon to where ever you want them.

Infinite metal[edit]

Because one bar of metal produces 25 bolts, and a single bolt can be melted to 0.1 bars of metal, you can create unlimited adamantine wafers in your fortress using a clever setup with marksdwarves to separate the stacks of adamantine bolts into single bolts. See this forum thread for more details.

Weapon traps filled with crossbows will be loaded with individual bolts (10 per crossbow). Bolts cannot be designated to melt while loaded in the trap. It requires deconstruction of the trap. The components will scatter on deconstruction so surrounding the trap with an ammo stockpile set to links only and using dfhack automelt can semi-automate the process. Any metal components of the trap may also be melted.

Coins may also be split at a trade depot and melted down individually for up to a 50x return. Mint a stack of coins, then trade it to a caravan. You can then buy the stack back in pieces, and each individual smaller stack will melt and produce .1 bars. One bar produces 500 coins, but splitting it into stacks of 1 coin each would create 500 melt jobs, producing 50 bars in return. The process is discussed in greater detail, both with and without use of macros on this forum thread. While potentially time-consuming, this new method both results in far more bars produced per stack (potentially a net profit of 49 bars instead of 1.5), and can duplicate any metal, not just military ones while simultaneously training your broker. Combined with a magma smelter and properly written macros, this method turns a smelter into a free metal generator. Those who are less patient may instead opt to simply melt the coin stacks immediately after they are minted - while this yields only a 10% gain, it is far less time-consuming. As of v50, this no longer works as coin stacks have to be bought back from the trader in full, as there is no option to buy back individual coins. However, melting a full stack of 500 coins will still produce 1.1 bars and can still be used to duplicate metal (including adamantine) as of v50.

Recent dwarven !!SCIENCE!! has shown that certain visitors react badly to being trapped in a vault of treasure and can be used to rapidly split stacks of coins. Be careful what you wish for.

For multiplying weapons/armor-grade metals, forging and melting giant axe blades, enormous corkscrews, menacing spikes, and leggings will yield a 50% gain per item; note that this does not work with adamantine, since adamantine goods require 3 times as many wafers, instead leading to a 70% loss per item.

See the Melt item article for the best yields when melting down items made of mundane metals for the current version.

Quick trade goods[edit]

Bolts, having a high stack size and being affected by quality modifiers, make excellent trade goods when made by a highly trained woodcrafter or metalsmith. This is because quality adds a flat amount to each bolt's value, going as high as 375☼ on exceptional, and 750☼ on masterwork bolts, making even cheap wooden bolts a quick way of buying out caravans.

Prepared meals can be quick and valuable trade goods - purchase an abundance of raw food when the traders arrive, and set your kitchen to work cooking that food into lavish meals, then haul the stacks of meals back to the depot and trade them for whatever supplies you really want. The caravan will buy back meals composed of their own ingredients at 25x to 100x their initial value.

Single task instruments can also be a very lucrative business, although glass instruments have lower gains.

Silk farm[edit]

Main article: Silk farming

A silk farm can serve as a safe and endless source of silk thread from giant cave spiders or other web-spewing beasts. Its essence is a room with a "bait" creature separated from a web-spewing creature by fortifications. The webber will attempt to attack the "bait" by shooting webs through the fortifications. Weavers can collect the webs as silk thread and create silk cloth.

Dwarven road-dar[edit]

Dwarven radar is a handy way of checking for caverns and other special features using the farm plots, paved roads, and activity zones. Know where the caverns are before you designate your carefully planned, fully symmetric living quarters!

For more details, see the forum thread.

Danger room[edit]

Main article: Danger room

An upright spike trap full of non-masterwork training spears (not menacing spikes or metal spears, or even elven wooden spears) is linked to a lever, which is pulled repeatedly, and dwarves are stationed on the trap. The dwarves quickly learn how to dodge, block and parry these "attacks", gaining combat skills much more quickly than through normal training, unless they die.

This exploit does not work in newer versions due to changes to damage propagation.v0.43.04

Coinstar room[edit]

A coinstar or popcorn room trains armor user skills via repeated (unblockable/undodgeable) impacts of various small objects such as coins, seeds, socks, leaves, or other small, light objects. Channel a 1x2 trench (leaving ramps), and build two 1x1 retracting bridges on the bottom of the trench. Connect the bridges to a lever. Add coins (stacks of 15 or smaller are 100% safe) and dwarves.

This exploit does not work in newer versions due to changes to damage propagation.v0.43.04

Wildlife control[edit]

Wild animals will not spawn when a certain number of them are still present on the map (2 for default 4x4 embark, for larger sites it's higher). This works also for cavern creatures (each cavern independently), or even for roaming HFS denizens, and can be exploited to prevent new creatures from a particular layer from spawning. Capture enough wild creatures in cage traps, and release them somewhere they couldn't escape from. As long as they're there, no more beasts will show up. Note that thieving and mischievous creatures are an exception to this, as their arrival is timed and unaffected by the number of other wildlife.

Portable drain[edit]

Due to buggy minecart interactions, a minecart on a track stop set to dump into a wall tile will constantly fill and empty, removing large amounts of liquid from the game. This is generally much more convenient than digging a tunnel and carving a fortification at the edge of the map. The effect can be controlled by linking a lever to the track stop (or by adding/removing the minecart in some manner). The portable drain will only reduce the fluid in its tile to below the minimum necessary to fill the cart (6/7); the remaining fluid will need to be dealt with in some other fashion.

(original forum post)

Dwarven rocket elevator[edit]

By exploiting quirks in dwarven physics, minecarts can be accelerated without an external power source (beyond an initial push) to travel independently, or to ascend dozens of Z levels upwards very quickly. Details at Minecart#Impulse_ramps.

Infinite layer stone without magma[edit]

Constructed walls can be designated for both fortification carving and deconstruction. When the latter designation is completed, the former is kept. When the former is completed after that, stone floor becomes a natural stone fortification. This makes a cycle for infinite stone:

Stone floor → Build Constructed Wall → Designate for removal and fortification carving → Deconstruct → Stone Floor (still designated as fortification) → Stone fortification → Dug out, stone floor + free stone boulder. (Disable engraving on all dwarves to delay the fortification carving.)

The material used to construct the wall is reclaimed when it is deconstructed. Since mining doesn't always drop stone there is only a chance of getting stone from the fortification.

Using this, one can also retrieve stone from surface boulders, though as deconstruction leaves behind layer stone it will not duplicate adamantine or anything else. Soil gets carved, but remains as a floor, thus providing no gain.

(Original forum post)

Alternate water purification methods[edit]

Contamination in the form of salty or stagnant water is apparently unable to climb stairs. Lacking the materials to build a screw pump, you can instead purify water by forcing it to pass through a vertical u-bend made of stairs.

Flowing fresh water destroys stagnant water on contact, converting it into fresh water. Oddly enough, flowing salt water also destroys stagnant water on contact, converting it to fresh water, so connecting your murky pools to the sea paradoxically provides clean drinking water.

Adventure mode exploits[edit]

Urist McAdventurer the shield-wall[edit]

Adventurers are not limited in the number of items they can hold in their hands, allowing them to equip a virtually unlimited number of shields or bucklers with little effect to the adventurer's performance. This offers multiple chances to block attacks (vastly reducing the number that cause damage) and quickly trains up the shield user skill, further increasing the effectiveness of those shields. There is an indirect limit on how many shields you can equip based on how the total weight of your adventurer's items affects your speed, but the tradeoff between wearing a dozen (or more) shields is well worth the minor reduction in speed.

This exploit was made more complicated due to the addition of the ability to holster/draw weapons and shields, which is needed for climbing and to avoid hostility from local guards. While an infinite number of weapons or shields can be strapped to your body, only the first two such items will be drawn, requiring a free hand for each. Retrieving multiple shields after unequipping them requires manually drawing each individual shield.

Infinite drink[edit]

One's thirst can be quenched indefinitely by emptying a waterskin when you only have 1 unit of liquid left, and refilling it from the pool that forms; giving you 3 units of drink. This is especially useful if you managed to find alcohol and fill the waterskin with some, as alcohol never freezes in cold weather. One can also make a potable pool of water, by emptying a waterskin containing saltwater.

Backpack of holding[edit]

In adventurer mode, if you try to pick something up while both your hands are already holding something, it'll go straight in your backpack, even if it would not have fit had you first picked it up and then tried to put it inside. That means you can stuff as much as you want into your backpack - it will still affect your weight and speed, however.

Pack adventurer[edit]

You could hold items of any weight, but they affect your speed - except when you're riding a mount.

  • Jumping distance can't become lower than 2-square jump. Therefore, even overburdened adventurer can quickly move by jumping. On top of that, Jumping can be used to jump over various hazards, and to jump on enemies - what damages them, sends them flying and stuns them.