Nakata wrote: ↑28 Aug 2017, 08:18
MetroMan123 wrote: ↑05 Aug 2017, 23:32
Hello,can you help me with something? When i’m in activity mode and i want to add a train in service how can i make the DRIMs to show the time upon my train’s arrival and not only the destination?
Yeah, that's also my question.
So you are building an activity and you want to know how to program the DRIMs?
In the ACT file, a metro is assigned a train code.
Under the train code, it will get a series of services to perform, like this:
Code: Select all
<train code="614">
<duty code="614-2" number="614#TB" route="6-TB" time="07:50:00" ai="true"/>
<duty code="614-2" number="614#BT" route="6-BT" time="08:05:00" ai="true"/>
<duty code="614-2" number="614#TB" route="6-TB" time="08:20:00" ai="true"/>
<duty code="614-2" number="614#BT" route="6-BT" time="08:35:00" ai="true"/>
<duty code="614-2" number="614#TB" route="6-TB" time="08:50:00" ai="true"/>
</train>
<duty code="614-2" number="614#TB" route="6-TB" time="07:50:00" ai="true"/>
means:
-> Train 614 consists of 2 units.
-> For this run, the train number is 614#TB (the # is filled in automatically by the mentioned number of units).
-> The route to run is "6-TB". This is a set of commands in the CTD file which your activity reads.
-> The departuretime for this run is 07:50:00.
-> The service activates with the AI.
Now to the CTD. In the CTD, the activity now searches for route "6-TB";
Code: Select all
<route code="6-TB" end="620,660" totaltime="650" reversetime="50" scrollsign="6-sbk" >
<aimarkers>
<marker block="643" marker="643-2"/>
<marker block="642" marker="642-2"/>
<marker block="641" marker="641-2"/>
</aimarkers>
<times>
<depart platform="TPC3" time=" 0" destinationcode="21" station="tpc" actions="stop" stops="TPC1,TPC2,TPC3"/>
<stop platform="MGS2" time=" 95" destinationcode="21" station="mgs" actions="stop" stops="MGS1,MGS2"/>
<stop platform="NOP4" time=" 180" destinationcode="21" station="nop" actions="stop" stops="NOP3,NOP4"/>
<stop platform="BGT4" time=" 265" destinationcode="21" station="bgt" actions="stop" stops="BGT3,BGT4"/>
<stop platform="STH4" time=" 360" destinationcode="21" station="sth" actions="stop" stops="STH3,STH4"/>
<stop platform="JNP2" time=" 455" destinationcode="21" station="jnp" actions="stop" stops="JNP1,JNP2"/>
<stop platform="GML2" time=" 550" destinationcode="21" station="gml" actions="stop" stops="GML1,GML2" scrollsign="#"/>
<arrive platform="SBK1" time=" 645" destinationcode=" 1" station="sbk" actions="stop,finish" stops="SBK1,SBK2"/>
</times>
</route>
From top to bottom:
<route code="6-TB" end="620,660" totaltime="650" reversetime="50" scrollsign="6-sbk" >
-> Route code 6-TB (the ID of the route).
-> The route is finished when the train is detected in block 620 or 660.
-> The total running time for this route is 650 seconds.
-> The minimum reverse time (before a next route can be initiated) at the terminus is 50 seconds.
-> The scrollsign code is 6-sbk (for which the simulator will search in yet another file).
<marker block="643" marker="643-2"/>
The activation marker for the AI-control of the train is located in block 643, with ID 643-1. The train must be in this block or the AI won't activate. In the above case; there are 3 possible blocks from which you can depart for this route.
<stop platform="MGS2" time=" 95" destinationcode="21" station="mgs" actions="stop" stops="MGS1,MGS2"/>
-> Stop at platform MGS2, at time 95 seconds after the initial departure.
-> The DRIM should show destination code number 21 on it's list (a list of the destinations and their codes are on top of the CTD file).
-> The stations is mgs, the train should stop here (halt, doors open, doors close, continue), and will execute this either when it enters platform 1 or 2.
The DRIM: In the activity (ACT), you have defined that train 643 starts a service 6-TB at 07:50:00. Service 6-TB (in the CTD) is planned to pass platform MGS2 at 95 seconds after the initial departure. So, the DRIM at platform MGS2 will expect your train to depart from the platform at 07:51:34. It will the start a countdown (in whole minutes) from 60 minutes to the departure time.
And when it determines you have not progressed enough along the route to make that departuretime, it will start showing "vertraagd" (Delayed).
Now, if you are already in the simulator and you want to take an extra train in service which has no services pre-programmed in the above way into the ACT file (like: you are just taking an extra train out of the depot yourself), then that train does not have a timetable (so a time can not be shown), and the DRIMs can only show your destination based on your train number when you are actually at the platform.