BVEStation

Author Topic: what is the code to open and close doors in openbve like the R153  (Read 7447 times)

Offline F train fan

  • Conductor
  • **
  • Posts: 154
  • Gender: Male
  • BVEStation Member
    • View Profile
what is the code to open and close doors in openbve like the R153
« Last Edit: January 17, 2011, 01:11:51 pm by ipac »

Offline Smooth23

  • Conductor
  • **
  • Posts: 144
  • Gender: Male
  • Beta Tester
    • View Profile
Re: what is
« Reply #1 on: January 13, 2011, 11:35:24 pm »
F5 to open left door
F6 to open right door

Offline F train fan

  • Conductor
  • **
  • Posts: 154
  • Gender: Male
  • BVEStation Member
    • View Profile
Re: what is
« Reply #2 on: January 13, 2011, 11:40:24 pm »
I know that I meant the code to make the animation of the doors actually opening and closing I already know the keys to do it

Offline coneyislandDFNQ

  • Head Admin
  • Dispatcher
  • ******
  • Posts: 801
  • Gender: Male
  • Route & Object Developer
    • View Profile
Re: what is
« Reply #3 on: January 22, 2011, 11:28:34 am »
I know that I meant the code to make the animation of the doors actually opening and closing I already know the keys to do it

Actually its serveral sets of codes. Take a look at the .b3d files in the cars folder of the trainset. then i think either the train.dat file of the panel.cfg file holds the place where the coding is.

Offline error46146

  • Head Admin
  • Dispatcher
  • ******
  • Posts: 620
  • Gender: Male
    • View Profile
    • Photography by me.
Re: what is the code to open and close doors in openbve like the R153
« Reply #4 on: January 25, 2011, 10:33:52 pm »
That requires you to program in animations for openbve.

Learn more here:
http://openbve.trainsimcentral.co.uk/develop/object_animated.html

I cannot figure that math out lol its sad that it comes to the point where I have to pull out a calculator to program for bve -_-

Offline Bombardier01800

  • Head Admin
  • Dispatcher
  • ******
  • Posts: 749
  • Gender: Male
  • Apple Certified Macintosh Technician
    • View Profile
    • MBTA and NJT Transit Forums
Re: what is the code to open and close doors in openbve like the R153
« Reply #5 on: January 25, 2011, 10:34:37 pm »
A lot of the code will not be easy to understand... If I'm not mistaken, some of it is in .ANIMATED files
Jose
BVEStation Administrator

Offline error46146

  • Head Admin
  • Dispatcher
  • ******
  • Posts: 620
  • Gender: Male
    • View Profile
    • Photography by me.
Re: what is the code to open and close doors in openbve like the R153
« Reply #6 on: January 25, 2011, 10:38:18 pm »
Basically it works like this;

the b3d files are the static objects
the animated files make them move.

Think of it this way: the b3d file is the door, the animated file is the motors that make the doors move.