Page 1 of 1

Extend logic combinator functionality

Posted: Thu Feb 22, 2018 10:56 pm
by CzBuCHi
Currently logic combinator can "execute" this code:

Code: Select all

if (A > B) {
  return C;
}
I would love to see this extended, so it would be able "execute" this code:

Code: Select all

if (A > B) {
  return C;
} else {
  return D;
}

Re: Extend logic combinator functionality

Posted: Thu Feb 22, 2018 11:30 pm
by Tekky
That can easily be accomplished with a second decider combinator.

Although it may be nice if the number of combinators necessary is lower, this would also increase the complexity (and the size of the GUI) of the individual combinators.

Therefore, I am rather against the suggestion.

Re: Extend logic combinator functionality

Posted: Fri Feb 23, 2018 7:33 am
by Atlas
I'll support anything that would lead to decreasing the area of combinator contraptions. Else function is a standard counterpart to If function, and so it should also be in Factorio.

Re: Extend logic combinator functionality

Posted: Fri Feb 23, 2018 8:10 am
by Engimage
If you can achieve something with existing tools (without crazy complexity) it will not be added to Factorio.
And as Tekky said just add another decider to achieve your goal. Maybe not perfect but it works so...

Re: Extend logic combinator functionality

Posted: Fri Feb 23, 2018 11:15 am
by McDuff
Making things smaller is a valid tech tree level of progression in my view. After all, you can make any number of iron plates with stone furnaces and yellow belts, so why do you need blue belts and electric furnaces with speed modules? You can "already do it" with existing technology.

Fact is, as you get bigger and more complicated, it makes sense to be able to compress some of the basic functions into a smaller space.

Re: Extend logic combinator functionality

Posted: Fri Feb 23, 2018 11:47 am
by DanGio
Tekky wrote:Although it may be nice if the number of combinators necessary is lower, this would also increase the complexity (and the size of the GUI) of the individual combinators.
I agree. On the other hand, combinators are already an advanced element of the game, and GUI is already getting refined in near future. I'm sure devs will be able to fit this new functionality in a nice way. :)

The added complexity in combinator behavior is quite null I think : if you understand "if" , you understand "else" . And if you leave "else" blank, the combinator behaves like before.

Re: Extend logic combinator functionality

Posted: Fri Feb 23, 2018 12:24 pm
by McDuff
Yeah, an "else" doesn't really add much to a GUI.