Skip to content
This repository was archived by the owner on Jun 6, 2025. It is now read-only.
This repository was archived by the owner on Jun 6, 2025. It is now read-only.

Mod crashes when pasting Infinity Loader over Constant Combinator that already has a matching filter in a different slot. #240

@kryojenik

Description

@kryojenik

Description

The mod Editor Extensions (2.5.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event EditorExtensions::on_entity_settings_pasted (ID 37)
Filter conflicts with filter in slot 4.
stack traceback:
[C]: in function 'set_slot'
EditorExtensions/scripts/infinity-loader.lua:92: in function 'copy_from_loader_to_combinator'
EditorExtensions/scripts/infinity-loader.lua:189: in function 'handler'
core/lualib/event_handler.lua:47: in function <core/lualib/event_handler.lua:45>

A cursed, naive workaround would be to wrap the set_slot call in pcall, or to walk the LogisticSection::filters array checking each for a match of the signal you're setting.

I also filed this on the factorio forums, because this does seem like a deficiency in the API instead of a thing mods should each individually need to handle, potentially with pcalls.
https://forums.factorio.com/viewtopic.php?t=127891

Reproduction

Infinity loader with filter set for Iron Ore (Normal, on either or both lanes).
Constant Combinator with Iron Ore (Normal, any quantity) set on any slot greater than 2.

Shift-R Click on the loader, Shift-L Click the combinaor an observe crash.

Image

Image

Image

LogisticSection-RussianRoulette.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions