Rolling Line

Rolling Line

Not enough ratings
Modding vehicles and roads
By Franks
This guide shows how to use the Train Mod and Track Style modding systems to crate cars and roads!
   
Award
Favorite
Favorited
Unfavorite
Roads vs Tracks
The new roads system is basically just track with a new visual look, and "cars" are actually "trains", but instead of running on "track" they run on "roads".

This means that roads and cars have all the same functionality as track and trains.
You can make cars follow AI triggers, and you can create your own modded versions of both.

This guide will explain how to use the modding system to create vehicles and road styles!
Creating vehicles
Making a vehicle using the train modding system is basically identical to making a train mod, but with a few minor changes to make it work on roads.

Here is a full guide on how to make train mods:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2664192139

For this guide I will be using this mod as an example:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2873885648&searchtext=

You can find the files for this mod (and other example mods) here:
...(Program Files)\Steam\steamapps\common\Rolling Line\Modding\templates\train mod examples\wagon_Example_Car_Mazda_65957



Turning a train mod into a vehicle

It's actually really simple!
When editing the mod in the modding manager, click on "general options" and then find the "track type layer" setting,
Change it from "train - track" to "car - roads".



This will make your train mod run on roads instead of track, simple as!

Another thing you'll want to change is the cab controls.
There is a custom pre-set cab designed especially for cars which is much smaller than the usual train cab.

You can set this in the "general options -> cab options -> preset" menu





You can also mute the engine audio, or use your own custom car sounds:



I also recommend extending the coupler distance a bit extra, so that cars follow each other at a realistic distance in traffic, instead of just being bumper-to-bumper:

Creating roads
Just like with trains and cars, making roads is almost identical to making track style mods!

You can find the full guide on making track styles here:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2819072304

For this guide I will be using this mod as an example:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2873885648&searchtext=

You can find the files for this mod (and other example mods) here:
...(Program Files)\Steam\steamapps\common\Rolling Line\Modding\templates\track style mod examples\trackStyle_RoadStyleExample_dash_68379

Turning a track style mod into a road style

Just like with train mods, it only requires one quick setting change:
When editing the mod in the modding manager, find the "track type layer" setting,
Change it from "track" to "roads".



This style will now show up in the "add property" list for any piece of road.
It will no longer be usable on tracks too.

Please note:
Just like with track style models, if you have a mesh which doesn't fill the entire segment length (e.g. dashed road markings, which have gaps at each end) Then you will need to make a small mesh at both ends of the model. This is so that the curve generation system will use the whole length of the mesh and preserve the gaps, since meshes are scaled to fit the whole segment:





Road model sizes

A segment of road is exactly 0.15 blender units wide, with the 3D origin point in the middle.
They are 0.1 units long:

Workshop tags
Vehicles and roads automatically use their own tags on the Steam Workshop.



When you browse mods in-game though they will still show up alongside train mods and track styles (like when using the mod manager).