[1.1.105] Mods can set special signals (undefined behavior)

We are aware of them, but they have low priority. We have more important things to do. They go here in order not to take space in the main bug thread list.
Post Reply
BinarySpike
Burner Inserter
Burner Inserter
Posts: 16
Joined: Tue Jun 28, 2016 2:15 am
Contact:

[1.1.105] Mods can set special signals (undefined behavior)

Post by BinarySpike »

My mod is able to set special signals (anything, each, everything) on Inserter Control Behavior settings—even though those signals are not provided in the UI.

Typically, I expect a lua exception to be generated.

This is the offending code:

Code: Select all

cb.circuit_stack_control_signal = updateSignal(cb.circuit_stack_control_signal or {}, settings)
Where `updateSignal` returns one of the special signals.

See the image below:
Image

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [1.1.105] Mods can set special signals (undefined behavior)

Post by Rseding91 »

Technically speaking nothing breaks by setting them. Simply they don’t do anything special for inserters. They are simply treated special in places they get allowed.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Minor issues”