Page 1 of 1

invisable entity

Posted: Mon Apr 25, 2016 6:46 pm
by oresKa2
I have just started learning how to mod.
I have made this mod more oil production, and for my next update I added an actual entity but it wont render.
this is the entity code

Code: Select all

data:extend({
  {
    type = "recipe-category",
    name = "oil-drill"
  },

{
    type = "assembling-machine",
    name = "oil-drill",
    icon = "__more_oil-production__/graphics/oil-drill-icon.png",
    flags = {"placeable-neutral", "player-creation"},
    minable = {mining_time = 1, result = "oil-drill"},
    max_health = 100,
    corpse = "medium-remnants",
    collision_box = {{ -0.9, -0.9}, {0.9, 0.9}},
    selection_box = {{ -1, -1}, {1, 1}},

    working_sound =
    {
      sound =
      {
        filename = "__base__/sound/burner-mining-drill.ogg",
        volume = 0.8
      },
    },
    crafting_categories = "oil-drill",
    allowed_effects = {"consumption", "speed", "productivity", "pollution"},
    module_specification =
    {
      module_slots = 1,
    },
    crafting_speed = 0.5,
    ingredient_count = 1,
    energy_usage = "700kW",
    energy_source =
    {
      type = "electric",
      usage_priority = "secondary-input",
      emissions = 0.01 / 5
    },
  
      north =
      {
        priority = "extra-high",
        width = 110,
        height = 76,
        line_length = 4,
        shift = {0.6875, -0.09375},
        filename = "__more_oil-production__/graphics/north.png",
        frame_count = 32,
        animation_speed = 0.5,
        run_mode = "forward-then-backward",
      },
      east =
      {
        priority = "extra-high",
        width = 94,
        height = 74,
        line_length = 4,
        shift = {0.4375, -0.09375},
        filename = "__more_oil-production__/graphics/east.png",
        frame_count = 32,
        animation_speed = 0.5,
        run_mode = "forward-then-backward",
      },
      south =
      {
        priority = "extra-high",
        width = 89,
        height = 88,
        line_length = 4,
        shift = {0.40625, 0},
        filename = "__more_oil-production__/graphics/south.png",
        frame_count = 32,
        animation_speed = 0.5,
        run_mode = "forward-then-backward",
      },
      west =
      {
        priority = "extra-high",
        width = 91,
        height = 78,
        line_length = 4,
        shift = {0.09375, -0.0625},
        filename = "__more_oil-production__/graphics/west.png",
        frame_count = 32,
        animation_speed = 0.5,
        run_mode = "forward-then-backward",
      }
    },
})
did I mess up somewhere?
in advance thank you

Re: invisable entity

Posted: Mon Apr 25, 2016 11:13 pm
by Arch666Angel
You missed to copy over the animations={} definition/brackets around the actual sprites definitions.