Visa ett inlägg
Gammal 2005-03-31, 13:46   #2
svenolov
Medlem
 
Reg.datum: Apr 2004
Ort: Lom - Norway
Inlägg: 1 272
Standard

I skrivande stund håller jag på att sammanställa ett par "Rules" och en "Driver Command" som gör precis det du efterfrågar. Jag hade tänkt skriva lite grann om det på Aurans forum ikväll, där vi har diskuterat ämnet tidigare. Jag kanske skall börja här i stället med att lägga ut en cdp som du och andra kan prova, nu när man kan bifoga filer.
Nedan är ett utdrag ur den engelska texten som jag tänkte posta på Aurans forum.

-------------------

Wait For Departure – Driver Command / Auto Pilot – Rule / Beta version 0.91

This is a short description of the beta version of the rules and the command.

The Wait For Departure Driver Command (below called WFD) was developed with the excellent Set Path Rule/Driver Command by Martin Hammel in mind, but it can be used anywhere in Driver Setup.

The WFD has 3 major events that should be fulfilled before the next Driver Command in the chain will be executed. The signals should allow departure, the train must have arrived at destination trackside, and the departure timeout at destination must have been reached. These events can individually be disabled, if in some situations only one or two events are justified. If the train is late (departure event occurs before arrival event) a pause can be added and a custom message can be displayed. As soon Martin Hammel will publish the interface to the Set Path Command, I will add this function to the WFD.

WFD command can use either an Auto Pilot (below called AP) or you can drive manually. Do not confuse this AP with the AI-driver, because this AP is human. The AP only drive for you, as you would drive. He/she do not set any junctions, and he/she do not reverse to try another way. The AP waits gently for department, green signals, or what you have instructed him/her to do. The AP will respect all signals and speed signs along the way. If you drive manually you must respect this as well, but you can depart early and pass red lights at your own risk (there are alarms built in for manual driving).

All properties are setup in rules by user, and all properties can be reached by a built in message handler so other scripts can set/read them.
There is other stuff built in, but not documented yet (will be documented in the final release). These are information about signals ahead, how to use the AP in other scripts/commands, and much more.

NOTE! The AP is optional. The WFD can be used as a WaitUntil command without the AP.

You can request a complete pack of this beta version for evaluation via E-mail. If you send me a mail you will get all components with a short description on how to use them. I will reply within 24 hours.

I should appreciate if you will test this rule/command and then discuss it on the forum, for improvements and other aspects.
__________________
svenolov

I Trainz vet man att det omöjliga är möjligt (bevingade ord myntade av Nisse).
svenolov besöker inte forumet just nu   Svara med citat