In other languages: Čeština Deutsch 日本語 Polski Русский Українська 简体中文

Stack: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (→‎Stack size: apparently not. table shows in section preview but not on actual page. please advise / assist? thanks.)
(→‎Examples of stacks: style cleanup, some links)
Line 4: Line 4:
== Examples of stacks ==
== Examples of stacks ==


* The player's inventory
* The [[player]]'s inventory
** Main inventory
** Main inventory
** [[Player#Quickbar|Toolbelt]] (or quickbar)
** The toolbelt ([[Player#Quickbar|quickbar]])
** Tool-, armor-, weapon- and ammunition stacks
** Tool, armor, weapon, and ammunition stacks
** Logistics trash slots
** Logistic trash slots
** The player's hand (is also a stack)
** The player's hand (is also a stack)
* [[Vehicle]]s
* [[Vehicle]]s
** [[Car]] (fuel, ammunition, and a full inventory)
** [[Car]] (fuel, ammunition, and a full inventory)
** [[Tank]] (fuel, ammunition)
** [[Tank]] (fuel, ammunition, inventory)
** [[Railway|Train]] (wagons, engines for fuel)
** [[Railway|Train]] (wagons, engines for fuel)
* [[Chests]]: Best example outside the player's inventory; a chest is bascially just a group of stacks.
* [[Chests]]: The archetypal example of stacks outside the player's inventory; a chest is basically just a group of stacks.
* Devices
* Devices
** [[Furnace]]: Burner-, incoming and outgoing stack
** [[Furnace]]: Burner stack ([[Stone furnace|stone]] and [[Steel furnace|steel]] furnace only), input and output stack
** [[Assembling machine]]s and [[Chemical plant]]s: Several in- and one outgoing stacks, depending on the item assembled
** [[Assembling machine|Assembling machines]] and [[Chemical plant|chemical plants]]: 1 to 6 input and 1 output stack, depending on item being assembled
** [[Lab]]s
** [[Lab|Labs]]
** Burner-based: [[Boiler]], [[Burner mining drill]], [[Burner inserter]]
** Burner-based: [[Boiler]], [[burner mining drill]], [[burner inserter]]
** Roboport (filtered for robots and repair packs only)
** [[Roboport]] (filtered for robots and repair packs only)
** [[Gun turret]]s
** [[Gun turret]]
* Special
* Special
** Inserter and Robots (they have some limited stacks, see stacksize bonus), so that they are able to move some items between stacks at once.
** [[Inserters]] and [[Robotic network#Robots|worker robots]] (Small, variable-size stacks allow these entities to move items between other stacks. See also the [[Inserter capacity bonus (research)|inserter]] and [[Worker robot cargo size (research)|robot]] stack size bonus research topics.)


== How do stacks work? ==
== How do stacks work? ==

Revision as of 22:50, 29 August 2018

A stack is the basic element in Factorio to store items. One space in an inventory can hold one stack.

Examples of stacks

How do stacks work?

A stack can store a number of identical items.

The first inserted item determines which item-types can be stored. This also determines how many items can be stored (the number of items per stack depends on it's max stack size).

Only items can be stored within stacks, stacks cannot hold liquids or other inventories.

Stack size

The number of items a stack can store. Stack size depends on the item; existing stack sizes and (non-exhaustive) examples include (click to expand):

Filtered stacks

Stacks can be filtered either by default (in burner-type entities, furnaces, roboports, turrets, labs, and other entities that can only accept one or a few item types in a particular slot), or manually by the player (normally set via the middle mouse button / scroll-wheel click, see Keyboard bindings). Manual filtering is available for cargo wagons, the quickbar, and the player inventory, but not for other types of containers (in particular, chests of any type).

This can be used to ensure only one item type goes into the inventory space. Inserters (or bots, where applicable) will not attempt to insert anything except the allowed item type into filtered slots, and manual insertion of other item types by the player is also not allowed unless and until the filter is cleared.

Damaged items

Damaged items will stack together with other damaged items, and the health of the stack will be the average health of all items in it. Damaged items will not stack with undamaged items.

Stack size bonuses

Inserters and logistic robots can be boosted with research to hold and transfer more items, see:

Stack limitation

A wooden chest limited to three stacks. Once the third stack is full, inserters will no longer attempt to add items.

Optionally, the usable space in chests and wagons can be decreased below their default values. Typically, this is done to store a small amount of items in an automated process, without consuming the resources that would be required to fill the entire container.

To limit a container, click the red X at the end of the last stack. Then, click on one of the stacks to set the new limit. The unused stacks will be highlighted red (see right).

When full, inserters will no longer add to a limited container. However, the player is still free to manually place items in the unused (red) slots.

Handling stacks

There are some keyboard bindings to handle movement of stacks between inventories fast, like moving half of a stack to another stack.

History

In v0.10, the number of items which can be stored in a stack changed for most items from dual numbers to decimal (base 2 vs. base 10). This change was mainly made because it is easier to calculate numbers based on the base-10-system.

Example: before that change, a stack could store 64 iron ore, after the change only 50. This change created a lot of controversy as some players preferred the old stack sizes.

Stack size Examples
1 Nuclear fuel, artillery shell. No stacking. A rare stack size possessed by only a few item types.
5 Locomotive, all wagons. More common than no stacking, but still quite rare.
10 Roboport, rocket fuel, artillery turret, atomic bomb. Also relatively uncommon.
50 All ores, stone, coal, all modules, electric mining drill, electric furnace, all assemblers, all chests, all inserters, gun turret, laser turret, all power poles including substation, both types of worker robots, solid fuel. One of the more common stack sizes; probably the most common stack size among buildable entities.
100 Iron plate, copper plate, steel, processing unit, iron gear wheel, stone brick, all types of concrete, both isotopes of processed uranium, pipe (regular), all belts, wall, landfill. Likely the most common stack size.
200 Electronic circuit, advanced circuit, all types of magazine, all types of tank cannon shell, copper cable, both colors of circuit wire, all types of science pack except space science pack. A somewhat-common stack size overall; typical stack size for ammunition.
2,000 Unique to space science pack, present to allow stacking up to 2 rockets' worth of packs in the rocket silo's single output slot.