Page 1 of 1

[1.0] Lamps emit no pollution although show a value

Posted: Fri Nov 27, 2020 7:54 am
by Honktown
Mod: https://mods.factorio.com/mod/Yuoki
Lamp: "Owner's Monument"

The lamp is consuming power but emissions aren't working. There's a few unrelated "was not used" values in the log, but the emissions show in game. Can lamps have +/- emissions?
The Prototype

Re: [1.0] Lamps emit no pollution although show a value

Posted: Fri Nov 27, 2020 8:25 am
by boskid
For an entity to produce (or consume) pollution it has to perform an update calling its energy source to extract energy and pollute. Lamps are not individually updating because they are grouped for performance reasons. Pollution description is added as for any Entity because energy source has pollution defined, but lamp is not updating its energy source. Simply saying: lamps are not consuming any energy, total lamp energy consumption is computed at the electric network update and flow statistics are updated to account for that. This is rather a "wont fix" or "add check that prevents pollution from being defined on lamp energy source".

Re: [1.0] Lamps emit no pollution although show a value

Posted: Fri Nov 27, 2020 12:12 pm
by Bilka
Thanks for the report, fixed for the next version. The tooltip will no longer show the lamp as producing pollution and setting emissions on the energy source will be ignored.