Improve colors of rail blocks at night

This is the place to request new mods or give ideas about what could be done.
Post Reply
User avatar
Mango
Long Handed Inserter
Long Handed Inserter
Posts: 95
Joined: Fri Feb 22, 2013 6:27 pm
Contact:

Improve colors of rail blocks at night

Post 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 1103 times

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

Or can somebody guide me to the right place where I could change these colors myself?
Hm.... so we have a mystery donor... intriguing.

User avatar
Silari
Filter Inserter
Filter Inserter
Posts: 490
Joined: Sat Jan 27, 2018 10:04 pm
Contact:

Re: Improve colors of rail blocks at night

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

User avatar
Mango
Long Handed Inserter
Long Handed Inserter
Posts: 95
Joined: Fri Feb 22, 2013 6:27 pm
Contact:

Re: Improve colors of rail blocks at night

Post 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 1046 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 1046 times

Thank you Silari.
Hm.... so we have a mystery donor... intriguing.

Post Reply

Return to “Ideas and Requests For Mods”