[2.1.17] Lamp color mapping (unexpected behaviour)

This subforum contains all the issues which we already resolved.
untitled7
Burner Inserter
Burner Inserter
Posts: 10
Joined: Sat Oct 26, 2024 12:51 pm
Contact:

[2.1.17] Lamp color mapping (unexpected behaviour)

Post by untitled7 »

On a Lamp connected to a circuit network, when checking "Use colors" and selecting "Color mapping" the tooltip says "Color is based on provided color signals."

Two things:
First: Naturally the colors need to have a hierarchy over one another, because if all are provided with a value of "1", something has to be picked. Then what I, as a user would expect is that the colors are ordered how they are appearing in the menu, like:
red -> green -> blue -> cyan -> pink -> yellow -> white -> grey -> black
however, the actual order is:
red -> green -> blue -> yellow -> pink -> cyan -> white -> grey -> black
with yellow/pink/cyan flipped

Second: When a lamp receives multiple color signals at different values, I would expect the lamp to pick the color of the highest value. a 1M green still gets overwritten by 1 red.
(negative values being ignored entirely is intentional, I'm not complaining about those)
untitled7
Burner Inserter
Burner Inserter
Posts: 10
Joined: Sat Oct 26, 2024 12:51 pm
Contact:

Re: [2.1.17] Lamp color mapping (unexpected behaviour)

Post by untitled7 »

duplicate from 9 years ago, so...
User avatar
ickputzdirwech
Filter Inserter
Filter Inserter
Posts: 806
Joined: Sun May 07, 2017 10:16 am
Contact:

Re: [2.1.17] Lamp color mapping (unexpected behaviour)

Post by ickputzdirwech »

untitled7 wrote: Fri Sep 11, 2026 7:08 pm Then what I, as a user would expect is that the colors are ordered how they are appearing in the menu, like:
red -> green -> blue -> cyan -> pink -> yellow -> white -> grey -> black
however, the actual order is:
red -> green -> blue -> yellow -> pink -> cyan -> white -> grey -> black
with yellow/pink/cyan flipped
This part is not a duplicate of the report you posted Loewchen.
Loewchen wrote: Fri Sep 11, 2026 8:18 pm 51122
Mods: Shortcuts for 1.1, ick's Sea Block, ick's vanilla tweaks
Tools: Atom language pack
Text quickly seems cold and unfriendly. Be careful how you write and interpret what others have written.
- A reminder for me and all who read what I write
eugenekay
Smart Inserter
Smart Inserter
Posts: 1318
Joined: Tue May 15, 2018 2:14 am
Contact:

Re: [2.1.17] Lamp color mapping (unexpected behaviour)

Post by eugenekay »

Version 2.0.34 swapped the position of Yellow and Cyan in the sort order in the Data. There is probably an if..else if..else if block in the Code that decides the precedence of Colors which was not updated to match.
Bilka
Factorio Staff
Factorio Staff
Posts: 3880
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [2.1.17] Lamp color mapping (unexpected behaviour)

Post by Bilka »

Thanks for the report, fixed for 2.1.18 (by changing the order in the GUI, circuit behaviour stays the same).
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Resolved Problems and Bugs”