Combine energy production (by name)

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Combine energy production (by name)

Post 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 1289 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 1289 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 1289 times
Honktown
Smart Inserter
Smart Inserter
Posts: 1046
Joined: Thu Oct 03, 2019 7:10 am
Contact:

Re: Combine energy production (by name)

Post 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.
I have mods! I guess!
Link
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2920
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: Combine energy production (by name)

Post 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
Rseding91
Factorio Staff
Factorio Staff
Posts: 15026
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Combine energy production (by name)

Post 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.
If you want to get ahold of me I'm almost always on Discord.
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Combine energy production (by name)

Post 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.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Post Reply

Return to “Modding interface requests”