Page 1 of 1

Pollution values are wrong after modules inserted

Posted: Thu Nov 07, 2019 8:07 pm
by wahming
As you can see in the attached images, base pollution is 4 / minute, but jumps by a factor of about 47% for each prod 1 module that is inserted, much higher than the 5% stated in the tooltip.

Version: 0.17.76
Mods: Nothing to speak of, QoL only

Re: Pollution values are wrong after modules inserted

Posted: Thu Nov 07, 2019 8:14 pm
by orzelek
Thats correct.
You are increasing emissions by 5% and energy usage by 40% - thats 47% increase to pollution total.

Relation of pollution to power usage is not shown anywhere I think.

Re: Pollution values are wrong after modules inserted

Posted: Thu Nov 07, 2019 8:15 pm
by wahming
orzelek wrote:
Thu Nov 07, 2019 8:14 pm
Thats correct.
You are increasing emissions by 5% and energy usage by 40% - thats 47% increase to pollution total.
Huh? Is it supposed to factor increased energy usage into that? What about those of us using solar or nuclear power?

Re: Pollution values are wrong after modules inserted

Posted: Thu Nov 07, 2019 8:27 pm
by DaleStan
The power source generates (or doesn't, in the case of solar and nuclear) its own pollution. The pollution on the tooltip is the pollution generated by building itself, regardless of how it gets its power.

In our world, simply consuming electricity (running an refrigerator or an oven) does not, in and of itself, generate pollution, but in Factorio it does.

Re: Pollution values are wrong after modules inserted

Posted: Thu Nov 07, 2019 8:48 pm
by valneq
DaleStan wrote:
Thu Nov 07, 2019 8:27 pm
The power source generates (or doesn't, in the case of solar and nuclear) its own pollution. The pollution on the tooltip is the pollution generated by building itself, regardless of how it gets its power.

In our world, simply consuming electricity (running an refrigerator or an oven) does not, in and of itself, generate pollution, but in Factorio it does.
Wait, whaat!? :shock: Does that actually mean an increased power consumption of 100% results in a total of 200% increased pollution, compared to 0% increased power consumption? The additional pollution by the machine itself, and the pollution from the increased power load on my boilers? (Assuming I am using only boilers for power production)

Re: Pollution values are wrong after modules inserted

Posted: Thu Nov 07, 2019 8:55 pm
by wahming
valneq wrote:
Thu Nov 07, 2019 8:48 pm
DaleStan wrote:
Thu Nov 07, 2019 8:27 pm
The power source generates (or doesn't, in the case of solar and nuclear) its own pollution. The pollution on the tooltip is the pollution generated by building itself, regardless of how it gets its power.

In our world, simply consuming electricity (running an refrigerator or an oven) does not, in and of itself, generate pollution, but in Factorio it does.
Wait, whaat!? :shock: Does that actually mean an increased power consumption of 100% results in a total of 200% increased pollution, compared to 0% increased power consumption? The additional pollution by the machine itself, and the pollution from the increased power load on my boilers? (Assuming I am using only boilers for power production)
That's not the intended behaviour, hence the bug report.

Re: Pollution values are wrong after modules inserted

Posted: Fri Nov 08, 2019 12:26 am
by orzelek
wahming wrote:
Thu Nov 07, 2019 8:55 pm
valneq wrote:
Thu Nov 07, 2019 8:48 pm
DaleStan wrote:
Thu Nov 07, 2019 8:27 pm
The power source generates (or doesn't, in the case of solar and nuclear) its own pollution. The pollution on the tooltip is the pollution generated by building itself, regardless of how it gets its power.

In our world, simply consuming electricity (running an refrigerator or an oven) does not, in and of itself, generate pollution, but in Factorio it does.
Wait, whaat!? :shock: Does that actually mean an increased power consumption of 100% results in a total of 200% increased pollution, compared to 0% increased power consumption? The additional pollution by the machine itself, and the pollution from the increased power load on my boilers? (Assuming I am using only boilers for power production)
That's not the intended behaviour, hence the bug report.
For some reason you doubled the %-age otherwise it is indeed how the game works. 100% increase in power usage will increase pollution by 100%. Thats why efficiency modules greatly reduce pollution when used to drop power usage to 20% (minimum to which modules can drop it).

Each entity has emission value that is used to calculate pollution. That value gives how much pollution entity emits in a minute if running at full power.
If you increase power usage of entity pollution will increase proportionally to that. In addition to that modules can increase the emissions value itself which increases pollution per minute too.
It would be like this:
Pollution = base pollution * pollution multiplier * power usage multiplier
From that you get based on initial example:
4 (base entity emissions in this case) * 1.15 (pollution +15%) * 2.20 (energy usage + 120%) = 10.12 pollution/minute

And to answer additional question - source of energy generation doesn't matter for this calculation. Steam power pollutes more simply because boilers also pollute and solar energy is clean. Energy consumers will still pollute as described above.

Re: Pollution values are wrong after modules inserted

Posted: Fri Nov 08, 2019 2:57 am
by TruePikachu
In any case, I'm fairly certain this is currently NaB, since it's working the way it is "supposed" to (i.e. the way the code is supposed to work).

Re: Pollution values are wrong after modules inserted

Posted: Fri Nov 08, 2019 4:48 am
by chrisgbk
NaB, been brought up many times over the years:

viewtopic.php?f=23&t=59039&p=352324&hil ... on#p352324
viewtopic.php?f=23&t=52254&p=305331&hil ... on#p305331
viewtopic.php?f=23&t=48807&p=282639&hil ... on#p282639

The pollution modifier is a penalty in addition to the increase caused by the module effects.