Give SolarPanelPrototypes support for Animation

Things that already exist in the current mod API
Loup&Snoop
Inserter
Inserter
Posts: 47
Joined: Wed Dec 04, 2024 4:33 am
Contact:

Give SolarPanelPrototypes support for Animation

Post by Loup&Snoop »

The Problem
SolarPanelPrototype is great for entities spammed in bulk for power generation, but it currently only supports pictures. Animations are not supported.
Current Workarounds Don’t Work
1) Tying LuaRender to an SolarPanelPrototype does not work. If the solar panel is invisible, then you can’t see it in ghosts, when placing, or visualizations (easily). If the solar panel is visible, you can’t make the sprite match, and then turn off the base sprite. So the appearance is wrong.
2) ElectricEnergyInterfacePrototype works, but is UPS-intensive when spammed on the scale of solar panels.
Proposed Changes
Option 1) Give SolarPanelPrototype support for working visualization OR animation to allow solar panels to be animated.

Option 2) Give electric energy interface an option (at runtime or prototype) to allow aggregation into an electric network (like solar panels) for low UPS. This would basically be telling factorio “This EEI is currently locked, and its values won’t be editted anymore. Allow it to combine.”
How Mods Would Benefit
I have a Wind Turbine (as do many mods). These get spammed to make massive wind farms. They could theoretically be UPS-friendly SolarPanelPrototype, except they really need to animate. Raiguard the Magnificent was toying around with this optimization before.

This would benefit any mod that wants to make a simple entity that produces power, needs to be deployed in bulk, and animated.

———

Please. :)
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4116
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: Give SolarPanelPrototypes support for Animation

Post by boskid »

Is EntityPrototype::stateless_visualisation not good enough for your use case? This prototype field should be supported by any resource entity and by any entity with health.
Loup&Snoop
Inserter
Inserter
Posts: 47
Joined: Wed Dec 04, 2024 4:33 am
Contact:

Re: Give SolarPanelPrototypes support for Animation

Post by Loup&Snoop »

I spelled visualization with a Z instead of an S...

Please delete this post. :(
curiosity
Filter Inserter
Filter Inserter
Posts: 683
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: Give SolarPanelPrototypes support for Animation

Post by curiosity »

Loup&Snoop wrote: Thu Aug 21, 2025 6:30 pm I spelled visualization with a Z instead of an S...

Please delete this post. :(
Not your fault. The API is incredibly inconsistent about spelling this word. If anything, this thread should be kept as a testament of that.
Post Reply

Return to “Already exists”