More than 4 doors per side, is it possible?

A fantastic patch for MSTS 1 that adds immense extra capabilities and fixes. See more at http://mstsbin.uktrainsim.com

Moderator: Moderators

Locked
karlrestall
Established Forum Member
Posts: 403
Joined: Tue Apr 11, 2006 5:52 pm
Location: Teesside

More than 4 doors per side, is it possible?

Post by karlrestall »

Hi all.

I have started building and modifying some of my creations and opening doors are one of the features thanks to MSTSBin. My question is can you have more than 3 doors per side of a coach. I have labled all the doors on one side Door_A, Door_B, Door_C, Door_D, Door_E, Door_F but they work as if they are left and right handed.

Regards

Karl
Image

North Yorkshire Moors Railway Guard
User avatar
Nvincer
Very Active Forum Member
Posts: 2219
Joined: Wed Jan 26, 2005 4:01 pm
Location: Ashford, Kent
Contact:

Post by Nvincer »

No, Don't believe so anyway.

Ben :-?
Ben Vincer
------------------------------------------
Visit Bubble's Railways - http://www.bubblesrailways.co.uk
Dreamland (Margate) Miniature Railway Route and Stock Pack now Available!
User avatar
RichardScott
Established Forum Member
Posts: 312
Joined: Tue Nov 27, 2001 12:00 am
Location: Dorset, England

Post by RichardScott »

Karl

You can have more than one object with the same name. I have animated the sliding doors of a Croydon tram and have each left side left hand door as Door_A and each left side, right hand door as Door_B. On the other side I used E and F for all 4 sliding doors.

But (and zis is a big but) this can then muck up LODs which need unique names. I am experimenting further, but if you don't need LODs its not a problem.

Cheers

Richard Scott
tonyhap
Established Forum Member
Posts: 372
Joined: Fri Apr 23, 2004 11:25 pm

Post by tonyhap »

I do not know what the limit might be. On the tram shown below one key operates all doors and steps on both the power vehicle and its trailer. The front vehicle shown below contains four sets of bifold doors - two sets in each doorway. Each set contains two planes on the outside and two on the inside. Inside and outside are different for different lighting effects and alpha values. So one keyboard key operates 16 door panels plus two steps in one shape file. The shape file looks like the following, minus the animation details. All DOOR_Axxx’s are collated into a group, NOT a part.

anim_node DOOR_A (
-------------------------controllers ( 0 )
--------------------------)
anim_node DOOR_A1HI (
.................................controllers ( 2
..........................................tcb_rot ( 3
.................................................tcb_key ()
.................................................tcb_key ()
.................................................tcb_key ()
........................................................)
..........................................linear_pos ( 3
.................................................linear_key ()
.................................................linear_key ()
.................................................linear_key ()
.......................................................)
...............................................)
......................................)
anim_node DOOR_A1CI (

My hierarchy is as follows,

DOOR_A
............DOOR_A1HI.....................1 = first bifold set
............DOOR_A1CI.....................H = Hinge, post, plane
............DOOR_A1HO....................C = Centre plane
............DOOR_A1CO....................I = Inside plane
............DOOR_A2HI.....................O = outside plane
............DOOR_A2CI
............DOOR_A2HO
............DOOR_A2CO
............Etc
............DOOR_A4CO
............DOOR_AFS.......................FS = front step
............DOOR_ARS......................RS = rear step

I strongly recommend you study the shape file for the MSTSBin test vehicle to see the structure of the hierarchy even though I have tried to show it above. Good luck.

Chris
Image
Last edited by tonyhap on Mon Mar 26, 2007 8:02 pm, edited 1 time in total.
karlrestall
Established Forum Member
Posts: 403
Joined: Tue Apr 11, 2006 5:52 pm
Location: Teesside

Post by karlrestall »

Thanks guys.

Just a quick point Richard, I am using TSM (Not got the hang of anything else just yet) and it doesn't allow parts to have the same name instead it puts a .1, .2, .3 etc on the end so the name ends up as Door_A.1, Doors_A.2 etc... I have tried doing all one side Door_A.# and all the other side as Door_F.# but they all seem to work together.

Regards

Karl
Image

North Yorkshire Moors Railway Guard
User avatar
SavV1
Been on the forums for a while
Posts: 153
Joined: Thu Apr 20, 2006 10:44 pm
Location: Somewhere in New Zealand
Contact:

Post by SavV1 »

As TSM is being used, you would need to NOT compress the 's' file when converting (Ie, Convert to Binary is NOT checked) and then manually edit the 's' file removing the added decimal numbers. This would then allow for the use of the same name for multiple parts. You would then need to compress the 's' file afterwards if so desired.

Cheers
Cheers
Stefan van Vliet

TSNZ Webmaster
http://www.tsnz.co.nz
Locked

Return to “[MSTS1] MSTSbin”