[0.15.18]circuit_connected_entities missing indirect entity

Bugs that are actually features.
aaargha
Filter Inserter
Filter Inserter
Posts: 337
Joined: Wed Dec 07, 2016 8:35 am
Contact:

[0.15.18]circuit_connected_entities missing indirect entity

Post by aaargha »

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?
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5412
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.15.18]circuit_connected_entities missing indirect entity

Post by Klonan »

aaargha 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?
I think the docs are clear enough, it says the entities connected to this one

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
aaargha
Filter Inserter
Filter Inserter
Posts: 337
Joined: Wed Dec 07, 2016 8:35 am
Contact:

Re: [0.15.18]circuit_connected_entities missing indirect entity

Post by aaargha »

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 :D
Post Reply

Return to “Not a bug”