circuit_connected_entities and circuit_connection_definitions only contains entries for entities directly connected via red or green wire, not all the entities in the corresponding red/green circuit networks (things connected through power poles do not show up for example).
If this is intended please add to the docs that these tables only include direct connections. Also how would I go about getting all the entities in the same circuit network? Do I need to resort to some kind of breadth first search or is there a better method?
[0.15.18]circuit_connected_entities missing indirect entity
Re: [0.15.18]circuit_connected_entities missing indirect entity
I think the docs are clear enough, it says the entities connected to this oneaaargha wrote:circuit_connected_entities and circuit_connection_definitions only contains entries for entities directly connected via red or green wire, not all the entities in the corresponding red/green circuit networks (things connected through power poles do not show up for example).
If this is intended please add to the docs that these tables only include direct connections. Also how would I go about getting all the entities in the same circuit network? Do I need to resort to some kind of breadth first search or is there a better method?
If it included an indirect web of all entities in the same network, it wouldn't be what the docs are describing,
I think it would be easy enough to do a search of all entities, and check those entities for connections etc
Re: [0.15.18]circuit_connected_entities missing indirect entity
Guess I was fooled by the "via the circuit network" part, I thought it actually meant the network connected to that wire.
Anyway, thanks for the very quick answer, and have a great day!
EDIT again: On second thought I'll not post any code as it's riddled with bugs
Anyway, thanks for the very quick answer, and have a great day!
EDIT again: On second thought I'll not post any code as it's riddled with bugs
