Request: WireConnectionPoint from LuaEntityPrototype
Posted: Sat Apr 29, 2023 11:09 am
Context:
If you can add a lookup to read the connection points at runtime (presumably a table with circuit_id and/or wire color as the key), that would be ideal.
I might hack in support for the main two combinators just by looking at the orientation, since I think every other vanilla entity can only be connected to the circuit network at most once, but I assume there are mods out there with more types of combinators.
And in general it would look nice to have the traces follow the wires instead of just going to the center of each entity.
I see that combinator prototypes have input_connection_points and output_connection_points, but I can't see any way to read them at runtime from LuaEntityPrototype.I've written a Belt Tracer mod that lets you trace a belt or a pipe through your factory, and I'd like to extend it to trace & highlight circuit networks as well.
I've figured out how to walk the circuit network with LuaEntity.circuit_connection_definitions but I'd like to display the traces touching the correct input/output points on each combinator.
If you can add a lookup to read the connection points at runtime (presumably a table with circuit_id and/or wire color as the key), that would be ideal.
I might hack in support for the main two combinators just by looking at the orientation, since I think every other vanilla entity can only be connected to the circuit network at most once, but I assume there are mods out there with more types of combinators.
And in general it would look nice to have the traces follow the wires instead of just going to the center of each entity.