"Generates electricity" label for electric-energy-interface entity

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
Byzzee
Burner Inserter
Burner Inserter
Posts: 6
Joined: Tue Feb 27, 2024 8:55 am
Contact:

"Generates electricity" label for electric-energy-interface entity

Post by Byzzee »

Hi there,

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

Post Reply

Return to “Modding interface requests”