Cities: Skylines

Cities: Skylines

Tail Lights for Vanilla Vehicles 1.1
janhoyken  [developer] 17 Apr @ 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://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=780720853 https://steamhost.cn/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://steamhost.cn/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://steamhost.cn/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; 17 Apr @ 5:24am
< >
Showing 1-1 of 1 comments
Hello, I really like your idea, but in reality, I have almost hidden or disabled all the original vehicles in the game, so I would like to try manually adding taillight effects on the mod's vehicles. Based on the image you provided, I used the vehicle effect in the asset editor to add taillights to the mod's vehicles, adjusted their positions, and saved the XML file.
May I ask what other actions I need to take at this moment to create taillight effects for this car in my game? Because after saving the XML, I exited and restarted, and found this car in my savegame and tracking & observation, but found that it did not take effect.
< >
Showing 1-1 of 1 comments
Per page: 1530 50