BVEStation

Author Topic: how to change the length of the subway car  (Read 5701 times)

Offline ErrorMacro11

  • Operator
  • ***
  • Posts: 421
  • Gender: Male
  • FreeLance Developer
    • View Profile
how to change the length of the subway car
« 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

Offline [CT1660]

  • Dispatcher
  • ****
  • Posts: 575
  • Gender: Male
  • openBVE Developer, OMSI Repainter & Engine Modder
    • View Profile
    • Enter The Lair
Re: how to change the length of the subway car
« Reply #1 on: April 04, 2012, 07:11:03 pm »
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)


Offline ErrorMacro11

  • Operator
  • ***
  • Posts: 421
  • Gender: Male
  • FreeLance Developer
    • View Profile
Re: how to change the length of the subway car
« Reply #2 on: April 04, 2012, 11:11:40 pm »
im trying to decrease the length, not the amount of cars

Offline [CT1660]

  • Dispatcher
  • ****
  • Posts: 575
  • Gender: Male
  • openBVE Developer, OMSI Repainter & Engine Modder
    • View Profile
    • Enter The Lair
Re: how to change the length of the subway car
« Reply #3 on: April 05, 2012, 08:16:36 am »
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

Quote
;---------------
;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.