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

Stack: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (→‎Examples of stacks: Style: Nicer grammatical number agreement)
(Style, added missing stack size, the health IS averaged, added section about items with durability)
Line 11: Line 11:
** 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, inventory)
** [[Tank]] (fuel, ammunition, inventory)
** [[Tank]] (fuel, ammunition, inventory)
** [[Railway|Train]] (wagons, engines for fuel)
** [[Railway|Train]] (wagons, engines for fuel)
Line 17: Line 17:
* Devices
* Devices
** [[Furnace]]: Burner stack ([[Stone furnace|stone]] and [[Steel furnace|steel]] furnace only), input and output stack
** [[Furnace]]: Burner stack ([[Stone furnace|stone]] and [[Steel furnace|steel]] furnace only), input and output stack
** [[Assembling machine|Assembling machines]] and [[Chemical plant|chemical plants]]: 1 output and 1-6 input stacks, depending on item type being assembled
** [[Assembling machine]]s and [[chemical plant]]s: 1 or more output and 1-6 input stacks, depending on item type being assembled
** [[Lab|Labs]]
** [[Lab|Labs]]
** Burner-based: [[Boiler]], [[burner mining drill]], [[burner inserter]]
** Burner-based: [[Boiler]], [[burner mining drill]], [[burner inserter]]
Line 41: Line 41:
!Examples
!Examples
|-
|-
| 1 || [[Nuclear fuel]], [[artillery shell]]. No stacking. A rare stack size possessed by only a few item types.
| 1 || [[Nuclear fuel]], [[artillery shell]], [[satellite]], [[modular armor]], [[blueprint]].
|-
|-
| 5 || [[Locomotive]], all [[Wagon|wagons]]. More common than no stacking, but still quite rare.
| 5 || [[Locomotive]], all [[Wagon|wagons]].
|-
|-
| 10 || [[Roboport]], [[rocket fuel]], [[artillery turret]], [[atomic bomb]]. Also relatively uncommon.
| 10 || [[Roboport]], [[rocket fuel]], [[artillery turret]], [[atomic bomb]].
|-
|-
| 50 || All ores, [[stone]], [[coal]], all [[Module|modules]], [[electric mining drill]], [[electric furnace]], all [[Assembling machine|assemblers]], all [[Chest|chests]], all [[inserters]], [[gun turret]], [[laser turret]], all [[Electric_system#Distribution|power poles]] including [[substation]], both types of [[Robotic network|worker robots]], [[solid fuel]]. One of the more common stack sizes; probably the most common stack size among buildable entities.
| 20 || Some [[equipment modules]], [[pumpjack]]s, [[steel axe]].
|-
|-
| 100 || [[Iron plate]], [[copper plate]], [[steel]], [[processing unit]], [[iron gear wheel]], [[stone brick]], all types of [[concrete]], both isotopes of [[Uranium processing|processed uranium]], [[pipe]] (regular), all [[Belt transport system|belts]], [[wall]], [[landfill]]. Likely the most common stack size.
| 50 || All ores, [[stone]], [[coal]], all [[Module|modules]], [[electric mining drill]], [[electric furnace]], all [[Assembling machine|assemblers]], all [[chests]], all [[inserters]], [[gun turret]], [[laser turret]], all [[Electric_system#Distribution|power poles]] including [[substation]], both types of [[Robotic network|worker robots]], [[solid fuel]].
|-
|-
| 200 || [[Electronic circuit]], [[advanced circuit]], all types of [[Ammunition#Magazines|magazine]], all types of [[tank]] [[Ammunition#Tank shells|cannon shell]], [[copper cable]], both colors of circuit [[Circuit network|wire]], all types of [[science pack]] except space science pack. A somewhat-common stack size overall; typical stack size for [[ammunition]].
| 100 || [[Iron plate]], [[copper plate]], [[steel plate]], [[processing unit]], [[iron gear wheel]], [[stone brick]], all types of [[concrete]], both isotopes of [[Uranium processing|processed uranium]], [[pipe]] (regular), all [[Belt transport system|belts]], [[stone wall]], [[landfill]].
|-
| 200 || [[Electronic circuit]], [[advanced circuit]], all types of [[Ammunition#Magazines|magazine]], all types of [[tank]] [[Ammunition#Tank shells|cannon shell]], [[copper cable]], both colors of circuit [[Circuit network|wire]], all types of [[science pack]] except space science pack.
|-
|-
| 2,000 || Unique to [[space science pack]], present to allow stacking up to 2 [[Rocket|rockets]]' worth of packs in the [[rocket silo]]'s single output slot.
| 2,000 || Unique to [[space science pack]], present to allow stacking up to 2 [[Rocket|rockets]]' worth of packs in the [[rocket silo]]'s single output slot.
Line 58: Line 60:
=== Filtered stacks ===
=== Filtered stacks ===


Stacks can be filtered either by default (in burner-type entities, [[Furnace|furnaces]], [[Roboport|roboports]], [[turrets]], [[Lab|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 wagon|cargo wagons]], the [[Player#Quickbar|quickbar]], and the player inventory, but not for other types of containers (in particular, [[Chest|chests]] of any type).
Stacks can be filtered either by default (in burner-type entities, [[furnace]]s, [[roboport]]s, [[turret]]s, [[lab]]s, 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 wagon]s, the [[Player#Quickbar|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 [[Robotic network|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.
This can be used to ensure only one item type goes into the inventory space. [[Inserters]] (or [[Robotic network|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.
Line 64: Line 66:
=== Damaged items ===
=== Damaged items ===


Damaged items stack with other damaged items (of the same type), but not with undamaged items. The health shown on the stack of damaged items is the average health of the items in the stack. (However, this is for display only; individual items' health is not changed by them becoming part of a stack.)
Damaged items stack with other damaged items (of the same type), but not with undamaged items. When items with different amounts of damage are stacked together the health of the items is averaged.
 
=== Items with durability ===
 
Items with durability, such as [[science pack]]s and [[tools]], always stack with items of the same type, regardless of how much durability remains. The durability displayed on the stack is the durability of the first item. After that item is removed from the stack, a stack of items with full durabilities remains. This means that when multiple items with durabilities are stacked together, their durabilities are merged, which can result in a lower overall item count if multiple items have less than 50% remaining durability.


== Stack size bonuses ==
== Stack size bonuses ==
Line 85: Line 91:
== Handling stacks ==
== Handling stacks ==


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


== History ==
== History ==

Revision as of 11:04, 30 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 indirectly determines how many items can be stored in the stack, as this depends on the item type's maximum stack size.

Only items can be stored within stacks; stacks cannot hold liquids or other entity types.

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

Stack size Examples
1 Nuclear fuel, artillery shell, satellite, modular armor, blueprint.
5 Locomotive, all wagons.
10 Roboport, rocket fuel, artillery turret, atomic bomb.
20 Some equipment modules, pumpjacks, steel axe.
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.
100 Iron plate, copper plate, steel plate, processing unit, iron gear wheel, stone brick, all types of concrete, both isotopes of processed uranium, pipe (regular), all belts, stone wall, landfill.
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.
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.

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 wagon]s, 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 stack with other damaged items (of the same type), but not with undamaged items. When items with different amounts of damage are stacked together the health of the items is averaged.

Items with durability

Items with durability, such as science packs and tools, always stack with items of the same type, regardless of how much durability remains. The durability displayed on the stack is the durability of the first item. After that item is removed from the stack, a stack of items with full durabilities remains. This means that when multiple items with durabilities are stacked together, their durabilities are merged, which can result in a lower overall item count if multiple items have less than 50% remaining durability.

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 quickly handle movement of stacks between inventories, like moving half of a stack to another stack.

History

In game version 0.10, the number of items which can be stored in a stack changed for most items from powers of 2 to multiples of 10. This change was mainly made because most people find it more intuitive to calculate numbers in a base-10 system.

Example: Before the change, a stack could store 64 iron ore, while after the change it is 50. This created some controversy, as some players preferred the old stack sizes.