Unknown Error Message: "Wireless radar inner wires cannot be changed from Lua"
Posted: Fri Nov 15, 2024 9:59 am
Does anyone have any idea what "Wireless radar inner wires cannot be changed from Lua" mean as a fatal error when connecting a lamp prototype and a combinator prototype with circuit wires?
The error was on the last line.
Alternatively, this used to be done with connect_neighbour, if you know another way to do this now that would also be great.
Code: Select all
local input_wire_connectors = input.get_wire_connectors(true)
local lampctrl_wire_connectors = lampctrl.get_wire_connectors()
input_wire_connectors[defines.wire_connector_id.circuit_green].connect_to(lampctrl_wire_connectors[defines.wire_connector_id.circuit_green], false, defines.wire_type.green)
Alternatively, this used to be done with connect_neighbour, if you know another way to do this now that would also be great.
Code: Select all
input.connect_neighbour({target_entity=lampctrl, wire=defines.wire_type.green})