Automatic Train Painter


Automatically colors locomotives and wagons based on their contents.

Tweaks
a month ago
0.17 - 2.0
98.3K
Trains

b Modded fluids colors ignored

2 years ago
(updated 2 years ago)

What I did:
Filling a fluid wagon with a liquid from a mod.
In my case it was frost extract from Frost Bitter. Just for testing.

What I expected:

wagon.color = game.fluid_prototypes[fluid].base_color

In my case it was {r=0, g=0.10, b=0.8}.
flow_color is fine too.

What I got:
Nothing. Color not changed.

P.S. With vanilla fluids it works fine.

UPD
I found fluid color data in __Automatic_Train_Painter__/color/database. Looks like you using only colors from this table and ignore game.fluid_prototypes. BUT WHY???

New response