Automatic Train Painter


Automatically colors locomotives and wagons based on their contents.

Tweaks
11 months ago
0.17 - 1.1
79.5K
Trains

b Modded fluids colors ignored

1 year, 8 months ago
(updated 1 year, 8 months 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