Crash when hovering over item [SOLVED]
Posted: Tue Nov 22, 2016 4:26 pm
I have been developing a mod for a while now, and I added a new ammo type item, and it appears in the game correctly but if I hover over it in the inventory it crashes the game.
Code probably causing error:
Factorio log file is as an attachment.
Any help is appreciated
Code probably causing error:
Code: Select all
--stone
{
type = "ammo",
name = "rock",
icon = "__military-extended__/graphics/ammo/stone.png",
flags = {"goes-to-main-inventory"},
ammo_type =
{
category = "throwable",
action =
{
{
type = "direct",
action_delivery =
{
type = "instant"
}
},
{
type = "direct",
action_delivery =
{
type = "projectile",
projectile = "stone",
starting_speed = 0.8,
max_range = 22
}
}
}
},
magazine_size = 1,
subgroup = "ammo",
order = "d[rock]",
stack_size = 100
},
Any help is appreciated