Equipment disappear

Place to get help with not working mods / modding interface.
FMRx
Inserter
Inserter
Posts: 23
Joined: Sat Feb 14, 2015 10:13 am
Contact:

Equipment disappear

Post 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"}
  },
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: Equipment disappear

Post by Adil »

Is tank item an "item-with-entity-data"?
Vanilla tank item
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
FMRx
Inserter
Inserter
Posts: 23
Joined: Sat Feb 14, 2015 10:13 am
Contact:

Re: Equipment disappear

Post 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 1813 times
Post Reply

Return to “Modding help”