Page 1 of 1

Equipment disappear

Posted: Sun Oct 22, 2017 8:49 am
by FMRx
i add tank in my mod, add equipment grid, equipment category, add some equimpment.

when tank mined all equipment installed disappears from tank grid

i check bobvehicleequipment - all euipment stored in grid, works fine

what i do wrong ?

in categories

Code: Select all

  {
    type = "equipment-category",
    name = "a-tank"
  },  
in equipment grid

Code: Select all

  {
    type = "equipment-grid",
    name = "t-55",
    width = 8,
    height =4,
    equipment_categories = {"a-tank"}
  },
in tank

Code: Select all

  equipment_grid = "t-55",
in equipment

Code: Select all

 {
    type = "battery-equipment",
    name = "tank_battery_1",
    sprite =
    {
      filename = "__FMRx__/graphics/equipment/battery_1.png",
      width = 64,
      height = 32,
      priority = "medium"
    },
    shape =
    {
      width = 2,
      height = 1,
      type = "full"
    },
    energy_source =
    {
      type = "electric",
      buffer_capacity = "20MJ",
      input_flow_limit = "10MW",
      output_flow_limit = "2MW",
      usage_priority = "terciary"
    },
    categories = {"a-tank"}
  },

Re: Equipment disappear

Posted: Sun Oct 22, 2017 10:32 am
by Adil
Is tank item an "item-with-entity-data"?
Vanilla tank item

Re: Equipment disappear

Posted: Sun Oct 22, 2017 10:44 am
by FMRx
Adil wrote:Is tank item an "item-with-entity-data"?
Vanilla tank item
tank type was "item"
now it works! Thanks !
1.png
1.png (217.29 KiB) Viewed 2015 times