Hi!
Thanks for the mod!
I have the same question: I have a mod with AAI loaders and a mod with miniloaders, and I want to use them together. Since the mod with miniloaders is incompatible, is it possible to make a change?
1. Fix the mod incompatibility.
2. Specify that the customization interface should NOT be displayed for miniloaders (sometimes I forget which loader it is and accidentally click on it, which results in an error). For example, if the loader name includes "miniloader," the interface won't be added, or something like that.
What are both loaders for? Miniloaders have a useful feature: they can pick up items from a conveyor belt, eliminating the need to build a separate line and separate them.
update, It seems to work like this:
-- when loader gui opened add custom gui
script.on_event(defines.events.on_gui_opened, function (event)
local entity = event.entity and (event.entity.type == "entity-ghost" and event.entity.ghost_type or event.entity.type)
-- Check that the loader name doesn't contain "miniloader"
if event.entity and event.entity.name and event.entity.name:find("miniloader") then
return -- don't create the interface
end
....