Page 1 of 1

Improve colors of rail blocks at night

Posted: Sat Oct 23, 2021 2:16 pm
by Mango
Hello everyone,

Could somebody please make a mod to make colors of rail blocks more visible at night?

I have a hard time to see the colors with night vision:
rail blocks nv.png
rail blocks nv.png (1.82 MiB) Viewed 1453 times

Without night vision it is better near light, but worse in total darkness
rail blocks.png
rail blocks.png (1.41 MiB) Viewed 1453 times

Or can somebody guide me to the right place where I could change these colors myself?

Re: Improve colors of rail blocks at night

Posted: Sat Oct 23, 2021 5:15 pm
by Silari
The colors used are stored in data.raw.['utility-constants']['default'].rail_segment_colors

Seems to be an array of RGBA values that determine the colors used, presumably the game uses them in order as needed. There's seven defined. Not much info about it though: https://wiki.factorio.com/Prototype/Uti ... ent_colors

I doubt it's possible to do anything more than that with them via mod.

Re: Improve colors of rail blocks at night

Posted: Sun Oct 24, 2021 12:20 pm
by Mango
So I changed the colors to have better contrast (in my eyes at least). It's not great, but it's better.
new rail blocks nv.png
new rail blocks nv.png (1.91 MiB) Viewed 1396 times

The transition from yellow to green is worst in these new colors, but it doesn't get any better than this I think.
new rail blocks.png
new rail blocks.png (1.6 MiB) Viewed 1396 times

Thank you Silari.