BVE WorldWide
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Doors

+3
Quork
graymac
SnowHill150001
7 posters

Go down

Doors Empty Doors

Post by SnowHill150001 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

Doors Empty Re: Doors

Post by graymac 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.
graymac
graymac

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

http://www.celtictrainsim.com

Back to top Go down

Doors Empty Re: Doors

Post by SnowHill150001 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

Doors Empty Re: Doors

Post by SnowHill150001 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

Doors Empty Re: Doors

Post by graymac 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
graymac
graymac

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

http://www.celtictrainsim.com

Back to top Go down

Doors Empty Re: Doors

Post by SnowHill150001 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

Doors Empty Re: Doors

Post by graymac 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.
graymac
graymac

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

http://www.celtictrainsim.com

Back to top Go down

Doors Empty Re: Doors

Post by SnowHill150001 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

Doors Empty Re: Doors

Post by Quork 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!
Quork
Quork

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

Back to top Go down

Doors Empty Re: Doors

Post by graymac 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.
graymac
graymac

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

http://www.celtictrainsim.com

Back to top Go down

Doors Empty Re: Doors

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

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

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

Back to top Go down

Doors Empty Re: Doors

Post by SnowHill150001 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

Doors Empty Re: Doors

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

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

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

http://phontanka.wordpress.com

Back to top Go down

Doors Empty Re: Doors

Post by graymac 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.
graymac
graymac

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

http://www.celtictrainsim.com

Back to top Go down

Doors Empty Re: Doors

Post by SnowHill150001 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

Doors Empty Re: Doors

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

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

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

Back to top Go down

Doors Empty Re: Doors

Post by Dexter 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
Dexter
Dexter

Posts : 2153
Join date : 2011-07-08
Age : 38
Location : Brno, Czech republic

http://www.brnobve.eu

Back to top Go down

Doors Empty Re: Doors

Post by Drag0nflamez 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 : 210
Join date : 2012-05-11
Location : The Netherlands

Back to top Go down

Doors Empty Re: Doors

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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