Trying to change equipment type from generator to battery, due to issues with having a generator without natural power generation, and the issues with scripted power distribution. However, getting said error as a result.
This does not apply to any custom equipement added, only vanilla equipment. Did the same with the other generators, no problem.
Code: Select all
data.raw["generator-equipment"]["fusion-reactor-equipment"] = nil
data:extend(
{
{
type = "battery-equipment",
name = "fusion-reactor-equipment",
sprite =
{
filename = "__base__/graphics/equipment/fusion-reactor-equipment.png",
width = 128,
height = 128,
priority = "medium"
},
shape =
{
width = 4,
height = 4,
type = "full"
},
energy_source =
{
type = "electric",
usage_priority = "primary-output",
buffer_capacity = "960kJ",
input_flow_limit = "960kW",
output_flow_limit = "960kW",
},
--power = "750kW"
},
}
)