BVEStation Forums
BVE => BVE/OpenBVE Support => Topic started by: ErrorMacro11 on April 04, 2012, 10:54:37 am
-
im having a problem with changing the size of the subway cars. Im trying to make the R46 length a little smaller so that it could fit on the C line because everytime i drive it, not all the cars pass through the station on autopilot. i even tried to use traineditor
-
1) open train.dat
go to the #CAR section and you'll see either:
0 ;Numberofmotorcars
0 ;Numberoftrailercars
adjust to the proper car number, then save.
2) open extensions.cfg
you'll see something like this
[exterior]
0 = car.b3d
1 = car.b3d
and on and on. add or remove as needed (remember, 0 is really 1 car on the extensions.cfg file)
-
im trying to decrease the length, not the amount of cars
-
im trying to decrease the length, not the amount of cars
#CAR
33 ; MotorCarMass
10 ; NumberOfMotorCars
37 ; TrailerCarMass
0 ; NumberOfTrailerCars
18.4404 ; LengthOfACar
1 ; FrontCarIsAMotorCar
2.67 ; WidthOfACar
3.61 ; HeightOfACar
1.5 ; CenterOfGravityHeight
5 ; ExposedFrontalArea
1.6 ; UnexposedFrontalArea
change that part according to the meshbuilder for the length of the train on the b3d file (remember the length is absolute value so it doesn't matter if the value is positive or negative, since in the train.dat it has to be always positive)
you'll see something like this on the b3d file
;---------------
;Car's left side
;---------------
[MeshBuilder]
Vertex -0.50, 3.70, -0.03
Vertex -0.50, 3.70, -18.60
Vertex -1.37, 3.10, -18.60
Vertex -1.37, 3.10, -0.25
Vertex -1.37, 3.10, -0.25
Vertex -1.37, 3.10, -18.60
Vertex -1.47, 1.67, -18.60
Vertex -1.47, 1.67, -0.25
Vertex -1.47, 1.67, -0.25
Vertex -1.47, 1.67, -18.60
Vertex -1.44, 0.80, -18.60
Vertex -1.44, 0.80, -0.25
Vertex -1.20, 0.80, -0.25
Vertex -1.20, 0.80, -18.60
Vertex -1.20, 0.00, -18.60
Vertex -1.25, 0.00, -0.25
Face 0,1,2,3
Face 4,5,6,7
Face 8,9,10,11
Face 12,13,14,15
[Texture]
Load r160side1.bmp
Coordinates 0, 0, 0
Coordinates 1, 1, 0
Coordinates 2, 1, 0.125
Coordinates 3, 0, 0.125
Coordinates 4, 0, 0.125
Coordinates 5, 1, 0.125
Coordinates 6, 1, 0.55
Coordinates 7, 0, 0.55
Coordinates 8, 0, 0.551
Coordinates 9, 1, 0.551
Coordinates 10, 1, 0.78
Coordinates 11, 0, 0.78
Coordinates 12, 0, 0.781
Coordinates 13, 1, 0.781
Coordinates 14, 1, 1.0
Coordinates 15, 0, 1.0
Transparent 0, 0, 255
Now change this value to reflect the length as highlighted from the b3d file that you plan to use as an exterior. remember, it is in absolute value:
18.60 ; LengthOfACar
increase or decrease according to the b3d file.