Cities: Skylines

Cities: Skylines

1,031 ratings
Auto Line Color
 
Rate  
Favorite
Favorited
Unfavorite
Mod
File Size
Posted
Updated
0.043 MB
Apr 11, 2015 @ 10:20am
Sep 24, 2015 @ 2:42pm
13 Change Notes ( view )

Subscribe to download
Auto Line Color

Subscribed
Unsubscribe
Description
Automatically picks colors and names for bus, metro and train lines. Compatible with Extended Public Transport UI

After Dark Updates

Bug fixes and features have been pushed! Thanks to techfreek you can set the options in the regular Options dialog. There were some compatability problems that caused the game to crash, hang or just plain not work. Those seem to be ironed out with limited testing this afternoon. This release should definitely be considered beta.

Updated!

New color picking strategy and naming are now supported, plus customization of the color lists.

By default it will stick to the default line hues, but you can customize this. Settings are stored in the Cities Skylines root

After running the mod for the first time, the default settings will be placed here. Edit these and restart your game to use the new values.

AutoLineColorSettings.xml

<?xml version="1.0" encoding="utf-8"?> <Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <ColorStrategy>RandomColor</ColorStrategy> <NamingStrategy>Districts</NamingStrategy> </Configuration>

Valid values for ColorStrategy are RandomColor, CategorisedColor and RandomHue. RandomColor will pick from all.txt, RandomHue will pick from the appropriate blue, orange and green text files.

Categorised Color Strategy

This strategy colorises using a deterministic sequence based on 18 base hues (3 variations on each of the primary and secondary colors). The next hue is chosen to be reasonably far away from the previous one.

Buses are pale. There are 3 levels of paleness, as I tend to have a lot of buses.
Metro are bright. There are 2 levels of brightness (full bright, and partly darkened).
Trains are dark.
Once the colors are exhausted the sequence repeats.

Valid values for NamingStragey are None, London or Districts. None will not set the names of the lines. London is a naming strategy inspired by transport naming schemes in London.

* Buses are named like: "9 Aldwych", "33 Elm Heights", "CH4 Local"
* Metro are named like: "Beech Line", "Elm & Oak Line", "Juliet Line"
* Trains are named like: "1X45 Westvalley", "2G42 Elm to Grove", "3J19 Sycamore Rail"

Source
Source is available at https://github.com/enkafan/CitiesSkylinesAutoColorMod . PR gladly accepted.

Contributors
rtbortolin for better algorithm for picking the random colors
Mark Thomas for London naming and categorized colors
Popular Discussions View All (2)
4
Mar 23, 2015 @ 11:34am
Need more variety
SHOT(by)GUN
1
Feb 24, 2016 @ 2:08am
Panel missing error
golddragon007
< >
150 Comments
sonicdemon86 Jun 4 @ 10:25pm 
Mod gives error with MT update. I can't create lines without it giving an error that says nothing, it is a blank error.
TaradinoC Jun 3 @ 1:58am 
This works with MT, as far as I can tell. It only affects new lines you create, not existing ones, but I don't know if that's intentional.

@ncn_business10: Great idea, I've started working on something similar at https://github.com/taradinoc/CitiesSkylinesAutoColorMod/tree/road-strategy .
Photonmoon May 30 @ 1:32am 
Does this work with mass transit?
mildwall May 24 @ 3:57am 
Please update
ncn_business10 May 22 @ 1:39am 
Oh, also, spelling error, in the District Naming policy, "Zephyr" should have a "y"
ncn_business10 May 22 @ 1:33am 
May I suggest a new naming strategy... I might even be able to implement said strategy eventually (if I ever get time to learn the C:S architecture enough to know how to extract the data). Now that roads have names, name buses after the road they run along. Name metro and train lines after nearby unique buildings if any, and a nearby road if not.
SingingTurnip May 19 @ 7:58am 
-- MOD CURRENTLY INCOMPATIBLE WITH THE NEW DLC --
Danger Zone May 18 @ 1:18pm 
this mod stopped working for me after the new update
fangfanphilip May 18 @ 8:50am 
Does this still work?
MarvinZhang0126 Feb 9 @ 9:48pm 
Such a cool mod, now it would be easy for me to distinguish between those lines. Thnx for this mod!
各个线路分的非常清楚,谢谢作者的分享QwQ