SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
Source-checkedVehicles & ships

Automatic Train Painter

by yeahtoast · for Factorio

Automatically colors locomotives and wagons based on their contents.

132KDownloads
5 mo agoLast updated
MITLicense
2.1Latest game version

About Automatic Train Painter

From Factorio Mod Portal

Automatically colors locomotives and wagons based on their contents.

Features:


Trains will automatically be colored, based on the contents of their inventory, as soon as they begin to move in Automatic Mode.

  • __Note:__ this requires the "Use destination train stop color" checkbox in the locomotive GUI to be __unticked__, otherwise the train will follow the built-in destination stop coloring behavior.

Item colors are based on their icons, while fluid colors are based on their appearance in pipes, storage tanks, and barrels. If a train's inventory contains multiple entities, their colors will be blended proportionally to the quantity† of each entity present.

_______ List of supported mods


_______ Settings:


  • __Paint locomotives__. It is __[ON]__ by default. When turned off, previously painted locomotives will remain painted in their respective colors.
  • __Paint cargo and/or fluid wagons__. The latter works only if using a mod like __Fluid Wagon Color Mask__.§ They are __[OFF]__ by default. Turning these functions off after having already painted wagons will cause them to return to default colors after stopping and starting again in Automatic Mode.
  • __Unpaint empty trains__. This will set the locomotives of an empty train and its wagons to their default colors. It is __[ON]__ by default.
  • __Unpainted locomotive color__. The default color for an unpainted locomotive, it can be any 3- or 6-digit hexadecimal number. Default is __E4D1C7__, original red is __EA1100__.
  • __Unpainted cargo wagon color__. The default color for an unpainted cargo wagon, it can be any 3- or 6-digit hexadecimal number. Default is __6D3A00__.
  • __Unpainted fluid wagon color__. The default color for an unpainted fluid wagon, it can be any 3- or 6-digit hexadecimal number. Default is __C8C8C8__.
  • __Enable/input custom colors__. See the FAQ page for more details.

_______ Other Features:


  • __Locomotive Equipment Grid__: an unused feature of the base version of Factorio, this can now be enabled for locomotives via a __Startup mod setting__. By default a 2x4 grid large enough to fit a pair of 2x2 equipment modules simultaneously, it can be extended to 16x16 if desired.
  • __Manual Color Module__: an inexpensive 2x2 equipment item that can be placed in the locomotive Equipment Grid. Trains with this item present will __not__ be automatically painted, and will have manual colors preserved. It is researched with Automated Rail Transportation and costs 1 Electronic Circuit. It also provides 1 W of bonus power to the train, for reasons. This item can be disabled for a cleaner menu if desired.

_______ Planned features/improvements:


  • __Additional colors for items__. Thousands of mod items are included. The FAQ page contains the list of supported mods. Existing colors will be reviewed and updated periodically if sprite icons are changed. For other mods with new items, make a request on the discussion page and I'll put them on the list.

Due to overwhelming volume, is it infeasible to support and maintain every single item a mod may introduce. The intent of this mod is to natively feature only those items that one would typically load onto a train en masse, ie, resources, intermediates, sciences, and fluids. For other cases, please use the custom input settings.

_______ Recommended Companion Mods:


_______ __Notes:__ † - In order to keep the color of mixed cargo and fluid trains from being dominated by fluids due to their 50k fluid wagon capacity versus (typically) 2k-8k cargo wagons, the quantity of fluid is reduced during color calculation by a factor of 20. This is equivalent to cargo with a stack size of 125.

§ - Mods that employ their own fluid wagon coloring systems may experience various issues with automatic painting, including slight color mismatch and translucency.

Originally built upon Train Ore Color by Sirenfal.

Highlights

From source data

Game versions

Built for Factorio 2.1.

Footprint

Rated a light load on a server.

License

Published under MIT.

Automatic Train Painter on Nxeon

From our catalogue
One-click install
Supported on Nxeon Factorio servers. We download it from Factorio Mod Portal, place it, and restart the server.
Server side
Required on the server
Server load
light
Smallest plan we suggest
Factorio — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
2.1.0, released 2026-06-23

Run Automatic Train Painter on a Factorio server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on Factorio Mod Portal as “Mods”

Vehicles & ships

Cars, boats, aircraft, ships and other things to drive or fly.

Runs on your server

From source side support

Factorio Mod Portal lists Automatic Train Painter as required on the server. Check its Factorio Mod Portal page to see whether players need it too.

Compatibility

Game
Factorio
Runs on
Serverrequired on the server
Game versions
2.1

Verified at the source

  • ✓Factorio Mod PortalOfficial listing, checked 2026-10-08Open ↗
  • ✓Authoryeahtoast, as published on Factorio Mod Portal
  • ✓LicenseMITFree

Automatic Train Painter, answered

Generated from the mod’s own source data.

Do my players need to install Automatic Train Painter?

Factorio Mod Portal lists Automatic Train Painter as required on the server. Check its Factorio Mod Portal page to see whether players need it too.

Is it free?

Yes. Automatic Train Painter is free to download from Factorio Mod Portal. Its license is MIT.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Automatic Train Painter on a Factorio server.

Deploy in about a minute from $2.99 a month, then add Automatic Train Painter in one click.