I've been looking around the wiki and the API documentation, and even Googling but I can't find an answer to this. What I want to do is create an entity that has read/write access to the circuit network(s) it's hooked up to. And not just in a combinator sort of way where it can only do a limited number of things. I want to actually import the values into my lua code, crunch some numbers, and export them back into the circuit network again.
So that, for example, I can write some Lua code to emulate a PID controller, or find the square root of the number of inserters. Maybe even take arbitrary player-written Lua code and run it in a sandbox, ComputerCraft-style.
Any help would be appreciated. I'm an experienced programmer, but totally new to Factorio modding.
How do I interact with a circuit network?
How do I interact with a circuit network?
In my infinite ambivalence.
Re: How do I interact with a circuit network?
The circuit network doesn't operate in a way that you could do this without an entity.
All of the contents of the circuit network are based off entities inputting those numbers each game tick. Without the entity there's no number so you can't "send a number" into the circuit network and expect it to stay.
Read access to the signals is coming in 0.13, write access can be done using constant combinators.
All of the contents of the circuit network are based off entities inputting those numbers each game tick. Without the entity there's no number so you can't "send a number" into the circuit network and expect it to stay.
Read access to the signals is coming in 0.13, write access can be done using constant combinators.
If you want to get ahold of me I'm almost always on Discord.
Re: How do I interact with a circuit network?
Interesting! Thanks a lot for the reply. When you say that read access is coming in 0.13, could you be more specific? It's okay if you guys just can't talk about that yet, but I'd love to be pointed in the right direction. Maybe to a blog post mentioning a new item or something? But either way, thanks a lot!Rseding91 wrote:The circuit network doesn't operate in a way that you could do this without an entity.
All of the contents of the circuit network are based off entities inputting those numbers each game tick. Without the entity there's no number so you can't "send a number" into the circuit network and expect it to stay.
Read access to the signals is coming in 0.13, write access can be done using constant combinators.

In my infinite ambivalence.
- brunzenstein
- Smart Inserter
- Posts: 1155
- Joined: Tue Mar 01, 2016 2:27 pm
- Contact:
Re: How do I interact with a circuit network?
Also the chests are not clear in the announcement. Are all all of them in .13 "intelligent" eg. connected to the local circuit and can all be later "researched" to become network compatible?bluMyst wrote: Interesting! Thanks a lot for the reply. When you say that read access is coming in 0.13, could you be more specific? It's okay if you guys just can't talk about that yet, but I'd love to be pointed in the right direction. Maybe to a blog post mentioning a new item or something? But either way, thanks a lot!