[Twinsen] Arithmetic Combinator: First input can't set constant

This subforum contains all the issues which we already resolved.
Post Reply
utoxin
Inserter
Inserter
Posts: 35
Joined: Tue Apr 25, 2017 4:51 pm
Contact:

[Twinsen] Arithmetic Combinator: First input can't set constant

Post by utoxin »

The second input of the arithmetic combinator allows you to set a constant. The first input does not. This means that for certain operations, you have to use a constant combinator to put the constant you need into a signal, and read that in the first input. For example, if I want to do the operation 2^SIGNAL, I have to use a constant combinator to put the number 2 into a virtual signal, and then use that signal to do CONSTANT^SIGNAL.

Twinsen
Factorio Staff
Factorio Staff
Posts: 1329
Joined: Tue Sep 23, 2014 7:10 am
Contact:

Re: [Twinsen] Arithmetic Combinator: First input can't set constant

Post by Twinsen »

While more of a feature request, I implemented it since it makes sense.

I made it so both inputs of the Arithmetic Combinator can use a constant.
Implemented in Version: 0.16.0

The Eriksonn
Fast Inserter
Fast Inserter
Posts: 230
Joined: Wed Jun 08, 2016 6:16 pm
Contact:

Re: [Twinsen] Arithmetic Combinator: First input can't set constant

Post by The Eriksonn »

is it then so that you can set "each" into the second slot also, so i can for examle do each^each or something?
that would be good.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [Twinsen] Arithmetic Combinator: First input can't set constant

Post by eradicator »

Can you make this available on the API too? (In case you didn't already.)
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Twinsen
Factorio Staff
Factorio Staff
Posts: 1329
Joined: Tue Sep 23, 2014 7:10 am
Contact:

Re: [Twinsen] Arithmetic Combinator: First input can't set constant

Post by Twinsen »

The lua api changed also, you will see the new usage format in the docs.

As far as each^each I don't plan on adding that.

The Eriksonn
Fast Inserter
Fast Inserter
Posts: 230
Joined: Wed Jun 08, 2016 6:16 pm
Contact:

Re: [Twinsen] Arithmetic Combinator: First input can't set constant

Post by The Eriksonn »

Twinsen wrote:As far as each^each I don't plan on adding that.
so 100/each wont work either?

aww :(

Post Reply

Return to “Resolved Problems and Bugs”