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 "Quantum stockpile"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(Storing an infinite number of items would take literally forever. "Unlimited" is more accurate than "infinite" here.)
(→‎Setup: Rework to latest version)
Line 18: Line 18:
 
===Setup===
 
===Setup===
 
<diagram>
 
<diagram>
   rrrr     r receiving stockpile
+
   ffff     f feeder stockpile
 
   S      S track stop, set to dump south
 
   S      S track stop, set to dump south
   d       d distribution stockpile
+
   q       q quantum stockpile
 
</diagram>
 
</diagram>
  
# Build a track stop {{K|b}} - {{K|C}} - {{K|S}}. Ensure you set the dumping direction {{K|d}}.
+
# First, '''pause the game'''. If you don't, the dwarves will try to use the quantum stockpile for their own purposes during setup, like assign barrels or bins, and the QSP won't work. You will also need to have a minecart ready in your inventory.
# 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}}.
+
# Build a track stop {{K|b}} - {{K|C}} - {{K|S}} ; ensure you set the {{K|d}}umping direction and leave the friction setting on Highest. This can be adjusted later should the need arise; see [[Minecart#More_on_Track_stop|Minecart]] for more information.
# 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.
+
# Designate a 1x1 quantum stock{{K|p}}ile on the tile where the track stop will dump and define preferences {{K|q}} to make the {{K|s}}ettings store only what you want, with no barrels {{K|E}}, bins {{K|C}} or wheelbarrows {{K|w}}, and most importantly, Will Take From Links Only {{K|a}}.
# 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}}.
+
# Designate a feeder stock{{K|p}}ile, and though it can be anywhere, it's most efficient close by the track stop. It can be any size, but the larger it is, the more dwarves will simultaneously collect items.<sup>note 1</sup> Define the preferences {{K|q}} of this stockpile to be the same as the quantum stockpile<sup>note 2</sup>, with the possible exception of the number of wheelbarrows. If the QSP is for heavy items (e.g. loose stones), you may want to use [[wheelbarrow]]s in the feeder stockpile to speed up collection.
 +
## Keep it a reasonable size. In case something goes wrong, you won't want to have to deal with 200 unwanted boulders.
 +
## If you configure the feeder stockpile to accept more than one type of item within a category, such as [[Stone]] or [[Furniture]], several quantum stockpiles can be set up to draw from the one stockpile. As an example, Metal Ores can be sorted out to iron-, copper- and silver-bearing ores in separate QSPs.
 +
# Construct a new hauling route {{K|h}} - {{k|r}}, being sure to place the cursor over the target track stop; assign a {{K|v}}ehicle (told you that you'd need one), and define a new {{K|s}}top on top of your track stop. {{K|Enter}} to define the stop, {{K|Enter}} again to configure the route stop settings to match the quantum stockpile, {{K|x}} to remove all pre-existing conditions, make a {{K|s}}tockpile link, then position the cursor and choose the feeder stock{{K|p}}ile/s .
  
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.
+
It's 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.
  
 
===Drawbacks===
 
===Drawbacks===

Revision as of 23:58, 1 September 2022

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

A quantum stockpile (QSP) allows you to store an unlimited 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 and possibly higher FPS. Quantum stockpiles are considered to be an exploit.

Simple quantum stockpiles

The simplest QSP is created by designating a garbage dump activity zone, dumping the items you want to store and then reclaiming them when you are ready to use them. If you place this garbage dump on top of an existing stockpile, the dumped items will automatically be considered part of the stockpile, allowing the use of stockpile links to distribute the items to workshops or other stockpiles.

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 operators, but it clears the stone that your miners leave everywhere.

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.

The Minecart Stop

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).

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.

Setup

  ffff     f feeder stockpile             
   S       S track stop, set to dump south
   q       q quantum stockpile            
  1. First, pause the game. If you don't, the dwarves will try to use the quantum stockpile for their own purposes during setup, like assign barrels or bins, and the QSP won't work. You will also need to have a minecart ready in your inventory.
  2. Build a track stop b - C - S ; ensure you set the dumping direction and leave the friction setting on Highest. This can be adjusted later should the need arise; see Minecart for more information.
  3. Designate a 1x1 quantum stockpile on the tile where the track stop will dump and define preferences q to make the settings store only what you want, with no barrels E, bins C or wheelbarrows w, and most importantly, Will Take From Links Only a.
  4. Designate a feeder stockpile, and though it can be anywhere, it's most efficient close by the track stop. It can be any size, but the larger it is, the more dwarves will simultaneously collect items.note 1 Define the preferences q of this stockpile to be the same as the quantum stockpilenote 2, with the possible exception of the number of wheelbarrows. If the QSP is for heavy items (e.g. loose stones), you may want to use wheelbarrows in the feeder stockpile to speed up collection.
    1. Keep it a reasonable size. In case something goes wrong, you won't want to have to deal with 200 unwanted boulders.
    2. If you configure the feeder stockpile to accept more than one type of item within a category, such as Stone or Furniture, several quantum stockpiles can be set up to draw from the one stockpile. As an example, Metal Ores can be sorted out to iron-, copper- and silver-bearing ores in separate QSPs.
  5. Construct a new hauling route h - r, being sure to place the cursor over the target track stop; assign a vehicle (told you that you'd need one), and define a new stop on top of your track stop. Enter to define the stop, Enter again to configure the route stop settings to match the quantum stockpile, x to remove all pre-existing conditions, make a stockpile link, then position the cursor and choose the feeder stockpile/s .

It's 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.

Drawbacks

  1. This method cannot store any items in bins or barrels at all, including bolts (which shouldn't be stored in a bin anyway Bug:2706).
  2. This method cannot store all types of drinks (you will see your dwarves leave barrels and pots of alcohol all over the place), due to the fact that barrels assigned to stockpiles are marked to be put in specific stockpiles.
  3. Food stored using this method without barrels tends to attract vermin, especially swarms of flies, since it can't be placed in barrels.
  4. This method works well for furniture, 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 invaders' corpses.
  5. 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.
  6. It has been observed that plant harvesting may be restricted by the number of empty valid stockpile spots. A larger receiving plant stockpile may be needed to get harvests done before the plants wither away.

The Undump

This technique was 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

         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.

More information on this method can be found on the inventor's user page.

Drawbacks

This design has the following drawbacks:

  1. 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.
  2. Job cancellation spam. You can turn that off.
  3. 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.
  4. You obviously need some materials to build it.
  5. You need to create an open space tile where the hatch cover is (channeling only leaves a ramp), which means digging in the level below.
  6. 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.
  7. 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 this thread.