[2.0.72] pollution has no quality diamond when energy usage scales with quality

We are aware of them, but do not have solutions that don't cause other issues. They go here in order not to take space in the main bug thread list.
User avatar
Quezler
Filter Inserter
Filter Inserter
Posts: 326
Joined: Fri Mar 25, 2016 6:37 pm
Contact:

[2.0.72] pollution has no quality diamond when energy usage scales with quality

Post by Quezler »

steps to reproduce:
- install krastorio 2
- unzip and open `prototypes/compatibility/quality-updates.lua`
- edit that file like https://codeberg.org/raiguard/Krastorio ... /702/files does, the below code snippet is a simplification:

Code: Select all

data.raw.furnace["kr-air-purifier"].energy_usage_quality_multiplier = {normal = 1, legendary = 2.5}
data.raw.furnace["kr-air-purifier"].quality_affects_energy_usage = true
expected behavior: since pollution changes based on the energy usage it should have a blue icon that shows the emissions for each quality level.
Attachments
Screenshot 2025-12-21 at 21.14.22.png
Screenshot 2025-12-21 at 21.14.22.png (221.65 KiB) Viewed 707 times
Screenshot 2025-12-21 at 21.14.34.png
Screenshot 2025-12-21 at 21.14.34.png (226.21 KiB) Viewed 707 times
Bilka
Factorio Staff
Factorio Staff
Posts: 3717
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [2.0.72] pollution has no quality diamond when energy usage scales with quality

Post by Bilka »

Noting that boilers in the base game also have this problem.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Rseding91
Factorio Staff
Factorio Staff
Posts: 16761
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.72] pollution has no quality diamond when energy usage scales with quality

Post by Rseding91 »

Thanks for the report however this is currently working correctly. Pollution is not directly effected by quality. That is: the emissions are not multiplied by any part of quality on the entity. When the game decides "how much pollution" it directly reads what's on the prototype. This is in contrast to something like the container entities inventory size where the size is calculated as prototype-size * quality-modifier.

The reason you see pollution "change" on the entity is because the amount of pollution that this entity emits is determined by how much energy it consumes and energy *is* directly changed by the entities quality level.

However - it's not as simple as that. An entity can have static emissions-per-tick by just existing - and have emissions-per-energy-consumed. To complicate it more - some entities don't support emissions-per-entity-consumed and only have static emissions.

As the quality diamonds are implemented now they only show if something is directly modified by the entities quality level (prototype-value ... quality-modifier).
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Minor issues”