Elvas Tower: Trying to write a script for the British AWS - Elvas Tower

Jump to content

  • 18 Pages +
  • « First
  • 14
  • 15
  • 16
  • 17
  • 18
  • You cannot start a new topic
  • You cannot reply to this topic

Trying to write a script for the British AWS Rate Topic: -----

#151 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 7,000
  • Joined: 31-December 11
  • Gender:Male
  • Country:

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 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 7,000
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 29 February 2020 - 09:24 AM

Overspeedmonitor is not foreseen with AWS. What is provided should not be considered.

#153 User is offline   Stijn D.C. 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 516
  • Joined: 20-August 16
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 29 February 2020 - 09:38 AM

View PostCsantucci, on 29 February 2020 - 09:24 AM, said:

Overspeedmonitor is not foreseen with AWS. What is provided should not be considered.


Hello Carlo,

Was this a repley on my post? i have made mistake with mouseclick = message deleted. Sorry


Greetz,

Stijn

#154 User is offline   Stijn D.C. 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 516
  • Joined: 20-August 16
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 29 February 2020 - 09:43 AM

For moment i have make new test, overwrite .cs files... and now it works, with this settings:


[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 User is offline   Coolhand101 

  • Foreman Of Engines
  • Group: Status: Contributing Member
  • Posts: 998
  • Joined: 13-June 15
  • Gender:Male
  • Simulator:MSTS
  • Country:

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

#156 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 7,000
  • Joined: 31-December 11
  • Gender:Male
  • Country:

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.

#157 User is offline   Coolhand101 

  • Foreman Of Engines
  • Group: Status: Contributing Member
  • Posts: 998
  • Joined: 13-June 15
  • Gender:Male
  • Simulator:MSTS
  • Country:

Posted 01 March 2020 - 05:07 AM

Many thanks for the information Carlo.

#158 User is offline   Stijn D.C. 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 516
  • Joined: 20-August 16
  • Gender:Male
  • Simulator:Open Rails
  • Country:

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)

#159 User is offline   Stijn D.C. 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 516
  • Joined: 20-August 16
  • Gender:Male
  • Simulator:Open Rails
  • Country:

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

#160 User is offline   Coolhand101 

  • Foreman Of Engines
  • Group: Status: Contributing Member
  • Posts: 998
  • Joined: 13-June 15
  • Gender:Male
  • Simulator:MSTS
  • Country:

Posted 01 March 2020 - 10:49 AM

View PostCsantucci, 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% ;)

  • 18 Pages +
  • « First
  • 14
  • 15
  • 16
  • 17
  • 18
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users