Page 1 of 1

Custom constant value output for combinators

Posted: Fri Jul 06, 2018 9:37 pm
by cyfrov
TL;DR
Slight tweak to combinators to allow for much more compact and concise circuit represenetation and improve game performance.

What ?
The arithmetic combinator should be able to take the "EACH" input as either operand to the function, i.e. (A) - (Each)

The decider combinator should have the binary output be editable. Currently, it gives the option to output 1, when the condition is met, user should be able to set the constant value output.
i.e. When (A > 0) return (-1).

The decider combinator should have an extra option where instead of passing the input count, it passes the value of another signal.
i.e. When (each > 0) return (A as each)
Why ?
The main reason for this suggestion is to make expression of logic much more compact and accessible, by reducing the need for all those signal value inverters (Arithmetic times negative constant) .
In terms of game performance, it should be rather free and simple to implement, as well as improve game performance by reducing the number of combinators needed in a circuit network.

Re: Custom constant value output for combinators

Posted: Fri Jul 06, 2018 10:06 pm
by thedarkbunny
Agreed on all of the above, plus another thing that belongs in this category:

For decider combinators, comparisons should be possible between "each" and "everything", or between "each" and "anything". As it stands, getting the maximum value (or the values tied for maximum) of a group of signals requires a complicated error-prone beast of a circuit when it would ideally be a single "each >= everything, output each" decider combinator.

Re: Custom constant value output for combinators

Posted: Sat Jul 07, 2018 7:12 am
by Optera
I often wanted to set decider outputs to a specific value on a trigger.

Re: Custom constant value output for combinators

Posted: Tue Jul 10, 2018 2:25 pm
by BloodyRain2k
I'd love the suggested improvements for the deciders, I actually came here to suggest that too.

In addition to the suggested improvement for the arithmetic I'd also like to add the options to negate the inputs and output.

As in an arithmetic set to A + B = C should let me toggle a negate for A, B or C (or all of them).

The obvious WHY? would be: why just not use more arithmetics with "* -1"?
And that's also the answer, so we don't need to spam them just for negating a value.

I really love Factorio's logic system, even if basic logic gates are a little difficult to understand at first, but the one thing I really dislike about it is the negate spam of arithmetics : (

Being able to individually negate the inputs and output would really make that easier.

Re: Custom constant value output for combinators

Posted: Mon Jan 14, 2019 6:53 am
by cyfrov
Yeah, plus, with fewer delays, the z^-1 analysis becomes slightly more bearable to achieve a stable feedback control system