TL;DR; Desire to filter / limit the signals presented by the "choose-elem-button" LuaGuiElement type.
Specifically in the case of implementing an extension to a constant combinator (e.g. https://mods.factorio.com/mod/LTN_Combinator_Modernized) the special signals (signal-each, signal-anything, signal-everything) don't make sense. The in game constant combinator has these signals filtered out in its "choose-elem-button" panel. In fact, if they are selected in a mod an applied to the underlying constant combinator entity it crashes the game. I'm working to trap for these selections in the mod, but ideally it would be best to not present invalid selections to begin with.
Crash report
Constant combinator: invalid signal in parameters: signal-anything
Vanilla Constant Combinator
LTN Combinator using a choose-elem-button type=signal
These signals were added to the "choose-elem-button" panel after a bug report in 0.18.24. via viewtopic.php?f=11&t=84877.
API: Add PrototypeFilter for type="signal"
Re: API: Add PrototypeFilter for type="signal"
Potentially related: viewtopic.php?f=28&t=97127
-
- Burner Inserter
- Posts: 16
- Joined: Tue Jun 28, 2016 2:15 am
- Contact:
Re: API: Add PrototypeFilter for type="signal"
+1 because it seems train fluid conditions already have something like this implemented and it would make my mod look much nicer: