In other languages: Deutsch Español Français 日本語 Nederlands Русский Українська 简体中文

Pollution: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Changed links going to the redirect File:Oil-refinery.png to go to File:Oil refinery.png.)
(Pollution on the map has been independent from alt-mode for many years.)
 
(51 intermediate revisions by 13 users not shown)
Line 1: Line 1:
{{languages}}
{{languages}}
[[File:Pollution.png|400px|thumb|Example of in-game pollution (red squares) in the map]]
[[File:Pollution.png|300px|thumb|Example of in-game pollution (red squares) in the map]]
[[File:pollution_gui.png|300px|thumb|Pollution tab in the production GUI.]]


Pollution is represented as an abstract "cloud", updated [[Chunk|per chunk]] every game second (60 ticks) and visible on the minimap and Map, when Alternative view is on (default [[Keyboard bindings|Alt-Key]]). It appears as a red colored blocky cloud.
Pollution is represented as an abstract "cloud", updated [[Map_structure#Chunk|per chunk]] every 64 [[Time#Ticks|ticks]] (which is 4 ticks more than a game-second). It is visible on the map if the "pollution" setting is on, and appears as a blocky red cloud.


It is produced by many buildings involved in processing items and spreads outwards at a steady rate.
It is produced by many buildings involved in processing items and spreads outwards at a steady rate.


The [[Enemies#Evolution|evolution factor]] is not increased by the spreading/absorbed pollution, but by the pollution produced by all the Player's [[Pollution_Production#Polluters|machinery]] at every tick. This means that no matter how hard the player tries to contain the pollution, [[enemies]] will still evolve at the same rate. They just won't attack the player as frequently. The pollution cloud is used to trigger biter attacks and determines the size of the attacks.
The [[Enemies#Evolution|evolution factor]] is not increased by the spreading/absorbed pollution, but by the pollution produced by all the player's [[Pollution#Polluters|machinery]] at every tick. This means that no matter how hard the player tries to contain the pollution, [[enemies]] will still evolve at the same rate. They just won't attack the player as frequently. The pollution cloud is used to trigger biter attacks and determines the size of the attacks.
 
Pollution settings can be changed via [[map generator|map generation]] settings, or can be disabled entirely.


== Pollution spread ==
== Pollution spread ==


As soon as a chunk has reached 15.0 pollution it starts spreading in all four cardinal directions at a rate of 2% per [[game-second]] (60 ticks).
As soon as a chunk has reached 15.0 pollution it starts spreading in all four cardinal directions at a rate of 2% per 64 ticks. Pollution can generate new chunks if it needs to spread to them.


For example, a chunk with 400.0 pollution and 4 adjacent chunks with 100.0 pollution each, raises the pollution in all adjacent chunks by 8.0 while reducing its own pollution by 32.0. But everyone of the 4 surrounding spreads 2.0 pollution "back" to the center chunk, so it only loses 24.0 + [[Pollution_Production#De-polluters|absorbed value]].
For example, a chunk with 400.0 pollution and 4 adjacent chunks with 100.0 pollution each, raises the pollution in all adjacent chunks by 8.0 while reducing its own pollution by 32.0. But every one of the 4 surrounding spreads 2.0 pollution "back" to the center chunk, so it only loses 24.0 + [[Pollution#De-polluters|absorbed value]].


== Pollution dissipation==
== Pollution dissipation==


* Every [[Chunk]] (32x32) of map slowly reduces the pollution it covers (See [[Pollution Production#Chunks]]). So the more the pollution spreads, the more is absorbed.
* Every [[Map_structure#Chunk|chunk]] (32x32) of map slowly reduces the pollution it covers (See [[#Chunks]]). So the more the pollution spreads, the more is absorbed.
* [[Tree|Trees]] also absorb some pollution (See [[Pollution Production#Trees]]).
* [[Tree]]s also absorb some pollution (See [[#Trees]]).
* [[Enemies#Spawner|Spawners]] absorb a great amount of pollution, and use this to produce enemies.
* [[Enemies#Spawner|Spawners]] absorb a great amount of pollution, and use this to assign enemies to attacks.
* In certain [[Mods]] it is possible to build devices or trees which reduce pollution.


== Native life ==
== Native life ==
Pollution attracts [[Enemies|biters]] to the Player's factory. [[Enemies|Biters]] who find themselves in a polluted area will attempt to reach the source of pollution and destroy it.
Pollution attracts [[Enemies#Biters|biters]] to the Player's factory. Biters who find themselves in a polluted area will attempt to reach the source of pollution and destroy it. Any [[water]] near the source of pollution will turn green, which is a visual-only effect. The effect can be turned off by disabling animated water in the graphics settings.


Each [[Enemies|spawner]] absorbs 20 + 0.01 * [chunks pollution] every game second (60 ticks), if the chunks pollution is greater than 20 otherwise it absorbs the total pollution.
If a chunk's pollution is greater than 20, each enemy spawner absorbs 20 + 0.01 * [chunk's pollution] every 64 ticks, otherwise it absorbs 3 times the amount of pollution needed for the most expensive unit it can spawn for the current evolution factor.  


Higher pollution values decrease the time it takes for biters to join the attack force. After a certain amount of pollution is absorbed the spawner sends one of its biters/spitters to a rendezvous point. Every 1 to 10 minutes (random) the mustered biters launch an attack. If not all biters have arrived at the rendezvous point by that time, they will wait up to an additional 2 minutes for stragglers.
Higher pollution values decrease the time it takes for biters to join the attack force. After a certain amount of pollution is absorbed the spawner sends one of its biters/spitters to a rendezvous point. Every 1 to 10 minutes (random) the mustered biters launch an attack. If not all biters have arrived at the rendezvous point by that time, they will wait up to an additional 2 minutes for stragglers.


Required pollution to add an additional biter/spitter to the attack wave:
Required pollution to add an additional biter/spitter to the attack wave:
{| class="wikitable"
{| class="wikitable" style="text-align:right;"  
! Pollution !! Type
! style="width: 100px;" | Pollution 
! style="width: 130px;" | Type 
|-
|-
|200 || Small biter
| 4  || Small biter 
|-
|-
|1000 || Medium biter
| 20  || Medium biter 
|-
|-
|4000 || Big biter
| 80  || Big biter 
|-
|-
|20000 || Behemoth biter
| 400  || Behemoth biter 
|-
|-
|200 || Small spitter
| 4  || Small spitter 
|-
|-
|600 || Medium spitter
| 12  || Medium spitter 
|-
|-
|1500 || Big spitter
| 30  || Big spitter 
|-
|-
|10000 || Behemoth spitter
| 200  || Behemoth spitter 
|-
|-
|}
|}
With 1350 absorbed pollution at the time of attack the following wave consists of 6 small biters and 1 medium biter OR 6 small spitters and 2 medium spitters depending on the spawner's type and [[Enemies#Spawn_chances_by_evolution_factor|evolution factor]].


== Modules ==
== Modules ==
[[Module|Modules]] that list "+x% pollution" increase pollution multiplier, not a flat pollution rate. Final pollution value is (pollution multiplier * energy usage multiplier * base pollution), meaning heavily boosted buildings are likely to account for most of the pollution produced in a factory.
[[Module]]s that list "+x% pollution" increase pollution multiplier, not a flat pollution rate. Final pollution value is (pollution multiplier * energy usage multiplier * base pollution), meaning heavily boosted buildings are likely to account for most of the pollution produced in a factory.


== Production ==
== Production/Absorption ==
 
{{Languages}}
These tables contain information about the levels of pollution produced/absorbed by items in the game.
These tables contain information about the levels of pollution produced/absorbed by items in the game.
=== Polluters ===
=== Polluters ===
{| class="wikitable"
{| class="wikitable"
| '''Object''' || '''Pollution per KW per game second (60 ticks)''' || '''Pollution per game second at full power'''
! Structure !! Pollution per minute at full power
|-
|-
| {{Imagelink|Stone furnace|Stone furnace}} || 0.01/KW || 1.8
| {{Imagelink|Stone furnace}} || 2
|-
|-
| {{imagelink|steel-furnace|Steel furnace}} || 0.02/KW || 3.6
| {{Imagelink|Steel furnace}} || 4
|-
|-
| {{imagelink|electric-furnace|Electric furnace}} || 0.005/KW || 0.9
| {{Imagelink|Electric furnace}} || 1
|-
|-
| {{Imagelink|Burner mining drill|Burner mining drill}} || 0.03333/KW || 9.999
| {{Imagelink|Burner mining drill}} || 12
|-
|-
| {{Imagelink|Electric mining drill|Electric mining drill}} || 0.1/KW || 9
| {{Imagelink|Electric mining drill}} || 10
|-
|-
| {{imagelink|pumpjack|Pumpjack}} || 0.1/KW || 9
| {{imagelink|Pumpjack}} || 10
|-
|-
| {{Imagelink|Assembling machine 1|Assembling machine}} || 0.03333/KW || 2.9997
| {{Imagelink|Assembling machine 1}} || 4
|-
|-
| {{imagelink|assembling-machine-2|Assembling machine 2}} || 0.016/KW || 2.4
| {{Imagelink|Assembling machine 2}} || 3
|-
|-
| {{imagelink|assembling-machine-3|Assembling machine 3}} || 0.00857/KW || 1.7997
| {{Imagelink|Assembling machine 3}} || 2
|-
|-
| {{Imagelink|Pump|Pump}} || 0.004/KW || 0.12
| {{imagelink|Boiler}} || 30
|-
|-
| {{imagelink|boiler|Boiler}} || 0.01538/KW || 27.6923
| {{Imagelink|Oil refinery}} || 6
|-
|-
| {{Imagelink|Oil refinery|Oil refinery}} || 0.00857/KW || 3.5994
| {{Imagelink|Chemical plant}} || 4
|-
|-
| {{imagelink|chemical-plant|Chemical plant}} || 0.00857/KW || 1.7997
| {{Imagelink|Centrifuge}} || 4
|-
|-
|}
|}
Fire on the ground and burning trees produce 0.3 pollution per minute.


=== De-polluters ===
=== De-polluters ===


==== Spawner ====
==== Spawners ====
If a chunk's pollution is greater than 20, each [[Pollution#Native_Life|enemy spawner]] absorbs 20 + 0.01 * [chunk's pollution] every game second (60 ticks), otherwise it absorbs the chunk's total pollution.
Every 64 ticks, spawners absorb pollution until they have absorbed more than 3 times the amount needed to send the [[Enemies#Creatures|most expensive unit]] at the current evolution level.
 
If they have not absorbed more than that threshold, they will absorb 20 + 0.01 * [chunk's pollution] and check the threshold again.
 
Note that absorbing pollution is not for spawning biters, but for sending biters to an attack group. Spawners will spawn enemies regardless of pollution absorption until they reach their spawn limit.


==== Chunks ====
==== Chunks ====
Every chunk has a natural absorption rate per tick which is determined by the weighted average of its floor tiles.
Every chunk has a natural absorption rate per second which is determined by the sum of the pollution absorption of its floor tiles.


Following numbers are the pollution reduction for a full chunk (32x32 tiles) composed of the same floor tiles per tick.
{| class="wikitable"
{| class="wikitable"
! Tile !! Pollution per tick !! Pollution per second
! Tile !! Pollution per tile per second !! Pollution per chunk per minute !! Absorption rating
|-
|Dark sand || -0.0033 || -0.2
|-
|Sand || -0.0042 || -0.25
|-
|dry grass || -0.0066 || -0.4
|-
|-
|medium dry grass || -0.0075 || -0.45
| Grass 1-4 || -0.0000075 || -0.4608 || 10
|-
|-
|grass || -0.0075 || -0.45
| Dirt 1-7, dry dirt || -0.0000066 || -0.405504 || 9
|-
|-
|dirt || -0.0075 || -0.45
| Red desert 0-3 || -0.0000066 || -0.405504 || 9
|-
|-
|dry dirt || -0.0075 || -0.45
| Sand 1-3 || -0.0000058 || -0.356352 || 8
|-
|-
|Green water || -0.0083 || -0.5
| Water, green water, deep water, deep green water, shallow water, mud water  || -0.000005 || -0.3072 || 7
|-
|-
|Deep green water || -0.0083 || -0.5
| Nuclear ground || -0.0000025 || -0.1536 || 3
|-
|-
|Water || -0.0100 || -0.6
| Path tiles (Stone bricks, concrete etc), landfill || 0 || 0 || 0
|-
|-
|Deep water || -0.0100 || -0.6
| Special tiles (Lab tiles, tutorial grid, Water Wube) || 0 || 0 || 0
|-
|-
|Stone floor || 0.0 || 0.0
| Out of map || -0.00001 || -0.6144 || 13
|-
|Concrete || 0.0 || 0.0
|-
|-
|}
|}


Pollution per tick resembles the third number in the pollution debug information (which is missing the 5th digit)
==== Trees ====


==== Trees ====
Every single [[tree]] absorbs a small amount of pollution in its chunk per second. If the total pollution in a chunk is above 60 units, once per second some of the trees in that chunk each have a chance to either lose one stage of leaves or have their leaves become one stage more gray. Regardless of whether the tree loses leaves or gets grayer, 10 pollution are absorbed by the tree.<br>
Every single tree absorbs a small amount of pollution in its chunk per tick.
A tree stops losing leaves/becoming more gray once the sum of its gray percentage and its leaves lost percentage is above 120%. 50% of trees stop their leaf progression one stage earlier. As the grayness and leaf stage are then locked for that tree forever, it is possible for trees to keep some leaves in heavily polluted chunks but in turn be very gray, or the other way around.<br>
The less dense the leaves, the slower the tree absorbs pollution, however tree grayness does not affect pollution absorption.


{| class="wikitable"
{| class="wikitable"
! Object !! Pollution per tick !! Pollution per second
! Object !! Stage !! Pollution per second
|-
|-
| {{icon|dead-tree||}} || -0.0001 || -0.006
| rowspan="4" | [[File:Green tree.png|120px]] Tree, red tree, brown tree || 0 (Max leaf density) || -0.001
|-
|-
| {{icon|dark-thin-tree||}} || -0.0001 || -0.006
| 1 || -0.00067
|-
|-
| {{icon|dry-tree||}} || -0.0001 || -0.006
| 2 || -0.00033
|-
|-
| {{icon|root-tree||}} || -0.0001 || -0.006
| 3 (Min leaf density) || 0
|-
|-
| {{icon|green-thin-tree||}} || -0.0005 || -0.03
| [[File:Dead dry hairy tree.png|120px]] Dead dry hairy tree || No stages || -0.0001
|-
|-
| {{icon|dark-green-thin-tree||}} || -0.0005 || -0.03
| [[File:Dead grey trunk.png|120px]] Dead gray trunk || No stages || -0.0001
|-
|-
| {{icon|red-thin-tree||}} || -0.0005 || -0.03
| [[File:Dead tree desert.png|120px]] Dead tree - desert|| No stages || -0.0001
|-
|-
| {{icon|green-tree||}} || -0.0005 || -0.03
| [[File:Dry hairy tree.png|120px]] Dry hairy tree || No stages || -0.0001
|-
|-
| {{icon|dark-green-tree||}} || -0.0005 || -0.03
| [[File:Dry tree.png|120px]] Dry tree || No stages || -0.0001
|-
| {{icon|red-tree||}} || -0.0005 || -0.03
|-
| {{icon|green-coral||}} || 0 || 0
|-
|-
|}
|}
Line 168: Line 161:


== History ==
== History ==
{{history|0.17.12|
* Added pollution tab to the production statistics.
* Spawner tooltip (including the pollution statistics), shows distribution of biters spawn for the current evolution factor with the pollution costs.
* Pollution generation is now shown in the x/s format both on the entity and in the item/crafting slot.
* Internal pollution values have been normalized, and they are now roughly 60 times less compared to what they were.}}
{{history|0.17.0|
* Rebalanced assembling machine 1,2 and 3 power consumption and pollution - higher tiers eat more power, but produce less pollution.
* Changed spawner pollution absorption logic so that all the pollution on a chunk doesn't build up un-spent in a single spawner.}}


{{history|0.13.2|
{{history|0.13.2|
Line 195: Line 198:
== See also ==
== See also ==
* [[Crafting]]
* [[Crafting]]
* [[Module|Modules]]
* [[Module]]s
* [[Enemies]]
* [[Enemies]]
{{C|Main}}

Latest revision as of 21:39, 18 October 2024

Example of in-game pollution (red squares) in the map
Pollution tab in the production GUI.

Pollution is represented as an abstract "cloud", updated per chunk every 64 ticks (which is 4 ticks more than a game-second). It is visible on the map if the "pollution" setting is on, and appears as a blocky red cloud.

It is produced by many buildings involved in processing items and spreads outwards at a steady rate.

The evolution factor is not increased by the spreading/absorbed pollution, but by the pollution produced by all the player's machinery at every tick. This means that no matter how hard the player tries to contain the pollution, enemies will still evolve at the same rate. They just won't attack the player as frequently. The pollution cloud is used to trigger biter attacks and determines the size of the attacks.

Pollution settings can be changed via map generation settings, or can be disabled entirely.

Pollution spread

As soon as a chunk has reached 15.0 pollution it starts spreading in all four cardinal directions at a rate of 2% per 64 ticks. Pollution can generate new chunks if it needs to spread to them.

For example, a chunk with 400.0 pollution and 4 adjacent chunks with 100.0 pollution each, raises the pollution in all adjacent chunks by 8.0 while reducing its own pollution by 32.0. But every one of the 4 surrounding spreads 2.0 pollution "back" to the center chunk, so it only loses 24.0 + absorbed value.

Pollution dissipation

  • Every chunk (32x32) of map slowly reduces the pollution it covers (See #Chunks). So the more the pollution spreads, the more is absorbed.
  • Trees also absorb some pollution (See #Trees).
  • Spawners absorb a great amount of pollution, and use this to assign enemies to attacks.

Native life

Pollution attracts biters to the Player's factory. Biters who find themselves in a polluted area will attempt to reach the source of pollution and destroy it. Any water near the source of pollution will turn green, which is a visual-only effect. The effect can be turned off by disabling animated water in the graphics settings.

If a chunk's pollution is greater than 20, each enemy spawner absorbs 20 + 0.01 * [chunk's pollution] every 64 ticks, otherwise it absorbs 3 times the amount of pollution needed for the most expensive unit it can spawn for the current evolution factor.

Higher pollution values decrease the time it takes for biters to join the attack force. After a certain amount of pollution is absorbed the spawner sends one of its biters/spitters to a rendezvous point. Every 1 to 10 minutes (random) the mustered biters launch an attack. If not all biters have arrived at the rendezvous point by that time, they will wait up to an additional 2 minutes for stragglers.

Required pollution to add an additional biter/spitter to the attack wave:

Pollution  Type 
Small biter 
20  Medium biter 
80  Big biter 
400  Behemoth biter 
Small spitter 
12  Medium spitter 
30  Big spitter 
200  Behemoth spitter 

Modules

Modules that list "+x% pollution" increase pollution multiplier, not a flat pollution rate. Final pollution value is (pollution multiplier * energy usage multiplier * base pollution), meaning heavily boosted buildings are likely to account for most of the pollution produced in a factory.

Production/Absorption

These tables contain information about the levels of pollution produced/absorbed by items in the game.

Polluters

Structure Pollution per minute at full power
Stone furnace.png
Stone furnace
2
Steel furnace.png
Steel furnace
4
Electric furnace.png
Electric furnace
1
Burner mining drill.png
Burner mining drill
12
Electric mining drill.png
Electric mining drill
10
Pumpjack.png
Pumpjack
10
Assembling machine 1.png
Assembling machine 1
4
Assembling machine 2.png
Assembling machine 2
3
Assembling machine 3.png
Assembling machine 3
2
Boiler.png
Boiler
30
Oil refinery.png
Oil refinery
6
Chemical plant.png
Chemical plant
4
Centrifuge.png
Centrifuge
4

Fire on the ground and burning trees produce 0.3 pollution per minute.

De-polluters

Spawners

Every 64 ticks, spawners absorb pollution until they have absorbed more than 3 times the amount needed to send the most expensive unit at the current evolution level.

If they have not absorbed more than that threshold, they will absorb 20 + 0.01 * [chunk's pollution] and check the threshold again.

Note that absorbing pollution is not for spawning biters, but for sending biters to an attack group. Spawners will spawn enemies regardless of pollution absorption until they reach their spawn limit.

Chunks

Every chunk has a natural absorption rate per second which is determined by the sum of the pollution absorption of its floor tiles.

Tile Pollution per tile per second Pollution per chunk per minute Absorption rating
Grass 1-4 -0.0000075 -0.4608 10
Dirt 1-7, dry dirt -0.0000066 -0.405504 9
Red desert 0-3 -0.0000066 -0.405504 9
Sand 1-3 -0.0000058 -0.356352 8
Water, green water, deep water, deep green water, shallow water, mud water -0.000005 -0.3072 7
Nuclear ground -0.0000025 -0.1536 3
Path tiles (Stone bricks, concrete etc), landfill 0 0 0
Special tiles (Lab tiles, tutorial grid, Water Wube) 0 0 0
Out of map -0.00001 -0.6144 13

Trees

Every single tree absorbs a small amount of pollution in its chunk per second. If the total pollution in a chunk is above 60 units, once per second some of the trees in that chunk each have a chance to either lose one stage of leaves or have their leaves become one stage more gray. Regardless of whether the tree loses leaves or gets grayer, 10 pollution are absorbed by the tree.
A tree stops losing leaves/becoming more gray once the sum of its gray percentage and its leaves lost percentage is above 120%. 50% of trees stop their leaf progression one stage earlier. As the grayness and leaf stage are then locked for that tree forever, it is possible for trees to keep some leaves in heavily polluted chunks but in turn be very gray, or the other way around.
The less dense the leaves, the slower the tree absorbs pollution, however tree grayness does not affect pollution absorption.

Object Stage Pollution per second
Green tree.png Tree, red tree, brown tree 0 (Max leaf density) -0.001
1 -0.00067
2 -0.00033
3 (Min leaf density) 0
Dead dry hairy tree.png Dead dry hairy tree No stages -0.0001
Dead grey trunk.png Dead gray trunk No stages -0.0001
Dead tree desert.png Dead tree - desert No stages -0.0001
Dry hairy tree.png Dry hairy tree No stages -0.0001
Dry tree.png Dry tree No stages -0.0001

Achievements

Pollution is directly connected to the following achievement:

It-stinks-and-they-dont-like-it-achievement.png It stinks and they don't like it

Trigger an alien attack by pollution.

History

  • 0.17.12:
    • Added pollution tab to the production statistics.
    • Spawner tooltip (including the pollution statistics), shows distribution of biters spawn for the current evolution factor with the pollution costs.
    • Pollution generation is now shown in the x/s format both on the entity and in the item/crafting slot.
    • Internal pollution values have been normalized, and they are now roughly 60 times less compared to what they were.
  • 0.17.0:
    • Rebalanced assembling machine 1,2 and 3 power consumption and pollution - higher tiers eat more power, but produce less pollution.
    • Changed spawner pollution absorption logic so that all the pollution on a chunk doesn't build up un-spent in a single spawner.
  • 0.13.2:
    • Optimized rendering of huge pollution clouds on the map.
  • 0.13.0:
    • Large amounts of pollution is created when burning fires.
    • Pollution creation of the productivity module was reduced drastically.
    • Optimized pollution rendering on map and minimap.
  • 0.12.0:
    • Trees degenerate slowly when exposed to pollution at high levels.
  • 0.8.0:
    • Added option to turn off pollution visibility even when detailed info is on.
  • 0.7.1:
    • Speed modules no longer produce extra pollution.
    • Added missing pollution descriptions.
    • Pollution is only shown on the minimap with alt mode on.
  • 0.7.0:
    • Introduced concept of pollution.

See also