Changing Equipment type.

Place to get help with not working mods / modding interface.
User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2179
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Changing Equipment type.

Post by Ranakastrasz »

"No covariant prototype to load"
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"
  },
}
)
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Post Reply

Return to “Modding help”