Circuit and logistics networks
Posted: Sat May 24, 2014 10:24 pm
Hey all, I have started working on a mod to add some basic logic gates to the game as I've found the smart-inserters slightly lacking but have hit a snag. Is there a way to interact with the circuit network from lua? I've read the wiki but have had no luck. Any ideas? I could probably iterate over every entity in the area looking for wires but I would prefer to avoid doing that as this would be slow and something that would have to be done quite often. Do wires even show up as an entities? looking at the prototype list they are not there but I could be missing something obvious.
On a side note, is there any way to query the logistics network or to see which containers are part of the logistics network. This one is probably easier as I could just search the area for roboports, work out the size of the network and just request all smart-containers in that area but I would like to avoid this.
On a side note, is there any way to query the logistics network or to see which containers are part of the logistics network. This one is probably easier as I could just search the area for roboports, work out the size of the network and just request all smart-containers in that area but I would like to avoid this.