Posted 03 November 2015 - 11:35 AM
Checking through the code, I have allready found one serious error.
A variable is used named "Simulator.CurveDurability". This is derived from the train's config durability in the method "InitializePlayerTrain", in Simulator.cs. But this method is only called in Activity mode, not in Timetable mode.
This means that, in timetable mode, the CurveDurability is always 0, as is this is used to calculate the max. curve speed by multiplying the safe curve speed with this factor, the maximum durability curve speed in timetable mode is always 0. So any train going through any curve will always exceed the durability speed.
I have not found it yet, but perhaps there is a similar error in some other variable used in these calculations.
Another serious issue is that the implementation of the breaking logic would be active only if the related settings are switched on. But I have found many calculations and checks which are non-conditional, so it seems at least part of the calculations AND RELATED WARNINGS (!) are not conditional at all. That was not what was agreed :thumbdown3: .
Regards,
Rob Roeterdink