Item ignores subgroup and order
Posted: Wed Dec 20, 2017 12:36 pm
I have bunch of items that don't have a recipe (created by script) and their flags as { "hidden" } so they do clog up selection when configuring filter inserter and that sort of stuff.
But I have problem with deconstruction planner which ignores these flags and the items are shown. I'm thinking about creating new item group and subgroup and put them there so they are in their own place.
Problem is that item I created ignores subgroup and just add itself to "logistics" group and "storage" subgroup. I copied steel chest item prototype and modify it but for some reason it remembers where it came from.
It even ignores order and if I rewrite its order to "zzzzzzzz" it still appears before storage tanks which have order "b[fluid]-a[storage-tank]"
I'm attaching whole mod for anyone to try. Any ideas on how to get those items into new group?
But I have problem with deconstruction planner which ignores these flags and the items are shown. I'm thinking about creating new item group and subgroup and put them there so they are in their own place.
Code: Select all
data:extend(
{
{
type = "item-group",
name = "wide-chests",
order = "wide-chests",
icon = "__base__/graphics/item-group/logistics.png",
icon_size = 64
},
{
type = "item-subgroup",
name = "wide-chests-w",
group = "wide-chests",
order = "a",
},
{
type = "item",
name = "wide-chest-2",
icon = "__base__/graphics/icons/steel-chest.png",
icon_size = 32,
flags = { "hidden" },
subgroup = "wide-chests-w",
order = "wide-chest-2",
place_result = "wide-chest-2",
stack_size = 50
},
})
It even ignores order and if I rewrite its order to "zzzzzzzz" it still appears before storage tanks which have order "b[fluid]-a[storage-tank]"
I'm attaching whole mod for anyone to try. Any ideas on how to get those items into new group?