Need help on groups

Place to get help with not working mods / modding interface.
LvCoetzer
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sun Mar 27, 2016 10:33 pm
Contact:

Need help on groups

Post by LvCoetzer »

Hello there guys, I've started developing a mod which will add quantum mechanics to the game, but I am struggling to get the sub groups to work and to let the actual group appear in the crafting area. My item-groups.lua is as follows:

Code: Select all

data:extend({
--Main item group
	{
    type = "item-group",
    name = "quantum-stuff",
	icon = "__Quantum_Stuff__/graphics/group_icon.png",
    order = "f",
	inventory_order = "f"
	
  },
-- Crafting materials subgroup
  {
	type = "item-subgroup",
	name = "material",
	group = "quantum-stuff",
	order = "a"
  },
-- Entity subgroup
  {
	type = "item-subgroup",
	name = "gate",
	group = "quantum-stuff",
	order = "b"
  }
})
When I try to launch the game, it tells me that the sub groups don't exist. What am I doing wrong?
Here is the item.lua:

Code: Select all

data:extend({
	{
		type = "item",
		name = "quantum-chip",
		icon = "__Quantum_Stuff__/graphics/icons/quantum-chip.png",
		flags = {"goes-to-main-inventory"},
		--subgroup = "material",
		order = "a[quantum-chip]",
		stack_size = 50
	},
	{
		type = "item",
		name = "quantum-gate",
		icon = "__Quantum_Stuff__/graphics/icons/quantum-gate.png",
		flags = {"goes-to-quickbar"},
		--subgroup = "gate",
		order = "b[quantum-gate]",
		--place_result = "quantum-gate",
		stack_size = 2
	}
})
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Need help on groups

Post by ssilk »

Moved to the right board.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Post Reply

Return to “Modding help”