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

Jump to content

  • 12 Pages +
  • « First
  • 9
  • 10
  • 11
  • 12
  • 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: Posts: Elite Member
  • Posts: 7,454
  • 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: Posts: Elite Member
  • Posts: 7,454
  • 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: Posts: Contributing Member
  • Posts: 566
  • 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: Posts: Contributing Member
  • Posts: 566
  • 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: Posts: 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: Posts: Elite Member
  • Posts: 7,454
  • 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: Posts: 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: Posts: Contributing Member
  • Posts: 566
  • 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: Posts: Contributing Member
  • Posts: 566
  • 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: Posts: 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% ;)

#161 User is offline   Coolhand101 

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

Posted 06 March 2020 - 05:46 PM

Hi Carlo.

Question about the Overspeed script. When the Overspeed is triggered, the AWS shows the warning sunflower. Is it possible in the INI/script/AWS.ace to avoid this?

Thanks

#162 User is offline   Csantucci 

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

Posted 08 March 2020 - 06:49 AM

You should delete line 780, that is
                            SetNextSignalAspect(Aspect.Approach_3);

in method UpdateOverspeedMonitor().

#163 User is offline   Coolhand101 

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

Posted 08 March 2020 - 01:20 PM

Many thanks!

Along with the previous instruction, I can now finally have the BR 125 HSTs fitted with an overspeed trip for traction cut off ;)

#164 User is offline   darwins 

  • Superintendant
  • Group: Posts: Elite Member
  • Posts: 1,561
  • Joined: 25-September 17
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 10 March 2020 - 11:39 AM

Now that Carlo's work is over I have found this very useful document online.
BR and BR-WR AWS Manual
December 1974
Comprehensive description of the Automatic Warning System.


#165 User is offline   darwins 

  • Superintendant
  • Group: Posts: Elite Member
  • Posts: 1,561
  • Joined: 25-September 17
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 23 April 2020 - 01:03 AM

Hello
A question for Carlos and the OR Development team:
When will the AWS script function in the "other" version of OpenRails (not MG)?
I am having a look at getting the AWS to function in a variety of ways in different stock, but have the problem that AWS seems only to function in the MG version, whereas there are some developments with vacuum brakes on steam and diesel locos made over the past few months, that only seem to work correctly in the XNA version - notably the function of the large and small ejector on steam locomotives - it is possible to release the brakes on these locos without using any ejectors to suck the air out.
One of the recent additions to brake code that will be very useful for AWS and DVD operation is the addition of the air or vacuum governors. These can now be included in eng files using the following:

ORTSDoesVacuumBrakeCutPower ( 1 )
ORTSBrakeCutsPowerAtBrakePipePressure ( 12.5inHg )
ORTSBrakeRestoresPowerAtBrakePipePressure ( 16inHg )


ORTSDoesBrakeCutPower ( 1 )
ORTSBrakeCutsPowerAtBrakePipePressure ( 46psi )
ORTSBrakeRestoresPowerAtBrakePipePressure ( 60psi )





  • 12 Pages +
  • « First
  • 9
  • 10
  • 11
  • 12
  • 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