Doors

View previous topic View next topic Go down

Doors

Post by SnowHill150001 on Thu Aug 23, 2012 12:29 pm

Hi. Can you change who controls the doors on the Cl221 from Pioneer Trains? At the moment the conductor closes the doors after the buzzer but I want to be able to control when they will be shut as they are in real life. Is this possible? Thanks in advance!

SnowHill150001

Posts : 30
Join date : 2011-09-01

Back to top Go down

Re: Doors

Post by graymac on Thu Aug 23, 2012 1:23 pm

You will need to edit the train.dat file to change the door mode.
If you are not confident of your ability to do this, then don't. And if you do, do back up the original first.

In the #DEVICE section of the train.dat file use the following value;
DoorOpenMode:-
0 = The doors are opened automaticallybut can also be prematurely opened manually (default)
1 = The doors are opened automatically, manual over-ride is not possible
2 = The doors can only be opened manually

DoorCloseMode:-
0 = The doors are closed automaticallybut can also be prematurely opened manually (default)
1 = The doors are closed automatically, manual over-ride is not possible
2 = The doors can only be closed manually

An example of #DEVICE section code is shown below, with the doors being set for manual operation by driver.
#DEVICE
-1 ; Ats
0 ; Atc
0 ; Eb
0 ; ConstSpeed
0 ; HoldBrake
2 ; ReAdhesionDevice
0 ; LoadCompensatingDevice (not used)
0 ; PassAlarm
2 ; DoorOpenMode
2 ; DoorCloseMode

As you will realise, you have the option for opening and closing modes to be set differently if you want to.
avatar
graymac

Posts : 1739
Join date : 2011-08-28
Location : Co Mayo, Eire

http://www.celtictrainsim.com

Back to top Go down

Re: Doors

Post by SnowHill150001 on Thu Aug 23, 2012 2:05 pm

Pretty confident; I have managed to code in a exterior for the Class 321, which works with lights!

SnowHill150001

Posts : 30
Join date : 2011-09-01

Back to top Go down

Re: Doors

Post by SnowHill150001 on Thu Aug 23, 2012 2:17 pm

Its worked! Thanks for the quick help!

SnowHill150001

Posts : 30
Join date : 2011-09-01

Back to top Go down

Re: Doors

Post by graymac on Thu Aug 23, 2012 2:31 pm

Great Very Happy

