Elvas Tower: Some cab controls can't be operated by mouse - Elvas Tower

Jump to content

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

Some cab controls can't be operated by mouse 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 20 September 2018 - 01:32 PM

I see what i can do next weekend, when workweek is finish.

#12 User is offline   Csantucci 

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

Posted 21 September 2018 - 08:10 AM

With X.4220 I have added cab and mouse controls for left doors (ORTS_LEFTDOOR), right doors (ORTS_RIGHTDOOR) and mirrors (ORTS_MIRRORS). Last functional improvement before 1.3...

#13 User is offline   Coolhand101 

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

Posted 21 September 2018 - 11:00 AM

View PostCsantucci, on 21 September 2018 - 08:10 AM, said:

With X.4220 I have added cab and mouse controls for left doors (ORTS_LEFTDOOR), right doors (ORTS_RIGHTDOOR) and mirrors (ORTS_MIRRORS). Last functional improvement before 1.3...



Many thanks Carlo. Almost all my static cab controls are now workable!

#14 User is offline   Stijn D.C. 

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

Posted 22 September 2018 - 02:27 AM

Hello Carlo,

I see you have add left and door controls too.

In my onoffcial code i have made this too, but with name button, normal it must be toggle or something.


Becauze ORTS doorsystem is configuratate with toggle/button commands.


So if we use a multistatedisplay for add a light (indicator) of doors on cabview (left, right, both) there is not time-elapse between command and closing of doors.


In MSTS Bin was this correct, i think in that time the timer works on animationtime of .s


So my opinian incase doors and a correct display of doors is that we need for doordisplays in cabview a system with timer


Linking to a token in ENG & WAG files like this:


ORTSDoors (
Opening (
Delay ( 3s )
)
Closing (
Delay ( 6s )
)
)



OR...


ORTSDoorsLeft (
Opening (
Delay ( 3s )
)
Closing (
Delay ( 6s )
)
)

ORTSDoorsRight (
Opening (
Delay ( 3s )
)
Closing (
Delay ( 6s )
)
)

#15 User is offline   mrmosky 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 648
  • Joined: 02-October 16
  • Gender:Male
  • Location:Chasetown
  • Simulator:Openrails
  • Country:

Posted 30 March 2019 - 10:45 AM

View PostCsantucci, on 29 July 2017 - 12:02 AM, said:

With x.3907 wipers can now be operated by mouse.
Can someone make a full list of controls that can't be operated by mouse?

I am making a 3d cab at the moment. I can operate the wipers using "v", but I can't seem to get them controlled by the mouse. Does there have to be something in the cab file?

Geoff

#16 User is offline   mrmosky 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 648
  • Joined: 02-October 16
  • Gender:Male
  • Location:Chasetown
  • Simulator:Openrails
  • Country:

Posted 30 March 2019 - 11:43 AM

Attached Image: falcon13.JPG

Here is a view of the cab, just for interest. It is nearing completion, and I will be uploading it on UKTrainsim when it's finished.

Geoff

#17 User is offline   Csantucci 

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

Posted 31 March 2019 - 12:45 AM

There must be a WIPERS block in the .cvf file.

#18 User is offline   mrmosky 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 648
  • Joined: 02-October 16
  • Gender:Male
  • Location:Chasetown
  • Simulator:Openrails
  • Country:

Posted 31 March 2019 - 01:58 AM

Thanks Carlo, It's working now!

So to summarise, for anyone else trying this; there has to be an animated object called EXTERNALWIPERS:0:0 , and that is the wiper arm. Also, there has to be another animated object called WIPERS:0:0, which is the switch. Then in the cvf cab definition file in the Cabview3d folder, there has to be a control block like this :

TwoState (
Type ( WIPERS TWO_STATE )
Position ( 537 306 15 23 )
Graphic ( )
NumFrames ( 2 1 2 )
Style ( ONOFF )
MouseControl ( 1 )


Then, when the switch is operated by the mouse in 3d cabview, the wipers are animated.

Additionally, if there are further animated wiper arms or blades, these objects are called EXTERNALWIPERS:0:1, and so on.


Geoff

#19 User is offline   Csantucci 

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

Posted 31 March 2019 - 04:39 AM

Next time I modify the manual, I'll add something about this to provide more complete info.

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