Negative color signals do not set lamp color

Bugs that are actually features.
Post Reply
Magick93
Burner Inserter
Burner Inserter
Posts: 5
Joined: Thu Jun 10, 2021 9:45 am
Contact:

Negative color signals do not set lamp color

Post 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?

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3699
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Interger Overflow and colored signal lamp light

Post by DaveMcW »

I'm pretty sure this is intended. Only positive signals can be used to set color. Same for setting inserter filters.

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5148
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Negative color signals do not set lamp color

Post 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

Post Reply

Return to “Not a bug”