Page 1 of 1

Combine energy production (by name)

Posted: Mon Mar 02, 2020 6:25 pm
by darkfrei
Hi devs!

I have small mod https://mods.factorio.com/mod/SmogSolarPanels

There is a small hack, that on chunk pollution the normal solar panel will be replaced by the another one, that something output power.

Is it possible to combine two or more prototypes in the power production graph?

Entities have the same locale, so they have for the player the same name. Why they are separated?

2020-03-02T19_17_18-Factorio 0.18.9.png
2020-03-02T19_17_18-Factorio 0.18.9.png (194.12 KiB) Viewed 1293 times
2020-03-02T19_17_23-Factorio 0.18.9.png
2020-03-02T19_17_23-Factorio 0.18.9.png (203.27 KiB) Viewed 1293 times
pic
2020-03-02T19_19_17-Factorio 0.18.9.png
2020-03-02T19_19_17-Factorio 0.18.9.png (82.66 KiB) Viewed 1293 times

Re: Combine energy production (by name)

Posted: Tue Mar 10, 2020 6:50 pm
by Honktown
"dirty" is a common word in languages... if I were to use your mod, it would be obvious to me that "solar panels" were normal solar panels and "dirty solar panels" meant I was polluting them too much, and should do something. If they were all under the same information I'd have no way to be certain how big the pollution effect is.

Is it possible to add icons to names, I wonder? Then a steam icon could be added in front of the name to imply a "clouded"/obscured solar panel.

Re: Combine energy production (by name)

Posted: Fri Mar 13, 2020 9:58 am
by Optera
Honktown wrote: Tue Mar 10, 2020 6:50 pm Is it possible to add icons to names, I wonder? Then a steam icon could be added in front of the name to imply a "clouded"/obscured solar panel.
Yes, though icon/icons, different sizes, etc, can be a pain to deal with at times.
That's why I made a function for adding overlay icons in my library: https://github.com/Yousei9/Opteras-Libr ... eate_icons

Re: Combine energy production (by name)

Posted: Sat Mar 14, 2020 4:28 pm
by Rseding91
I don't realistically see this happening. The statistics logic works by entity ID and I'm not looking to make the entire (already slow) statistics logic slower to support merging of different things as stats are used.

Re: Combine energy production (by name)

Posted: Sun Mar 15, 2020 8:28 am
by eradicator
Honestly i think for that particular usecase it would be better for the panels to have different names, so that the player can see how strongly affected their factory is by smog. If you combine the 100%/50%/etc panels all into one category the player won't even know they're affected.