Need help with error.

Place to get help with not working mods / modding interface.
Mackan90096
Inserter
Inserter
Posts: 25
Joined: Mon Dec 08, 2014 7:59 am
Contact:

Need help with error.

Post by Mackan90096 »

Hi! I'm making a mod.
Whenever I launch it, I get a box pop up and say
EntityPrortype Unkown key:"entity-name.giant-chest" doesn't have an order string and there is no item to place it.
How do I fix this error?

Code can be found at https://github.com/Mackan90096/Factorio_Mod
<Trangar> If it doesn't run factorio, it's not worth buying
* mngrif back in my day..
<Trangar> We didn't have schools
<mngrif> WE HAD STICKS.
immaturity is the concentrated essence from which happiness is made
User avatar
L0771
Filter Inserter
Filter Inserter
Posts: 516
Joined: Tue Jan 14, 2014 1:51 pm
Contact:

Re: Need help with error.

Post by L0771 »

Entity "giant-chest" doesn't have "order" property
Try add this in "giant-chest" entity

Code: Select all

order = a,
I don't know about order :) but this must work

Code: Select all

{
    type = "container",
    name = "giant-chest",
    icon = "__base__/graphics/icons/wood-chest.png",
    flags = {"placeable-neutral", "player-creation"},
    minable = {mining_time = 1, result = "giant-chest"},
    max_health = 200,
    corpse = "small-remnants",
    open_sound = { filename = "__base__/sound/metallic-chest-open.ogg", volume=0.65 },
    close_sound = { filename = "__base__/sound/metallic-chest-close.ogg", volume = 0.7 },
    order = a,
    resistances =
    {
      {
        type = "fire",
        percent = 90
      }
    },
    collision_box = {{-0.35, -0.35}, {0.35, 0.35}},
    selection_box = {{-0.5, -0.5}, {0.5, 0.5}},
    fast_replaceable_group = "container",
    inventory_size = 256,
    picture =
    {
      filename = "__base__/graphics/entity/wood-chest/wood-chest.png",
      priority = "extra-high",
      width = 48,
      height = 34,
      shift = {0.2, 0}
    }
  },
Mackan90096
Inserter
Inserter
Posts: 25
Joined: Mon Dec 08, 2014 7:59 am
Contact:

Re: Need help with error.

Post by Mackan90096 »

[quote="L0771"]Entity "giant-chest" doesn't have "order" property
Try add this in "giant-chest" entity

Code: Select all

order = a,
I don't know about order :) but this must work

Code: Select all

{
    type = "container",
    name = "giant-chest",
    icon = "__base__/graphics/icons/wood-chest.png",
    flags = {"placeable-neutral", "player-creation"},
    minable = {mining_time = 1, result = "giant-chest"},
    max_health = 200,
    corpse = "small-remnants",
    open_sound = { filename = "__base__/sound/metallic-chest-open.ogg", volume=0.65 },
    close_sound = { filename = "__base__/sound/metallic-chest-close.ogg", volume = 0.7 },
    order = a,
    resistances =
    {
      {
        type = "fire",
        percent = 90
      }
    },
    collision_box = {{-0.35, -0.35}, {0.35, 0.35}},
    selection_box = {{-0.5, -0.5}, {0.5, 0.5}},
    fast_replaceable_group = "container",
    inventory_size = 256,
    picture =
    {
      filename = "__base__/graphics/entity/wood-chest/wood-chest.png",
      priority = "extra-high",
      width = 48,
      height = 34,
      shift = {0.2, 0}
    }
  },
[/quote]
I added the order-stuff to my enity.lua file, and it's working! Thanks :D
<Trangar> If it doesn't run factorio, it's not worth buying
* mngrif back in my day..
<Trangar> We didn't have schools
<mngrif> WE HAD STICKS.
immaturity is the concentrated essence from which happiness is made
Post Reply

Return to “Modding help”