Page 1 of 1

Negative color signals do not set lamp color

Posted: Mon Jul 26, 2021 11:15 pm
by Magick93
Lamps set to color signals flash between white and the selected color when the signal value overflows the interger max value.
Lamps change to white color when in the negative value of the integer cycle, then resume to signal color when in the positive side of the cycle.

Steps to replicate:
1. place arithmetic combinator, set it to sum a large number +300M or so, select signal is a same colored signal input and output.
2. use red/green wire to connect input and output of the combinator.
3. place lamp, connect lamp to red/green wire signal, set it to light of signal color when signal is =/ zero.

:mrgreen:

edit: its a cool bug allowing fun setups. I am sad to have to report it, I've kept it secret for some time for myself, perhaps it doesn't need fixing?

Re: Interger Overflow and colored signal lamp light

Posted: Tue Jul 27, 2021 12:03 am
by DaveMcW
I'm pretty sure this is intended. Only positive signals can be used to set color. Same for setting inserter filters.

Re: Negative color signals do not set lamp color

Posted: Wed Jul 28, 2021 4:42 pm
by Klonan
Yes it looks like it is intended, the code checks specifically that the signal is greater than 0.

Moving to not a bug