Having trouble Sorting items sub groups.

Place to get help with not working mods / modding interface.
Post Reply
User avatar
sporefreak
Fast Inserter
Fast Inserter
Posts: 181
Joined: Sun Apr 17, 2016 12:55 am
Contact:

Having trouble Sorting items sub groups.

Post by sporefreak »

I made a small mod (Short under pipes) mainly for my own uses and uploaded it to the mod portal, and ingame decided it would fit nicely in the crafting menu with another mod (Flow Control). However I am having trouble getting them to be together on the crafting menu, I contacted the dev of Flow Control and he helped me quite a bit and gave me the following code to put into data-updates.lua:

Code: Select all

if mods["Flow Control"] then
  local flowgroup = data.raw.item["pipe-elbow"].subgroup
  data.raw.item["15-under-pipe"].subgroup = flowgroup
  -- data.raw.item["9-under-pipe"].subgroup = flowgroup
  data.raw.item["5-under-pipe"].subgroup = flowgroup
  data.raw.item["2-under-pipe"].subgroup = flowgroup
end
Flow Control has an option to have its own subgroup or join with the default pipes.
When Flow control is put in with the default pipes my pipes seem to correctly join them, However when I put flow control pipes into their own subsection my pipes will be put into a seperate subsection not in line with Flow Control, Flow control has 6 pipes total and my mod has 3, so I would like to make it so both my pipes and Flow Controls to appear on the same line.

Post Reply

Return to “Modding help”