Page 1 of 1
Need help with error.
Posted: Tue Dec 09, 2014 5:48 pm
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
Re: Need help with error.
Posted: Tue Dec 09, 2014 6:15 pm
by L0771
Entity "giant-chest" doesn't have "order" property
Try add this in "giant-chest" entity
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}
}
},
Re: Need help with error.
Posted: Tue Dec 09, 2014 7:01 pm
by Mackan90096
[quote="L0771"]Entity "giant-chest" doesn't have "order" property
Try add this in "giant-chest" entity
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
