[2.0.55] LEDs Display Different Colors When Using Packed RGB Values

Things that has been reported already before.
thetinkeringtypist
Manual Inserter
Manual Inserter
Posts: 1
Joined: Wed Jun 25, 2025 2:09 am
Contact:

[2.0.55] LEDs Display Different Colors When Using Packed RGB Values

Post by thetinkeringtypist »

Recently I was creating a blueprint where I was coloring LEDs with the color of a quality recipe that was being crafted. However, when I was testing this, I noticed that LEDs display different colors when using RGB triples (manually coloring individual LEDs) and packed RGB values (computed and packed into a single signal). To demonstrate this, I built three examples and placed them side by side:

1. Using "always-on" LEDs with RGB triples. No circuit network.
2. Using manually packed RGB values connected to LEDs. Using a constant combinator.
3. Using the circuit network to create packed RGB values from composite R, G, and B signals. Using a constant combinator, three arithmetic combinators, and a single decider combinator.

I wrote some simple code to verify that the packed integer values were correct and use online RGB to integer calculators as further validation. It's a small bug that doesn't have serious impact on gameplay, but it triggers my OCD a little.

Blueprint and screenshot of example attached.

Screenshot of LED coloring discrepancy
Screenshot of LED coloring discrepancy
leds-rgb-bug.png (2.62 MiB) Viewed 146 times
Attachments
packed-rgb-bug-blueprint.txt
Blueprint
(3.18 KiB) Downloaded 12 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4029
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.55] LEDs Display Different Colors When Using Packed RGB Values

Post by boskid »

Duplicate 28494 (125076 121574)
Post Reply

Return to “Duplicates”