Cities: Skylines

Cities: Skylines

Tail Lights for Vanilla Vehicles 1.1
janhoyken  [developer] Apr 17 @ 4:08am
[WIP] Documentation — and How to add Tail Lights to custom vehicles
So how does this "Mod" even work? And why do I write it with quotation marks? Well, It's technically a mod by game code standards but it really is just a looong config file that adds custom effects to all vanilla cars. That also means I am not really a modder. I just had a lot of time and dedication to make "Tail Lights" possible with my level of knowledge. In the end this also means that I am unfortunately not able to provide many of the features that people ask for like a slider in the settings menu for lighting intensity. Though I guess it could somehow be possible to swap assets via a switch in the settings menu. Maybe I'll learn how to do that one day.

The tools that provide the framework for this to work are really "Vehicle Effects" which allows players to add custom effects to any vehicle in the game and "Custom Effect Loader" which allowed me to create a custom light effect with my own properties.
https://steamcommunity.com/sharedfiles/filedetails/?id=780720853 https://steamcommunity.com/sharedfiles/filedetails/?id=1886877404

This what the "mod" basically looks like:
<?xml version="1.0" encoding="utf-8"?> <VehicleEffectsDefinition> <Vehicles> <!-- Residential --> <!-- Base Game Vehicles --> <Vehicle name="Hatchback"> <Effects> <Effect name="Vehicle Effect Wrapper" base="Tail_Light_Asset"> <Position x="0.65" y="1" z="-1.7" />a <Direction z="-1" /> <MinSpeed>25</MinSpeed> <MaxSpeed>10000</MaxSpeed> <SubEffects /> </Effect> <Effect name="Vehicle Effect Wrapper" base="Brake_Light_Asset"> <Position x="0.65" y="1" z="-1.7" /> <Direction z="-1" /> <MinSpeed>0</MinSpeed> <MaxSpeed>25</MaxSpeed> <SubEffects /> </Effect> <Effect name="Vehicle Effect Wrapper" base="Tail_Light_Asset"> <Position x="-0.65" y="1" z="-1.7" /> <Direction z="-1" /> <MinSpeed>25</MinSpeed> <MaxSpeed>10000</MaxSpeed> <SubEffects /> </Effect> <Effect name="Vehicle Effect Wrapper" base="Brake_Light_Asset"> <Position x="-0.65" y="1" z="-1.7" /> <Direction z="-1" /> <MinSpeed>0</MinSpeed> <MaxSpeed>25</MaxSpeed> <SubEffects /> </Effect> </Effects> </Vehicle> ... </Vehicles> </VehicleEffectsDefinition>
This code repeats for every vanilla car in the game which totals to around 3330 lines of text for 99 cars.

https://steamcommunity.com/sharedfiles/filedetails/?id=3465412938


Also refer to this documentation for more detailed information about custom light effects and adding effects to vehicles. This is basically what I read to make this.

How to create config files for Vehicle Effect Loader:
https://steamcommunity.com/sharedfiles/filedetails/discussion/780720853/341537671988198144/

Creating custom effects with Custom Effect Loader:
https://github.com/boformer/CustomEffectLoader/blob/master/README.md#workflow



THIS IS NOT DONE YET!


.
Last edited by janhoyken; Apr 17 @ 5:24am