Page 1 of 1

Item ignores subgroup and order

Posted: Wed Dec 20, 2017 12:36 pm
by Atria
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.

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
		},
})
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?

Re: Item ignores subgroup and order

Posted: Wed Dec 20, 2017 1:05 pm
by Bilka
Pretty sure the decon planner sorts by entity and not item order. Try changing the entity subgroup.

Re: Item ignores subgroup and order

Posted: Wed Dec 20, 2017 1:36 pm
by Atria
Oh, I didn't know entities also have subgroups. Thanks a lot, it works now.