Got a little confused with "electric-energy-interface"
Posted: Tue Mar 12, 2024 8:27 am
Hello there,
I'am making a Factorio mod, that adds some ecology stuff including wind turbines and air filtering entities and got some problems here:
There's my code for wind turbine:
And for air purifier:
Screenshots: https://imgur.com/a/v6EAjn5
I'am making a Factorio mod, that adds some ecology stuff including wind turbines and air filtering entities and got some problems here:
- As you can see on my screenshots, air purifier has "Consumes electricity" description segment, but wind turbine doesn't. How's that working and how may I fix it?
- In its current state wind turbine at least produces electricity, on the other hand air purifier doesn't consume electricity at all. I'am pretty sure this is related with "No power" state, but I have no clue how to fix it.
There's my 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",
...
}
Code: Select all
local airPurifier = {
name = "air-purifier",
type = "electric-energy-interface",
...
energy_source = {
type = "electric",
usage_priority = "secondary-input",
buffer_capacity = "0J",
output_flow_limit = "0W",
input_flow_limit = "100kW",
render_no_power_icon = false,
-- emissions_per_minute = -5
},
energy_production = "0kW",
energy_usage = "100kW",
...
}