Train colors different when set via a script

Bugs that are actually features.
User avatar
_Attila_
Long Handed Inserter
Long Handed Inserter
Posts: 75
Joined: Sun Jan 06, 2019 2:46 pm
Contact:

Train colors different when set via a script

Post by _Attila_ »

locos.png
locos.png (575.24 KiB) Viewed 629 times

Both of the above locomotives are black {0,0,0}, but the top one was set via script and the other via GUI.
The top one is much nicer, not so washed out, but that cannot be achieved via the GUI.

locos2.png
locos2.png (273.93 KiB) Viewed 629 times

Both of the above locomotives are white {255,255,255}. Top via script.
Now the bottom one is better and this cannot be achieved via script.

Could we please have the colors match and go from top(1) to bottom(2) - proper black to proper white.
Attila's QuickBar Mod - Auto-links hand crafted item to first free quickbar slot if not already linked.
Attila's Signals Mod - Alternate signals to use in same circuit as standard signals.
Attila's Zoom Mod - Modifies zoom functionality.
posila
Factorio Staff
Factorio Staff
Posts: 5408
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: Train colors different when set via a script

Post by posila »

Use {0, 0, 0, 127} for black or {255, 255, 255, 127} for white to match colors set from train GUI. Colors set in the GUI have implicit alpha 0.5
Post Reply

Return to “Not a bug”