[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: 25
Joined: Tue Apr 25, 2017 4:51 pm
Contact:

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

Post by utoxin » Fri Aug 18, 2017 11:09 pm

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: 963
Joined: Tue Sep 23, 2014 7:10 am
Contact:

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

Post by Twinsen » Fri Sep 29, 2017 1:07 pm

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: 229
Joined: Wed Jun 08, 2016 6:16 pm
Contact:

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

Post by The Eriksonn » Mon Oct 02, 2017 6:32 am

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: 3151
Joined: Tue Jul 12, 2016 9:03 am
Contact:

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

Post by eradicator » Mon Oct 02, 2017 8:13 am

Can you make this available on the API too? (In case you didn't already.)
Author of: Hand Crank Generator, Screenshot Hotkey 2.0
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: 963
Joined: Tue Sep 23, 2014 7:10 am
Contact:

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

Post by Twinsen » Mon Oct 02, 2017 4:06 pm

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: 229
Joined: Wed Jun 08, 2016 6:16 pm
Contact:

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

Post by The Eriksonn » Tue Oct 03, 2017 7:24 am

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”

Who is online

Users browsing this forum: No registered users