Random Colors

by Silari

Newly placed entities that support color assignment are given a random one when placed, if not preset (setting to change). Also allows changing the color to a random one via hotkey.

Tweaks
3 years ago
0.17 - 1.1
629
Trains
Owner:
Silari
Source:
N/A
Homepage:
N/A
License:
MIT
Created:
3 years ago
Latest Version:
1.1.0 (3 years ago)
Factorio version:
0.17 - 1.1
Downloaded by:
629 users

Random Colors attempts to set a random color on every placed entity that supports the prototype color property. In vanilla, this is generally locomotives and train stops. Entities that already have a color set, typically from a ghost, will keep the preset color. Should work with any mod entities that support color as well. Note that cars and tanks are placed with color (0,0,0,0) and will always change their color when a player enters. The color can still be changed by the hotkey if no one is inside.

A hotkey (Shift + C) can be used to assign a color to the currently selected entity.

A setting allows the colors to instead cycle from a built-in 16 color list. The built in colors, in order, are red, brick, orange, gold, yellow, grassy, green, sea green, cyan, sky blue, blue, navy, magenta, purple, pink, and hot pink.

An additional setting will cause the mod to ignore preset colors and always assign a random one on placement.