Item ignores subgroup and order

Place to get help with not working mods / modding interface.
Post Reply
Atria
Long Handed Inserter
Long Handed Inserter
Posts: 57
Joined: Sat Jul 09, 2016 10:25 am
Contact:

Item ignores subgroup and order

Post 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?
Attachments
WideChests_1.9.3.zip
(25.18 KiB) Downloaded 72 times

Bilka
Factorio Staff
Factorio Staff
Posts: 3133
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Item ignores subgroup and order

Post by Bilka »

Pretty sure the decon planner sorts by entity and not item order. Try changing the entity subgroup.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Atria
Long Handed Inserter
Long Handed Inserter
Posts: 57
Joined: Sat Jul 09, 2016 10:25 am
Contact:

Re: Item ignores subgroup and order

Post by Atria »

Oh, I didn't know entities also have subgroups. Thanks a lot, it works now.

Post Reply

Return to “Modding help”