Lane Filtered Loaders


Loaders can be selected and changed to have lane-specific filters. Does not add loaders, another mod must be used to add them. Requested by Sunrosa on Discord.

Tweaks
3 months ago
2.0
1.97K
Logistics

b [not an issue] Crash with Miniloader

4 months ago
(updated 4 months ago)

Currently selecting the lane-filter on Miniloder-Redux Loaders causes a crash, the generic filter works fine tho. i can understand that supporting Miniloaders is out of the scope for this mod since they are coded as inserters as far as i know. would it be possible to ignore miniloader entrys from showing the gui, to prevent users running into crashes, possible?

4 months ago

Please include the error when reporting crashes

4 months ago

The mod Lane Filtered Loaders (1.1.11) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event lane-filtered-loaders::on_gui_checked_state_changed (ID 3)
The mod Miniloader (Redux) (0.7.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event miniloader-redux::script_raised_built (ID 90)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__miniloader-redux
/scripts/controller.lua:574: in function 'reconfigure'
miniloader-redux/scripts/snapping.lua:195: in function 'updateNeighborLoaders'
miniloader-redux/scripts/snapping.lua:202: in function 'updateLoaders'
miniloader-redux/scripts/event-setup.lua:170: in function 'handler'
miniloader-redux/stdlib/event/event.lua:345: in function 'pcall'
miniloader-redux/stdlib/event/event.lua:362: in function 'dispatch_event'
miniloader-redux/stdlib/event/event.lua:441: in function <miniloader-redux/stdlib/event/event.lua:399>
stack traceback:
[C]: in function 'create_entity'
lane-filtered-loaders/control.lua:126: in function 'replace'
lane-filtered-loaders/control.lua:195: in function <lane-filtered-loaders/control.lua:189>

4 months ago

I don't see why its attempted to be used with miniloaders so I'm just going to mark it as incompatible.

a month ago
(updated a month ago)

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
....
a month ago

Maybe. Most likely not. I'm working on a combined version of my loader mods to fix all of the longstanding issues, so that would be where I add it if I do.

a month ago

Oh, great! I can't wait for the combined version!

New response