[0.12.22][posila] vehicle coliding with decorative makes game crash
Posted: Sat Feb 20, 2016 7:30 pm
when a vahicle colides with a decorative entity which have a collision mask the game crashes with nothing getting put in the log (Microsoft windows : Factorio stopped functionning ...)
the entity prototype concerned by the bug :
it seems to me that the problem comes from decorative entities not handling correctly collision masks or health
(player does not walk through the entity and does not crash the game)
the entity prototype concerned by the bug :
Code: Select all
{
type = "decorative",
name = "air-vent",
flags = {"placeable-neutral", "not-on-map"},
collision_mask = { "item-layer", "object-layer", "player-layer", "water-tile"},
icon = "__Subsurface__/graphics/icons/air_vent_11_icon.png",
minable = {mining_time = 1, result = "air-vent"},
selection_box = {{-0.5, -0.5}, {0.5, 0.5}},
collision_box = {{-0.4, -0.4}, {0.4, 0.4}},
render_layer = "decorative",
max_health = 350,
order = "z",
pictures =
{
{
filename = "__Subsurface__/graphics/entities/air_vent_11.png",
width = 64,
height = 64,
}
},
},
(player does not walk through the entity and does not crash the game)