Setting output value of entity

Place to get help with not working mods / modding interface.
Post Reply
User avatar
Schorty
Fast Inserter
Fast Inserter
Posts: 185
Joined: Tue Aug 12, 2014 10:29 am
Contact:

Setting output value of entity

Post by Schorty »

Hi folks,

I'm tinkering on a new mod, which requires setting a circuit network value, but I can't figure out, how I get it to emmit any signal. I also looked through some other mods, but couldn't find some hints on this one. Do you have any idea?

Greetings,
Schorty
Tired of not being able to reduce the pollution? Try the Air-Filter-Mod
With this, you are able to use the pollution levels in your circuit network: Pollution detector

GopherAtl
Fast Inserter
Fast Inserter
Posts: 177
Joined: Sat Jan 31, 2015 7:54 pm
Contact:

Re: Setting output value of entity

Post by GopherAtl »

the circuit network access is currently... restricted. You can access it only indirectly through specific interfaces implemented for certain item types. The only way I've found to just output arbitrary signals is to use a constant combinator, where get_circuit_condition returns an array of the 15 slots with type and quantity, and you can pass the same kind of array in to set_circuit_condition to set the values to what you want to output (see the source for my logistic combinator, thread linked in my sig, github link from there, for an example doing this)
My Mods:
Nixie Tubes - numeric displays for your circuit networks!
Logistic Combinators - use logistics values in circuit logic! -
Autowire - automate red/green wire connections

User avatar
Schorty
Fast Inserter
Fast Inserter
Posts: 185
Joined: Tue Aug 12, 2014 10:29 am
Contact:

Re: Setting output value of entity

Post by Schorty »

That sounds promising. I'll have a look into this. Thank you :)
Tired of not being able to reduce the pollution? Try the Air-Filter-Mod
With this, you are able to use the pollution levels in your circuit network: Pollution detector

Post Reply

Return to “Modding help”