gpz, on 09 February 2014 - 11:17 PM, said:
The script, as described in first post of this topic, is supposed to work exactly like you described the plugin system. But currently only one is supported at a time. We could define multiple of them for a single locomotive, in case we could specify the method to switch between them.
I think currently only the continuous transmission can be simulated, assuming that all the systems also use continuous transmission. This is because there is no way currently to add transponders to MSTS routes. There was a recent discussion about it in an other topic, and this was the conclusion.
Could you please take a look on the example script attached to the first post? I would be glad if we could move this feature forward.
A way to represent a continuous transmission for the script is to simply look at the state of the signal in front of the train.
For the discontinuous transmission, you may have to save the state of the signal in front of the train. This saved state can then be used in the next zone to do the speed control.
For example, when a train is running towards a signal, it will save the state of this signal (the aspect and a speed limitation if necessary) when it is about to pass it. Then, it will use this information for the train protection.
For the plug-in system, you've talked about the TCS, but we also have to do something for more complex systems (for example, for those who use more than 8 aspects). I think we should add ground TCS plug-in that will send specific information to the rolling stock plug-in.
It is also needed because systems such as TVM, LZB and ETCS don't work the same way.
How to switch between the CCS systems ? There are different methods used on the rolling stock.
In the TGV : ETCS (if existing) has priority. Then, the TVM and KVB have to decide which one must be active. On classic lines, the TVM is in stand-by mode and the KVB is active. An EPI or a BSP beacon wakes up the TVM. Then, a KVB beacon tells the KVB to check if the TVM is active. If it is the case, the KVB goes in stand-by mode while the speed is above 160 km/h (because below this speed, the KVB is used for Temporary Speed Restriction).
In the simulator, we can just define an order of preference. Using the zones I talked about in my previous message, the train can determine with this order which system is active.
I will use the demo script in order to represent the KVB. I won't be able to adapt it for the TVM while the signalling system is not extended because the rules aren't the same.