lab-MK2

Place to get help with not working mods / modding interface.
Vulcan
Long Handed Inserter
Long Handed Inserter
Posts: 52
Joined: Sat Aug 02, 2014 12:34 pm
Contact:

lab-MK2

Post by Vulcan »

error.png
error.png (114.29 KiB) Viewed 1843 times

Code: Select all

data:extend({
  {
    type = "lab",
    name = "lab-MK2",
    icon = "__lab mod__/graphics/icons/lab-MK2.png",
    flags = {"placeable-player", "player-creation"},
    minable = {mining_time = 1, result = "lab-MK2
    corpse = "big-remnants",
    collision_box = {{-1.2, -1.2}, {1.2, 1.2}},
    selection_box = {{-1.5, -1.5}, {1.5, 1.5}},
    light = {intensity = 0.75, size = 8},
    on_animation =
    {
      filename = "__lab mod__/graphics/entity/lab-MK2.png",
      frame_width = 113,
      frame_height = 91,
      frame_count = 33,
      line_length = 11,
      animation_speed = 1 / 3,
      shift = {0.2, 0.15}
    },
    off_animation =
    {
      filename = "__lab mod__/graphics/entity/lab-MK2.png",
      frame_width = 113,
      frame_height = 91,
      frame_count = 1,
      shift = {0.2, 0.15}
    },
    energy_source =
    {
      type = "electric",
      usage_priority = "secondary-input"
    },
    energy_usage = "90kW",
    inputs =
    {
      "science-pack-1",
      "science-pack-2",
      "science-pack-3",
      "science-pack-4",
      "science-pack-5",
      "alien-science-pack"
    },
    module_slots = 4
  }
})
I spent some time getting nowhere with this :?:
Boogieman14
Filter Inserter
Filter Inserter
Posts: 778
Joined: Sun Sep 07, 2014 12:59 pm
Contact:

Re: lab-MK2

Post by Boogieman14 »

My guess is you're missing a " and a } at the end of the line

Code: Select all

    minable = {mining_time = 1, result = "lab-MK2
(looking at the other lines, possibly a comma too, but I don't speak lua)
I don't have OCD, I have CDO. It's the same, but with the letters in the correct order.
cartmen180
Filter Inserter
Filter Inserter
Posts: 358
Joined: Fri Jul 25, 2014 2:53 pm
Contact:

Re: lab-MK2

Post by cartmen180 »

Boogieman14 wrote:My guess is you're missing a " and a } at the end of the line

Code: Select all

    minable = {mining_time = 1, result = "lab-MK2
(looking at the other lines, possibly a comma too, but I don't speak lua)
should be:
minable = {mining_time = 1, result = "lab-MK2"},
Check out my mods
Post Reply

Return to “Modding help”