Elvas Tower: Inserting cabview controls in side views of 2D cabs - 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.
  • 5 Pages +
  • 1
  • 2
  • 3
  • 4
  • 5
  • You cannot start a new topic
  • You cannot reply to this topic

Inserting cabview controls in side views of 2D cabs Rate Topic: -----

#21 User is offline   Lamplighter 

  • Fireman
  • Group: Status: Active Member
  • Posts: 171
  • Joined: 24-January 18
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 03 February 2022 - 01:03 AM

Good work! I also use this option cabview for steam locomotives in the case of a reverse view.
The front view is the view along the tender backwards.
The left view is the original front view and the right view is again a view along the tender backwards, but on the stoker man side.
All elements were moved to the left view (ex front) using the parameter ORTSCabviewpoint (1), but it does not work for one.

Coincidentally, this is a typical element of steam locomotives - a firebox.
The usual code entry is:

Firebox (
Type ( FIREBOX FIREBOX )
Position ( 1 350 80 128 )
Graphic ( "fire.ace" )
FuelCoal ( "coal.ace" )
)


Would it also be possible to include this element in the control with the ORTSCabviewpoint (1) parameter?

In the meantime, I helped with the static texture of fire.ace and the spare workaround:
Lever (
Type ( FIREBOX FIREBOX )
Position ( 1 350 80 128 )
Graphic ( "fire.ace" )
Style ( NONE )
NumFrames ( 1 1 1 )
NumPositions ( 0 )
ORTSCabviewpoint ( 1 )
)


#22 User is offline   Csantucci 

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

Posted 03 February 2022 - 07:32 AM

Yes, you are right. I forgot to add the feature to the firebox control. I'll add it in next ORNYMG release.

#23 User is offline   Lamplighter 

  • Fireman
  • Group: Status: Active Member
  • Posts: 171
  • Joined: 24-January 18
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 07 February 2022 - 01:01 AM

 Csantucci, on 03 February 2022 - 07:32 AM, said:

Yes, you are right. I forgot to add the feature to the firebox control. I'll add it in next ORNYMG release.


I also plead for the DialClock parameter. It doesn't work properly either.
I use it, for example, for historical registration speedometers (Hasler Bern)

#24 User is offline   Csantucci 

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

Posted 07 February 2022 - 04:54 AM

The firebox control can now be inserted in side views with ORNYMG 117. The DialClock will be added in next revision.

#25 User is offline   VAPOR3D 

  • Conductor
  • Group: Status: Active Member
  • Posts: 264
  • Joined: 15-March 20
  • Gender:Male
  • Location:Barcelona, Catalunya
  • Simulator:Open Rails
  • Country:

Posted 22 May 2022 - 10:00 AM

Hello!

I am working now on a 2D cockpit that has a clock (DialClock) on the right display. I have inserted the line ORTSCabviewpoint ( 3 ), corresponding to the right screen, but the additional control is displayed in the front cockpit. I am using OR New Year MG 1.4-237 rev. 119 and it does not work.

What am I doing wrong? Thank you.

#26 User is offline   Csantucci 

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

Posted 22 May 2022 - 12:26 PM

The right screen requires ORTSCabViewpoint ( 2 ) (in the usual case that the third CabviewFile entry in the .cvf file refers to the right view). Numbering starts from 0 for the central view.

#27 User is offline   VAPOR3D 

  • Conductor
  • Group: Status: Active Member
  • Posts: 264
  • Joined: 15-March 20
  • Gender:Male
  • Location:Barcelona, Catalunya
  • Simulator:Open Rails
  • Country:

Posted 22 May 2022 - 01:47 PM

Thank you Carlo.

I have tried with ORTSCabViewpoint ( 2 ) and it works, except for DialClock which keeps popping up in the main front window. The Dials for the brake pipes do work fine.

#28 User is offline   jonas 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 548
  • Joined: 04-April 14
  • Gender:Male
  • Simulator:MSTS & OR
  • Country:

Posted 10 March 2023 - 03:40 PM

Hi Carlo,

Because I am building a CabView, I came across this nice feature here at ET about the CabView side views with separate controls.
I have a quick question about it to shorten further trying for me:

Is my impression correct that it is not backward compatible, to example with OR 1.4?

There the additional controls always show up in the middle front view. Which wouldn't really surprise me, because older OR code doesn't know the ORTSCabviewPoint parameter yet and therefore naturally attributes the additional side control to the center front view. Have I overlooked something - is there a further parameter must to use?

Greetings
Jonas

#29 User is offline   Csantucci 

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

Posted 11 March 2023 - 12:33 PM

Hi Jonas,
it's as you say. In OR versions not supporting the controls in the side views, such controls are shown in the central view.

#30 User is offline   jonas 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 548
  • Joined: 04-April 14
  • Gender:Male
  • Simulator:MSTS & OR
  • Country:

Posted 11 March 2023 - 07:45 PM

I see, Carlo, and still a nice extended function for the CabViews for me of course.

It is a pity that it is not implemented as a separate block, for example in a block named like ORTSCabviewControls:
SIMISA@@@@@@@@@@JINX0h0t______

Tr_CabViewFile (

	CabViewType ( 1 )

	CabViewFile ( CV_Front.ace )
	CabViewWindow ( 0 0 1024 768 )
	CabViewWindowFile ( "" )
	Position ( -0.517699 2.78 8.63 )
	Direction ( 0 0 0 )

	CabViewFile ( CV_Left.ace )
	CabViewWindow ( 0 0 1024 768 )
	CabViewWindowFile ( "" )
	Position ( -0.517699 2.78 8.63 )
	Direction ( 0 -48 0 )

	CabViewFile ( CV_Right.ace )
	CabViewWindow ( 0 0 1024 768 )
	CabViewWindowFile ( "" )
	Position ( -0.517699 2.78 8.63 )
	Direction ( 0 71.5 0 )

	EngineData ( BStE-ET_169a_Jm )

	CabViewControls ( 10
		Dial (
			Type ( MAIN_RES DIAL )
			Position ( 163 32 8 30 )
			Graphic ( CV_Pointer.ace )
			Style ( POINTER )
			ScaleRange ( 0 10 )
			ScalePos ( 227 152 )
			Units ( BAR )
			Pivot ( 20 )
			DirIncrease ( 0 )
		)

		...

	)

	ORTSCabviewControls ( 1
		TwoState (	Comment( Wiperswitch in cabviews right sight only for OR since Version 1.5 )
			Type ( WIPERS TWO_STATE )
			Position ( 500 165 13 24 )
			Graphic ( CV_WIPERSSwitch.ace )
			NumFrames ( 2 2 1 )
			Style ( ONOFF )
			MouseControl ( 1 )
			ORTSCabviewPoint ( 2 )
		)
	)
)
That would keep it compatible with OR versions not supporting the controls in the side views and even with MSTS (for MSTS at least, when the new block ORTSCabviewControls is at the end of the cvf-file code).
In addition, of course, the already existent parameter ORTSCabviewPoint would be preserved and the cvf files already made so far would still be functional for OR.

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