Automatic Train Painter


Automatically colors locomotives and wagons based on their contents.

Tweaks
15 days ago
0.17 - 2.0
96.8K
Trains

i (liquify2) fluid colors

4 years ago

hi,

it would be neat if the trains could use the (flow) color of the fluid if their name isn't registered in the database.
i have done a small amount of research into if it were possible or not, but it seems performance heavy to go through it every time (so it probably needs to be cached somehow)

the reason i'm asking this is for my liquify 2 mod which turns items into fluids and vice versa (and uses api calls to register more so a fixed list in your database won't work)

for now i would like to request this bit to be added to color/util.java:

    -- remove "liquify2-solution-" from item name
    if string.find(item,"liquify2%-solution%-") then
        item=string.gsub(item,"liquify2%-solution%-","")
    end

(its not perfect since it doesn't use the exact colors registered in my mod, but it falls back to the item name which is the next best thing :)

i look forward to your reply, hopefully we can find a proper solution together ❤️

4 years ago

(if you have this mod on git somewhere i'd love to lend a hand in helping with this and other stuff*)

New response