Elvas Tower: Cabview controls for generic items - Elvas Tower

Jump to content

Posting Rules

All new threads will be started by members of the Open Rails team, Staff, and/or Admins. Existing threads started in other forums may get moved here when it makes sense to do so.

Once a thread is started any member may post replies to it.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Cabview controls for generic items Rate Topic: -----

#1 User is offline   Csantucci 

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

Posted 12 October 2021 - 05:22 AM

I already had in mind something like this http://www.elvastowe...870#entry276870 , so I've decided to start this development.
The state of two new generic two-state items of a locomotive can be modified through two new cabview controls, that is ORTS_GENERIC_ITEM1 and ORTS_GENERIC_ITEM2. Keys shift+. and shift+, can also be used to switch item state. Sound events are associated, that is
                        case 240: return Event.GenericItem1On;
                        case 241: return Event.GenericItem1Off;
                        case 242: return Event.GenericItem2On;
                        case 243: return Event.GenericItem2Off;

Animations, either stopped/moving or twostate can be associated to the item state.
Linked stopped/moving (wiper type) animations are named ORTSITEM1CONTONUOUS and ORTSITEM2CONTINUOUS
Linked two state animations (doors type) are named ORTSITEM1TWOSTATE and ORTSITEM2TWOSTATE.

The default animation speed for stopped/moving type animations is 8 FPS. It may be modified with following parameter in the .sd file:
ESD_CustomAnimationSpeed ( 8 )




I suppose that there might be various uses for this. An example is fan control.

Blueprint https://blueprints.l...r-generic-items .

#2 User is offline   Borislav 

  • Hostler
  • Group: Status: Active Member
  • Posts: 83
  • Joined: 30-July 17
  • Gender:Male
  • Location:Gunzburg, Germany
  • Simulator:ORTS
  • Country:

Posted 12 October 2021 - 06:00 AM

Thank you very much, Carlo! This is exactly what I need for the new version of my Evolution Series cab. I'll make a video later and post it here, just so that you and others can see what I am working on.

#3 User is offline   Borislav 

  • Hostler
  • Group: Status: Active Member
  • Posts: 83
  • Joined: 30-July 17
  • Gender:Male
  • Location:Gunzburg, Germany
  • Simulator:ORTS
  • Country:

Posted 12 October 2021 - 02:02 PM

You can see the WIP cab update here: https://youtu.be/6V_-WTqN6Ds

The "Switch Computer Screen" commands are currently linked to "Cab Light" commands, so having a command separate from this would be perfect.

#4 User is offline   Csantucci 

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

Posted 15 October 2021 - 08:14 AM

The feature is now available in OR NewYear MG rev. 108.

#5 User is offline   Borislav 

  • Hostler
  • Group: Status: Active Member
  • Posts: 83
  • Joined: 30-July 17
  • Gender:Male
  • Location:Gunzburg, Germany
  • Simulator:ORTS
  • Country:

Posted 15 October 2021 - 01:42 PM

View PostCsantucci, on 15 October 2021 - 08:14 AM, said:

The feature is now available in OR NewYear MG rev. 108.


This is perfect, Carlo! It works like a charm. I want to thank you so much, and I will certainly credit you in the Readme file for my upcoming cab update.

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