(I always include the disclaimer with advice. A lot of folks are OK with altering stuff, but a few have the amazing talent to really **** it up, then moan because it hasn't worked, then it's all MY fault, . . . . . . . . . . So it's only fair to warn of the danger).


Last edited by graymac on Thu Aug 23, 2012 2:46 pm; edited 2 times in total
avatar
graymac

Posts : 1739
Join date : 2011-08-28
Location : Co Mayo, Eire

http://www.celtictrainsim.com

Back to top Go down

Re: Doors

Post by SnowHill150001 on Thu Aug 23, 2012 2:35 pm

You wouldn't also know on how to make the 1972MKII stock with the exterior into a 4 car unit? Wink

SnowHill150001

Posts : 30
Join date : 2011-09-01

Back to top Go down

Re: Doors

Post by graymac on Thu Aug 23, 2012 2:46 pm

To add/remove cars you need to edit both the train.dat AND the extensions.cfg files. It's a tiny bit more complicated than the doors.
As it takes a lot longer to explain than it does to do I'm not going to show it here.
It is a question often asked, though. When I have time I will see if I can produce a downloadable/printable guide how to do it, there seems to be the need for one.
If you can't wait you might look at the differences in the train.dat and extensions.cfg between the 3-car and 6-car IE22000. It is possible you could work it out from that.
avatar
graymac

Posts : 1739
Join date : 2011-08-28
Location : Co Mayo, Eire

http://www.celtictrainsim.com

Back to top Go down

Re: Doors

Post by SnowHill150001 on Thu Aug 23, 2012 3:40 pm

I've fixed that too now! I looked at the extensions and train files for my four car 1992TS and worked out the same might work on the 1972TS. It has! I've just tried to fix up a 6 car class 323 and I've managed to get 6 cars, except the last car is actually that annoying grey object box. The current extension is :

[exterior]
0 = ext_view\LM_323_1.csv
1 = ext_view\LM_323_2.csv
2 = ext_view\LM_323_3.csv
3 = ext_view\LM_323_1.csv
4 = ext_view\LM_323_2.csv
5 = ext_view\LM_323.3.csv

and the train car data

#CAR
40
6
40
0
23.8
1



Whatever I try just doesn't seem to work; any ideas?

SnowHill150001

Posts : 30
Join date : 2011-09-01

Back to top Go down

Re: Doors

Post by Quork on Thu Aug 23, 2012 6:18 pm

You'll find you'll learn very soon to see coding errors instantly. Compare the lines for the third and for the sixth carriage carefully. I'm not telling the error on purpose, as you seem to be very quick at learning such stuff!
avatar
Quork

Posts : 1073
Join date : 2012-05-05
Age : 25
Location : Hofheim a.T., Hessen (Hesse), European Union

Back to top Go down

Re: Doors

Post by graymac on Thu Aug 23, 2012 7:45 pm

I would underscore that comment! Wink

It's easy to make typing errors, sometimes harder to spot them.
avatar
graymac

Posts : 1739
Join date : 2011-08-28
Location : Co Mayo, Eire

http://www.celtictrainsim.com

Back to top Go down

Re: Doors

Post by johnsinden on Thu Aug 23, 2012 9:06 pm

Oh how very, very droll, Graham.....!
avatar
johnsinden

Posts : 210
Join date : 2011-09-19
Age : 64
Location : Southampton, UK

Back to top Go down

Re: Doors

Post by SnowHill150001 on Fri Aug 24, 2012 9:06 am

I've tried changing the numbers round with 3rd and 6th but still no luck on ridding the blank object at the back....

SnowHill150001

Posts : 30
Join date : 2011-09-01

Back to top Go down

Re: Doors

Post by phontanka on Fri Aug 24, 2012 1:34 pm

The numbers are fine. Check what's in front of those car numbers.
avatar
phontanka

Posts : 242
Join date : 2012-05-08
Location : Hungary

http://phontanka.wordpress.com

Back to top Go down

Re: Doors

Post by graymac on Fri Aug 24, 2012 1:42 pm

Try this

[exterior]
0 = ext_view\LM_323_1.csv
1 = ext_view\LM_323_2.csv
2 = ext_view\LM_323_3.csv
3 = ext_view\LM_323_1.csv
4 = ext_view\LM_323_2.csv
5 = ext_view\LM_323_3.csv

You used a full point instead of an underscore for the last car. That means the program cannot load the file as LM_323.3.csv doesn't exist, hence the grey box by default.
That is a syntax error. Syntax does not forgive, it needs to be exact.
avatar
graymac

Posts : 1739
Join date : 2011-08-28
Location : Co Mayo, Eire

http://www.celtictrainsim.com

Back to top Go down

Re: Doors

Post by SnowHill150001 on Fri Aug 24, 2012 3:55 pm

I now feel pretty stupid! Thanks!

SnowHill150001

Posts : 30
Join date : 2011-09-01

Back to top Go down

Re: Doors

Post by Quork on Fri Aug 24, 2012 6:11 pm

No reason to feel stupid, we all started with such errors, including Bill Gates Wink
avatar
Quork

Posts : 1073
Join date : 2012-05-05
Age : 25
Location : Hofheim a.T., Hessen (Hesse), European Union

Back to top Go down

Re: Doors

Post by Dexter on Fri Aug 24, 2012 8:59 pm

Quork wrote:No reason to feel stupid, we all started with such errors, including Bill Gates Wink

We sure did, the difference is Bill Gates just keeps making them.Very Happy
avatar
Dexter

Posts : 1824
Join date : 2011-07-08
Age : 31
Location : Brno, Czech republic

http://www.brnobve.eu

Back to top Go down

Re: Doors

Post by Drag0nflamez on Sat Aug 25, 2012 12:35 am

Derryck wrote:
Quork wrote:No reason to feel stupid, we all started with such errors, including Bill Gates Wink

We sure did, the difference is Bill Gates just keeps making them.Very Happy
*cough* latest error

Drag0nflamez

Posts : 203
Join date : 2012-05-11
Location : The Netherlands

Back to top Go down

Re: Doors

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum