Elvas Tower: Battery switch & Master key - Elvas Tower

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Battery switch & Master key Further explanations Rate Topic: -----

#1 User is offline   Keilen 

  • Apprentice
  • Group: Status: Active Member
  • Posts: 27
  • Joined: 12-March 19
  • Gender:Male
  • Simulator:OR & MSTS
  • Country:

Posted 16 May 2022 - 07:02 AM

According to the manual, both cab controls have the possibility to ``hide`` other cab controls based on the following block lines:

TwoState (
Type ( ORTS_CIRCUIT_BREAKER_CLOSED TWO_STATE)
...
DisabledIfLowVoltagePowerSupplyOff ( 1 )
)


and

TwoState (
Type ( ORTS_CIRCUIT_BREAKER_CLOSED TWO_STATE)
...
DisabledIfCabPowerSupplyOff ( 1 )
)


My confusion is caused by the fact that I don't understand if this command makes another command, set by the creator, invisible or can block the next command sequence in the locomotive start sequence.

Is anyone willing to add an example of such a command block?

Thank you!

#2 User is online   Weter 

  • Member, Board of Directors
  • PipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 6,806
  • Joined: 01-June 20
  • Gender:Not Telling
  • Simulator:ORTS
  • Country:

Posted 16 May 2022 - 07:07 AM

I guess indeed THIS cab control will be disabled until said condition will be meet, if 1 is set.

#3 User is offline   Serana 

  • Conductor
  • Group: Status: Contributing Member
  • Posts: 489
  • Joined: 21-February 13
  • Gender:Male
  • Location:St Cyr l'Ecole (France)
  • Simulator:Open Rails
  • Country:

Posted 03 August 2022 - 03:54 PM

These conditions corresponds to something like that: "if there is no electricity, this light can't light up"

#4 User is offline   trainagrandevitesse 

  • Apprentice
  • Group: Status: Active Member
  • Posts: 32
  • Joined: 17-September 13
  • Gender:Male
  • Location:Paris Gare de l'Est
  • Simulator:ORTS
  • Country:

Posted 03 August 2022 - 04:38 PM

Good evening,
is it in the .cvf file of the 2D cabin that these lines must be added?
I tried with several commands, buttons, but it doesn't work.

Good night

Jean Prisca

#5 User is offline   Keilen 

  • Apprentice
  • Group: Status: Active Member
  • Posts: 27
  • Joined: 12-March 19
  • Gender:Male
  • Simulator:OR & MSTS
  • Country:

Posted 05 August 2022 - 04:19 AM

Hello !

From my attempts, basically, inserted in the block of a command in the .cvf file, it visually hides that command, without limiting its functionality.

For example:

TwoState (
Type ( ORTS_MASTER_KEY TWO_STATE )
Position ( 112 376 40 20 )
Graphic ( Contact.ace )
NumFrames ( 2 2 1 )
Style ( ONOFF )
MouseControl ( 1 )
DisabledIfLowVoltagePowerSupplyOff ( 1 )
)

It only makes the ignition key ( Contact.ace ) no longer visible, but the control itself is not locked!

Good luck!

#6 User is offline   trainagrandevitesse 

  • Apprentice
  • Group: Status: Active Member
  • Posts: 32
  • Joined: 17-September 13
  • Gender:Male
  • Location:Paris Gare de l'Est
  • Simulator:ORTS
  • Country:

Posted 29 October 2022 - 03:36 PM

Good evening,
I noticed that the:
lines Disable flow Voltage Power Supply Off ( 1 )
DisabledIfCabPowerSupplyOff ( 1 )

only act on the 2D cabin, but have no effect on the 3D cabin.
Have you noticed the same thing?

Goodnight

Jean-Prisca

#7 User is offline   Keilen 

  • Apprentice
  • Group: Status: Active Member
  • Posts: 27
  • Joined: 12-March 19
  • Gender:Male
  • Simulator:OR & MSTS
  • Country:

Posted 01 November 2022 - 01:17 AM

I'm sorry but I don't yet have a 3D cabin with this function and I haven't tried to introduce it; for now I'm only focused on 2D cabin.

#8 User is offline   Serana 

  • Conductor
  • Group: Status: Contributing Member
  • Posts: 489
  • Joined: 21-February 13
  • Gender:Male
  • Location:St Cyr l'Ecole (France)
  • Simulator:Open Rails
  • Country:

Posted 02 November 2022 - 05:47 PM

The 3D cab support for those parameters is currently being coded.

Please note that, to make things a bit more usable, I will create two additional parameters:
- HideIfDisabled ( 1 ) will not show the cabview control if power supply is off
- ValueIfDisabled ( <some value> ) will force the cabview control to a defined value if power supply is off (for example, for a voltmeter, you can force the voltage to 0V with this).

Page 1 of 1
  • 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