I'm making a mod adding wind turbine entity. It uses "electric-energy-interface" type because wind turbine isn't supposeed to have any input or output slots in it, from the game's point of view it just generates electric energy out of nowhere.
It indeed generates electricity but it doesn't have "Generates electricity" label in its description for some reason.
I've tried to find a solution, made a topic in Mod Help, but no results so far. Other simillar mods also have this issue.
As far as I understand it this issue deals with game handling electric-energy-interface prototypes. I'm not a developer and have no clue how Factorio works deep inside but I don't understand why electric-energy-interface entities can't have "Generates electricity" label if they in fact do generate energy.
Code for wind turbine:
Code: Select all
local windTurbine = {
name = "wind-turbine",
type = "electric-energy-interface",
...
energy_source = {
type = "electric",
usage_priority = "primary-output",
buffer_capacity = "30kJ",
output_flow_limit = "30kW",
input_flow_limit = "0W",
render_no_power_icon = false,
},
energy_production = "30kW",
energy_usage = "0kW",
...
}
Screenshot:
https://imgur.com/ANFSOK8