Elvas Tower: ORTS_BATTERY and ORTS_POWERKEY - Elvas Tower

Jump to content

  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

ORTS_BATTERY and ORTS_POWERKEY Rate Topic: -----

#11 User is offline   Stijn D.C. 

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

Posted 12 June 2020 - 03:58 AM

 Paolo, on 07 June 2020 - 04:31 AM, said:

Hello everyone!

I created two new commands to simulate the start of the batteries and the cab desk activation key. Both controls are equipped with sound triggers. The commands are called ORTS_BATTERY activated by the combination "ctrl + b" and ORTS_POWERKEY activated by the combination "ctrl + k". The first command simulates the switch usually located in the rear of the cabs, which powers all the train services at 24v.
The ORTS_POWERKEY command simulates the insertion of the key that unlocks the cabin desk. Usually, the switching on of the diagnostic monitors is also connected to this function.
I thank Carlo for the support in the development. I have provided him the code changes so that they can be included in the realase of OR and in future versions of the Monogame.

Paolo



In my personal code + NewYearNowd this i have this too, in my version it calls CabinePowerSwitch, becauze POWERKEY is nog right context.



        // SDC Experimental (BEGIN)

        ORTS_TOGGLE_COMPRESSOR,
        ORTS_TOGGLE_SOSCOMPRESSOR,
        ORTS_TOGGLE_AUXCOMPRESSOR,

        ORTS_TOGGLE_MANUAL_VENTILATION,
        ORTS_TOGGLE_TEST_VENTILATION,
        ORTS_TOGGLE_TRAIN_HEATING,
        ORTS_TOGGLE_CABINE_CLIMATISATION,
        ORTS_TOGGLE_TRAIN_CLIMATISATION,

        ORTS_MANUAL_VENTILATION,
        ORTS_TEST_VENTILATION,
        ORTS_TRAIN_HEATING,
        ORTS_CABINE_CLIMATISATION,
        ORTS_TRAIN_CLIMATISATION,

        HORN2,
        HORN3,
        [color="#FF0000"]ORTS_CABINE_POWER_SWITCH[/color],
        ORTS_CABINE_IN_SERVICE_BUTTON,
        ORTS_CABINECLIMATECONTROL,
        ORTS_TRAINCLIMATECONTROL,
        ORTS_MANUALVENTILATION,
        ORTS_TESTVENTILATION,
        ORTS_CABSIGNAL1,
        ORTS_CABSIGNAL2,
        ORTS_CABSIGNAL3,
        ORTS_CABSIGNAL4,
        ORTS_CABSIGNAL5,
        ORTS_CABSIGNAL6,
        ORTS_CABSIGNAL7,
        ORTS_CABSIGNAL8,
        ORTS_MANUALSIGNALLIGHT1,
        ORTS_MANUALSIGNALLIGHT2,
        ORTS_MANUALSIGNALLIGHT3,
        ORTS_MANUALSIGNALLIGHT4,
        ORTS_CABSCREEN,
        ORTS_TRAINHEATING,
        ORTS_NEUTRAL_BRAKE_SWITCH,
        ORTS_WHEELSLIP,
        ORTS_EMERGENCY_LIGHTS,
        ORTS_EPP_SWITCH,
        ORTS_IMMOBILIZATION_BRAKE,
        ORTS_QUICK_TRAIN_BRAKE_RELEASE,
        ORTS_TOGGLE_OVERCHARGE_BRAKE_PIPE,
        ORTS_CABRADIOBUTTON,
        ORTS_HANDBRAKE,
        ORTS_TOGGLE_ALERTERTEST,


A locomotive is only power on, after close circuitbreaker.




For moment my Cabinepowerkey have this code:

MSTSLocomotive.cs :

public void ToggleCabinePowerSwitch(bool newState)
{
if (this is MSTSSteamLocomotive)
return;
SignalEvent(newState ? Event.CabinePowerSwitchOn : Event.CabinePowerSwitchOff);
CabinePowerSwitch = newState;
if (CabinePowerSwitchOn == CabinePowerSwitchOn)
{
if (CabinePowerSwitchOn)
SetTrainBrakeValue(100.0f);
SetEmergency(false);
}
Simulator.Confirmer.Confirm(CabControl.CabinePowerSwitch, CabinePowerSwitchOn ? CabSetting.On : CabSetting.Off);
if (CabinePowerSwitchOff == CabinePowerSwitchOff)
{
if (CabinePowerSwitchOff)
SetEmergency(true);
}
CabinePowerSwitchOff = newState;
Simulator.Confirmer.Confirm(CabControl.CabinePowerSwitch, CabinePowerSwitchOff ? CabSetting.On : CabSetting.Off);
}


What it do now is just sound & cabviewanimation when power on, but when it power off, there comes TCS braking in combination with: MonitoringDeviceAppliesEmergencyBrake ( 1 ) (.eng file)


I know this can be better, and it needs more expansion, becauze not every cabinepowerkey is same.



Cabinepowerkey off position type 1: Circuit open, pantographs down, emergencybrake

Cabinepowerkey off position type 2: Circuit open, pantograps stay in position of pantoselector, emergencybrake

