Page 1 of 1

Circuit and logistics networks

Posted: Sat May 24, 2014 10:24 pm
by JamesOFarrell
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.

Re: Circuit and logistics networks

Posted: Sat May 24, 2014 10:37 pm
by FreeER
...I don't believe that any of this is possible, at this time. The current circuit network (if I remember correctly) was not the intended design but a more of a prototype/proof-of-concept by the devs and they really didn't spend a huge amount of time on it (and less on the modding interface)...I think there has been some progress on it in the 0.10 dev build, however, so you may get lucky there :)

Re: Circuit and logistics networks

Posted: Sat May 24, 2014 10:42 pm
by JamesOFarrell
Well damn, that is frustrating. Here is hoping .10 brings some logic love. I guess I'll have to come up with a new idea to learn the modding interface, maybe a active/passive provider train cart...