Direct circuit output and imput

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
thelordodin
Fast Inserter
Fast Inserter
Posts: 153
Joined: Fri Jan 06, 2017 1:54 am
Contact:

Direct circuit output and imput

Post by thelordodin »

Hi

Output:
I'm trying to implement a radio-transmission mod.
I've checked about 20 different mods (including skan-radio which is one i fork mine from) and all they use constant combinator for output.

But constant combinator have limit of 20 signals and, for this reason, is limited for transferring info.
Example: it cant transfer some computation done via big complex of combinators based on logistic network data - it's far more than 20 signals.

I thought about making 100 internal combinators for my receiver, but it seems a bit too much if i have say 1000 receivers.

Is there a way to write signals directly to circuit?
And if no - can this be implemented?


Input:
Most mods use lamps to implement circuit input. This is ok, but allowing to make pins on entity and ability to read this pins would be great.
Example: i want to implement a complex combinator (computer/server), with 8 inputs. For now, again, i have to make 8 disabled lamps to connect it...
Rseding91
Factorio Staff
Factorio Staff
Posts: 15896
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Direct circuit output and imput

Post by Rseding91 »

thelordodin wrote: Is there a way to write signals directly to circuit?
No. The core of the circuit network works by having something own the signals being sent. There's no way to send a signal without something existing doing the sending and stopping sending later.

That something is always an entity.
If you want to get ahold of me I'm almost always on Discord.
thelordodin
Fast Inserter
Fast Inserter
Posts: 153
Joined: Fri Jan 06, 2017 1:54 am
Contact:

Re: Direct circuit output and imput

Post by thelordodin »

Then maybe create another entity, say "circuit-output" which will allow to put unlimited number of parameters?

I've seen your post about inserters and 5 filter slots and I don't propose to change this 20 to unlimited, but, you manage circuit having unlimited signals somehow so I don't think that dynamic input for it will hurt any perfomance.
NiftyManiac
Long Handed Inserter
Long Handed Inserter
Posts: 90
Joined: Sat Jan 21, 2017 12:01 am
Contact:

Re: Direct circuit output and imput

Post by NiftyManiac »

Constant combinators have an item_slot_count parameter that defines the number of slots, so you can make your own entity with hundreds of slots. In StickyNotes I use this to store lots of data.
thelordodin
Fast Inserter
Fast Inserter
Posts: 153
Joined: Fri Jan 06, 2017 1:54 am
Contact:

Re: Direct circuit output and imput

Post by thelordodin »

Wow, thanks a lot!
ukezi
Filter Inserter
Filter Inserter
Posts: 392
Joined: Sat Jul 02, 2016 11:02 pm
Contact:

Re: Direct circuit output and imput

Post by ukezi »

you could expose the pointer to the circuit state of an entity. if you than copy that pointer to a different entity those would have the same state and would connect two circuit networks. I don't know if that would work with the way the evaluation of circuit networks is done, but that would be a way.
justarandomgeek
Filter Inserter
Filter Inserter
Posts: 303
Joined: Fri Mar 18, 2016 4:34 pm
Contact:

Re: Direct circuit output and imput

Post by justarandomgeek »

NiftyManiac wrote:Constant combinators have an item_slot_count parameter that defines the number of slots, so you can make your own entity with hundreds of slots. In StickyNotes I use this to store lots of data.
It would be kind of nice to have a "dynamic" sized combinator, instead of just picking arbitrarily large numbers (i've been using 500 lately) to make sure any possible data fits...
Post Reply

Return to “Modding interface requests”