Cabinepowerkey off position type 3: Circuit closed, pantograps stay in position of pantoselector, emergencybrake

...


For CabinePowerSwitch i think it is better too have a script system (.ini file) or .eng file tokens.


The ORTS_BATTERY code in my personal program is code of Jindrich (developper):

MSTSLocomotive.cs:

        public void SetBattery(bool ToState)
        {
            Simulator.Confirmer.Information("Battery is " + (Battery ? "off." : "on."));
            Battery = ToState;
            SignalEvent(ToState ? Event.BatteryOn : Event.BatteryOff);
        }






Batterysound can used too for typical underground sounds too, like Siemens ES64U2/ES64U4 platforms. And much other electric locomotives...


Greetz,

Stijn

#12 User is offline   Stijn D.C. 

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

Posted 14 June 2020 - 04:00 AM

 QJ-6811, on 11 June 2020 - 11:38 PM, said:

If ORTS_Battery and ORTS_Powerkey are connected to other functions, this would be very nice. I hope this is done via setting in the .ENG file! Do not forget that these new functions can also be used with diesels and even with steam locomotives. (think of the current train influence systems).


Diesel locomotives have need also a circuitbreaker, like electric locomotives but specific modifed for Dieselsystem.
Circuitbreaker by Diesel is most for cut traction for bring engines to idle rpm and in neutral position

Also for isolate some controls like train heating... Most of time for electric-diesel engines.


How this is with Diesel Hydraulic, i dont know.


Greetz,

Stijn

#13 User is offline   FloBarr 

  • Apprentice
  • Group: Status: Dispatcher
  • Posts: 24
  • Joined: 13-May 20
  • Gender:Male
  • Simulator:OpenRails
  • Country:

Posted 18 June 2020 - 12:19 PM

hi,

On french diesel locomotive or dmu, there is a « relais traction », that could be seen as a circuit breaker. It doesn’t matters that it’s an electric, hydraulic or mechanic transmission. This relay opens when a protection system or other security system is activated, cutting power. And opening line contactors on electric locomotives.

Flo

#14 User is offline   Albertosaurio65 

  • Apprentice
  • Group: Status: Active Member
  • Posts: 35
  • Joined: 31-August 20
  • Gender:Male
  • Simulator:Open rails
  • Country:

Posted 19 December 2020 - 08:08 AM

would it be possible to create another combination with alt + k to unlock the cabine controls? it would look something like this: ORTS_UNLOCK with its corresponding sound triggers

it would be simply visual, in order to make the cabin more complete and realistic

#15 User is offline   lalek 

  • Apprentice
  • Group: Status: Switchman
  • Posts: 12
  • Joined: 14-November 18
  • Gender:Male
  • Simulator:OR
  • Country:

Posted 14 March 2021 - 09:06 AM

Hi,

Last night i came across that feature and soon after discovered this topic. I have managed so far to do the trigger which activates the sound of connected battery. Is there anything else that i can use this feature at the moment? I could not find anything in manual and my trial and error ends right now after trying commends such as ORTS_BATTERY (Manual) and setting the delay or whatever came up to my mind.

#16 User is offline   Csantucci 

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

Posted 15 March 2021 - 02:30 AM

At the moment the feature is available only in the OR NewYear MG release and is only an "eye candy" feature, that is you can attach to it a cabview control and a sound, but nothing else.

#17 User is offline   lalek 

  • Apprentice
  • Group: Status: Switchman
  • Posts: 12
  • Joined: 14-November 18
  • Gender:Male
  • Simulator:OR
  • Country:

Posted 15 March 2021 - 04:29 AM

That's what I thought, but I couldn't put my finger on it. Thank you for clarifying that.

#18 User is offline   Laci1959 

  • Foreman Of Engines
  • Group: Status: Contributing Member
  • Posts: 947
  • Joined: 01-March 15
  • Gender:Male
  • Simulator:Alföld
  • Country:

Posted 15 March 2021 - 04:39 AM

 Csantucci, on 15 March 2021 - 02:30 AM, said:

At the moment the feature is available only in the OR NewYear MG release and is only an "eye candy" feature, that is you can attach to it a cabview control and a sound, but nothing else.
Will there be a sequel?

#19 User is offline   Csantucci 

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

Posted 15 March 2021 - 06:22 AM

Maybe :)

#20 User is offline   Aldarion 

  • Engineer
  • PipPipPipPipPip
  • Group: ET Owner
  • Posts: 629
  • Joined: 11-February 13
  • Gender:Male
  • Location:Lisbon, Portugal
  • Simulator:Open Rails
  • Country:

Posted 01 May 2021 - 03:30 AM

I am currently using this feature to simulate the ventilation of traction motors in an electric locomotive. I'm using it having the ventilation sound in two separate sms streams for the tow modes in wich they work for the loco. "Automatic" mode stream with Variable_Trigger for Variable2_Inc_Past/Variable2_Dec_Past, and "Manual" mode stream for Discrete_Trigger 179/180.

As long as this feature is kept "eye candy" it shouldnt be a problem. But If the feature develops to have be more than that I hope that the "feature" can be copy/pasted, so to say, has ORTS_VENTILATION or something.

Cheers

  • 3 Pages +
  • 1
  • 2
  • 3
  • 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