The circuit-breaker logic tests for the Power Authorization from "Train.LeadLocomotive".
But AI trains do not have a LeadLocomotive (the LeadLocomotive for a player train is the first driveable engine in the consist - this has no meaning for AI trains). As a result, the circuit-breaker was never closed for AI trains.
For most of the time this went unnoticed, as the 'acceleration override' which is implemented in AI control (necessary to overcome certain physics problems for AI trains) will get the train moving regardless of whether it has any power or not. Only in 'braking' mode, when the override is not active, did this problem show up as 'creeping' trains.
Another problem with the logic as implemented is that any delay in the closing of the circuit-breaker has no effect at all for AI trains, because of the 'acceleration override' as mentioned above.
In all, the present implementation for circuit-breaker for AI trains has no function and only causes problems.
Therefor, in version X2501, the circuit-breaker logic is bypassed for AI trains, with the circuit-breaker closed by default.
Regards,
Rob Roeterdink
High voltage circuit breaker
#52
Posted 20 September 2014 - 06:12 PM
Thank you Rob.
Indeed, I should have written an override for this function the same way as in the Update function of the TrainControlSystem class.
Regards
Indeed, I should have written an override for this function the same way as in the Update function of the TrainControlSystem class.
Regards
#53
Posted 07 December 2015 - 04:15 AM
Hi.
What is a further progress of this function?
Thanks for your answer.
What is a further progress of this function?
Thanks for your answer.
#54
Posted 07 December 2015 - 06:19 AM
Hi,
There is no progress of this functionality currently because Peter (gpz) announced a new scripting interface for the whole rolling stock several months ago.
I am still waiting for it.
There is no progress of this functionality currently because Peter (gpz) announced a new scripting interface for the whole rolling stock several months ago.
I am still waiting for it.