"Failed to load mods: Error in assignID: item-subgroup with name 'chemistry' does not exist.
Source: kr-advanced-chemical-plant(Item)."
Is the 'chemistry'
sub-group added from another mod?
May need to add an if check around there.
I changed data.lua item code to this, seems to work now.
--item
local chemical_plant_item = {
type = "item",
name = "kr-advanced-chemical-plant",
icon = graphics_path .. "icons/advanced-chemical-plant.png",
icon_size = 64,
icon_mipmaps = 4,
order = "e[chemical-plant]-b[advanced-chemical-plant]",
place_result = "kr-advanced-chemical-plant",
stack_size = 50,
}
--check if 'chemistry' subgroup exists
if data.raw["item-subgroup"]["chemistry"] then
chemical_plant_item.subgroup = "chemistry"
else
chemical_plant_item.subgroup = "production-machine"
end
data:extend({chemical_plant_item})