Openbve News and Development

OpenBve Development => Openbve Development => Topic started by: R62a6TrainFan on Aug 18, 2021, 08:03 PM

Title: How do I change the number of cars of a train?
Post by: R62a6TrainFan on Aug 18, 2021, 08:03 PM
How do i change the numbers of cars?
Title: Re: How do I change the number of cars of a train?
Post by: E-man-25 on Aug 19, 2021, 12:03 PM
Look into the extensions.cfg and train.dat files, they define these physical compositions. I suggest looking at the official documentation for OpenBVE found here:

train.dat: https://openbve-project.net/documentation_hugo/en/trains/train_dat.html
extensions.cfg: https://openbve-project.net/documentation_hugo/en/trains/extensions_cfg.html

Keeping in mind that both files need to have defined the SAME amount of cars , or else you will get white boxes as carriages :)
Title: Re: How do I change the number of cars of a train?
Post by: Trainkidkris on Aug 20, 2021, 05:39 AM
To further help you on editing the train cars lets use the R160 10 Car set as an example. Please note the following: (1) You should have extra copies of the files on hand incase something was to go wrong while you are working on it. (2) You need to have an understanding of how things work in openBVE as we only guide you and assist as far as you want to learn.


To edit your train you need to locate the following. The extension.cfg file located within your train folder and your train.dat file.

Once you have located those 2 files open the extension.cfg in a notepad or which ever software you use for editing regular text files. In the cfg file remove 2 of the trains. Then save it.
Open up train editor when you are finished and then locate the section on the top known as "properties" click on it and then look for "Number of MotorCars" once you located it reduce the number to 8. Save it and load BVE. Now you have 8 cars.

Title: Re: How do I change the number of cars of a train?
Post by: R62a6TrainFan on Aug 20, 2021, 07:28 PM
When i open it up using train editor, it just says this
Title: Re: How do I change the number of cars of a train?
Post by: Trainkidkris on Aug 20, 2021, 10:20 PM
(2) You need to have an understanding of how things work in openBVE as we only guide you and assist as far as you want to learn. If you dont know how to open train.dat files then this topic is a little advance for you my friend. Use train editor to open the train.dat file