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

Stack: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Changed links going to the redirect Game/Keyboard_bindings to direct links.)
(style, fixed link)
Line 1: Line 1:
{{Languages}}
{{Languages}}
{{sublinks}}
A stack is the basic element in Factorio to store items. One space in an inventory can hold one stack.
A stack is the basic element in Factorio to store items. One space in an inventory can hold one stack.


Line 7: Line 6:
* The player's inventory
* The player's inventory
** Main inventory
** Main inventory
** [[Toolbelt]] (or quickbar)
** [[Player#Quickbar|Toolbelt]] (or quickbar)
** tool-, armor-, weapon- and ammunition stacks
** Tool-, armor-, weapon- and ammunition stacks
** Logistics Trash slots
** Logistics 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)
** [[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]]: Best example outside the player's inventory; a chest is bascially just a group of stacks.
* Devices
* Devices
** [[Furnace]]: Burner-, incoming and outgoing stack
** [[Furnace]]: Burner-, incoming and outgoing stack
** [[Assembly]] and [[Chemical plant]]: several in- and one outgoing stack, depending on the item assembled
** [[Assembling machine]]s and [[Chemical plant]]s: Several in- and one outgoing stacks, depending on the item assembled
** [[Lab]]s
** [[Lab]]s
** Burner-based: [[Boiler]], [[Burner mining drill]], [[Burner inserter]]
** Burner-based: [[Boiler]], [[Burner mining drill]], [[Burner inserter]]
Line 34: Line 33:
Only items can be stored within stacks, stacks cannot hold [[Fluid system|liquids]] or other inventories.
Only items can be stored within stacks, stacks cannot hold [[Fluid system|liquids]] or other inventories.


=== Stack Size ===
=== Stack size ===


The capacity, how much items a stack can store, which depends from the item. For example, [[Iron plate]]s stack to 100, however [[Iron ore]] stacks to 50.
The capacity, how much items a stack can store, which depends from the item. For example, [[Iron plate]]s stack to 100, however [[Iron ore]] stacks to 50.
Line 52: Line 51:
* [[Inserter capacity bonus (research)]],
* [[Inserter capacity bonus (research)]],
* [[Worker robot cargo size (research)]]
* [[Worker robot cargo size (research)]]


== Stack limitation ==
== Stack limitation ==
Line 58: Line 56:
[[File:Stack limiter.jpg|300px|thumb|frame|A [[wooden chest]] limited to three stacks. Once the third stack is full, inserters will no longer attempt to add items.]]
[[File:Stack limiter.jpg|300px|thumb|frame|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 [[Vehicle/Train/Wagon|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.
Optionally, the usable space in [[chests]] and [[Cargo wagon|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).
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).

Revision as of 13:07, 18 December 2017

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

Examples of stacks

  • The player's inventory
    • Main inventory
    • Toolbelt (or quickbar)
    • Tool-, armor-, weapon- and ammunition stacks
    • Logistics trash slots
    • The player's hand (is also a stack)
  • Vehicles
    • Car (fuel, ammunition, and a full inventory)
    • Tank (fuel, ammunition)
    • Train (wagons, engines for fuel)
  • Chests: Best example outside the player's inventory; a chest is bascially just a group of stacks.
  • Devices
  • 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.

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 capacity, how much items a stack can store, which depends from the item. For example, Iron plates stack to 100, however Iron ore stacks to 50.

Filtered stacks

There are also ways to filter stacks, either by default (for the burner/furnaces, or roboports) or manually set for the wagons or toolbelt (normally set via the middle-mouse-button, see Keyboard bindings). This can be used to ensure only one item type goes into the inventory space.

Damaged items

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

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.