Trying to write a script for the British AWS
#151
Posted 16 February 2020 - 10:03 AM
If the colour light signal has two aspects, and they are one STOP and the other one RESTRICTING, or CLEAR_1, or CLEAR_2, it is handled by the script like a semaphore.
#152
Posted 29 February 2020 - 09:24 AM
Overspeedmonitor is not foreseen with AWS. What is provided should not be considered.
#153
Posted 29 February 2020 - 09:38 AM
#154
Posted 29 February 2020 - 09:43 AM
For moment i have make new test, overwrite .cs files... and now it works, with this settings:
Greetz,
Stijn
[General] AWSMonitor=true EmergencyStopMonitor=true VigilanceMonitor=true OverspeedMonitor=true [AWS] Inhibited=false WarningTimerDelayS=3 BrakeImmediately=false TrainStopBeforeRelease=false ActivationOnSpeedLimitReduction=true SpeedLimitReductionForActivationMpS=11.176 BeaconDistanceToPostM=1186 AppliesCutsPower=true [EmergencyStopMonitor] MonitorTimeLimitS=0 AlarmTimeLimitS=0 PenaltyTimeLimitS=0 CriticalLevelMpS=0 ResetLevelMpS=0 AppliesFullBrake=true AppliesEmergencyBrake=false AppliesCutsPower=true AppliesShutsDownEngine=false [VigilanceMonitor] MonitorTimeLimitS=55 AlarmTimeLimitS=17 PenaltyTimeLimitS=0 CriticalLevelMpS=0 ResetLevelMpS=0 AppliesFullBrake=true AppliesEmergencyBrake=false ResetOnZeroSpeed=true AppliesCutsPower=true RestartOnControlsMoved=true AppliesShutsDownEngine=true ResetOnResetButton=true [OverspeedMonitor] MonitorTimeLimitS=10 AlarmTimeLimitS=5 PenaltyTimeLimitS=0 CriticalLevelMpS=90 ResetLevelMpS=0.1 AppliesFullBrake=true AppliesEmergencyBrake=false AppliesCutsPower=true AppliesShutsDownEngine=false AlarmTimeBeforeOverSpeedS=5 DoesSuppressionReset=false TriggerOnOverspeedMpS=95 ResetOnZeroSpeed=false ResetOnResetButton=true TriggerOnTrackOverspeed=true TriggerOnTrackOverspeedMarginMpS=0.8
Greetz,
Stijn
#155
Posted 29 February 2020 - 03:51 PM
Couple of questions on the Overspeed monitor INI.
1. ResetlevelMpS = Setting this 5 mph below the critical speed does not reset, after the overspeed has been triggered. Does this token have a different meaning?
2. Overspeed sound = Appears to be linked to the AWS warning sound. Can the overspeed have a different sound?
Thanks
1. ResetlevelMpS = Setting this 5 mph below the critical speed does not reset, after the overspeed has been triggered. Does this token have a different meaning?
2. Overspeed sound = Appears to be linked to the AWS warning sound. Can the overspeed have a different sound?
Thanks
#156
Posted 01 March 2020 - 12:43 AM
1. ResetLevelMpS isn't implemented in the built-in OR Overspeed Monitor and isn't implemented either in the AWS TCS script, sorry.
2. You can use these two events: case 111: return Event.TrainControlSystemActivate; case 112: return Event.TrainControlSystemDeactivate to start and stop the sound by adding the related streams in the TCS_AWS_UK.sms file and by replacing TriggerSoundWarning1() with TriggerSoundSystemActivate() and TriggerSoundWarning2() with TriggerSoundSystemDeactivate() within the UpdateOverspeedMonitor() method starting at line 635 of TCS_AWS_UK.cs. These are the last two free TCS triggers.
2. You can use these two events: case 111: return Event.TrainControlSystemActivate; case 112: return Event.TrainControlSystemDeactivate to start and stop the sound by adding the related streams in the TCS_AWS_UK.sms file and by replacing TriggerSoundWarning1() with TriggerSoundSystemActivate() and TriggerSoundWarning2() with TriggerSoundSystemDeactivate() within the UpdateOverspeedMonitor() method starting at line 635 of TCS_AWS_UK.cs. These are the last two free TCS triggers.
#158
Posted 01 March 2020 - 08:03 AM
On my personal ORTS code i use this + .events.cs code for overspeedsound on standard ORTS TCS:
protected virtual void UpdateOverSpeedSound(float elapsedClockSeconds)
{
if (TrainControlSystem.OverspeedWarning)
SignalEvent(Event.OverspeedSoundOn);
else if (!TrainControlSystem.OverspeedWarning)
SignalEvent(Event.OverspeedSoundOff);
}
Is use it must on time for ETCS overspeed whistle :-), but is better that this works on .tcs script.
Becauze now this overspeed sound works too when there is .tcs script active.
But i use cabanimation for show hide aspect displays... on cabines that have more signal systems. And with SetStreamVolume code in .sms files this is fixed
That is why i prefer that in future .tcs scripts can be switched in game, with ALT + SHIFT + 1/2/3/4/5/6/7/8/9 keys. (1-9 on normal keyzone, not NUMPAD)
Very usefull for routes & trains that drives on more country's and signal systems (like classic line & TGV)
protected virtual void UpdateOverSpeedSound(float elapsedClockSeconds)
{
if (TrainControlSystem.OverspeedWarning)
SignalEvent(Event.OverspeedSoundOn);
else if (!TrainControlSystem.OverspeedWarning)
SignalEvent(Event.OverspeedSoundOff);
}
Is use it must on time for ETCS overspeed whistle :-), but is better that this works on .tcs script.
Becauze now this overspeed sound works too when there is .tcs script active.
But i use cabanimation for show hide aspect displays... on cabines that have more signal systems. And with SetStreamVolume code in .sms files this is fixed
That is why i prefer that in future .tcs scripts can be switched in game, with ALT + SHIFT + 1/2/3/4/5/6/7/8/9 keys. (1-9 on normal keyzone, not NUMPAD)
Very usefull for routes & trains that drives on more country's and signal systems (like classic line & TGV)
#159
Posted 01 March 2020 - 09:56 AM
Some links found on Wikipedia in case AWS/TPWS:
https://catalogues.r...2%20Iss%203.pdf
Greetz,
Stijn
https://catalogues.r...2%20Iss%203.pdf
Greetz,
Stijn
#160
Posted 01 March 2020 - 10:49 AM
Csantucci, on 01 March 2020 - 12:43 AM, said:
2. You can use these two events: case 111: return Event.TrainControlSystemActivate; case 112: return Event.TrainControlSystemDeactivate to start and stop the sound by adding the related streams in the TCS_AWS_UK.sms file and by replacing TriggerSoundWarning1() with TriggerSoundSystemActivate() and TriggerSoundWarning2() with TriggerSoundSystemDeactivate() within the UpdateOverspeedMonitor() method starting at line 635 of TCS_AWS_UK.cs. These are the last two free TCS triggers.
Many thanks again Carlo. That worked 100% ;)