[Solved]Edit subgroup of other mods items
Posted: Thu Aug 16, 2018 3:48 pm
Hio,
I use some bigger mods like bobs (logistics, inserters etc), angelsrefining and quite a number of smaller mods. With that, the grouping of items gets kind of weird, irritating and annoying. Example:
Angelsrefining moves the "storage-tank" into subgroup "angels-fluid-control", which is fine. A smaller mod, "StorageTank2" leaves its items in "logistics", which makes me have storage tanks in two different groups. DeadlockLoaders also are more useful (in my view) in group Bobs Logistics with all the other belts instead of being alone in "logistics".
So I tried to write my own "mod" which simply changes the desired subgroups, which caused some problems, or better said nothing at all.
For data.lua, later also tried in data-final-fixes.lua
So doing this with a vanilla item, like the wooden chest, works without problems, but with items added by any mod it doesn't have any effect and only that. I used darkfrei's "_info-mod_0.2.1" which shows the items have the correct subgroup assigned as I wanted them changed, but ingame they stay in their original group.
I tried editing the original mods by adding the subgroup to the entities, which works in cases like DeadlockLoaders (moving them to Bobs Logistics group) or wooden pipes from Bio_Industries. In case of StorageTank2, strangely, not even that works.
I know this isn't too much to go on, but has anyone suggestions to what I might be missing or doing wrong? Probably something obvious I just didn't see, but this can't be that big of a problem?
Thanks in advance!
Photonik
I use some bigger mods like bobs (logistics, inserters etc), angelsrefining and quite a number of smaller mods. With that, the grouping of items gets kind of weird, irritating and annoying. Example:
Angelsrefining moves the "storage-tank" into subgroup "angels-fluid-control", which is fine. A smaller mod, "StorageTank2" leaves its items in "logistics", which makes me have storage tanks in two different groups. DeadlockLoaders also are more useful (in my view) in group Bobs Logistics with all the other belts instead of being alone in "logistics".
So I tried to write my own "mod" which simply changes the desired subgroups, which caused some problems, or better said nothing at all.
For data.lua, later also tried in data-final-fixes.lua
Code: Select all
data.raw.item["storage-tank2"].subgroup = "angels-fluid-control" -- doesn't work
data.raw.item["deadlock-loader-0"].subgroup = "bob-logistic-tier-0" -- doesn't work
data.raw.item["wooden-chest"].subgroup = "angels-fluid-control" -- works
I tried editing the original mods by adding the subgroup to the entities, which works in cases like DeadlockLoaders (moving them to Bobs Logistics group) or wooden pipes from Bio_Industries. In case of StorageTank2, strangely, not even that works.
I know this isn't too much to go on, but has anyone suggestions to what I might be missing or doing wrong? Probably something obvious I just didn't see, but this can't be that big of a problem?
Thanks in advance!
Photonik