Elvas Tower: ORTS_PLAYER_DIESEL_ENGINE_STATE - Elvas Tower

Jump to content

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

ORTS_PLAYER_DIESEL_ENGINE_STATE Further information 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 - 06:48 AM

According to the manual the following cabview control is avaible :

"ORTS_PLAYER_DIESEL_ENGINE_STATE .
This control respectively selects frames 0, 1, 2, 3 for the player locomotive engine states Stopped, Starting, Running and Stopping. It is a display-only control".

My question is whether I can assign 4 frames to view these states on the locomotive dashboard or are they only visible in the ``Train Driving Info`` HUD ? I tried to assign 4 LEDs for these states on the board but this command does not work (it is invisible) !

Thank you!

#2 User is offline   Weter 

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

Posted 16 May 2022 - 07:01 AM

		MultiStateDisplay (
			Type ( ORTS_PLAYER_DIESEL_ENGINE_STATE MULTI_STATE_DISPLAY )
			Position ( <YOURposition> X Y <YOURsize> A B )
			Graphic ( YOURFILE.ace )
			States ( 4 2 2 <or 4 4 1>
				State (
					Style ( 0 )
					SwitchVal ( 0 )
				)
				State (
					Style ( 1 )
					SwitchVal ( 0.25 )
				)
				State (
					Style ( 2 )
					SwitchVal ( 0.5 )
				)
				State (
					Style ( 3 )
					SwitchVal ( 0.75 )
				)
			)
		)

As usual, doesn't it work?

#3 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:07 AM

View PostWeter, on 16 May 2022 - 07:01 AM, said:

		MultiStateDisplay (			Type ( ORTS_PLAYER_DIESEL_ENGINE_STATE_DISPLAY )			Position ( <YOURposition> X Y <YOURsize> A B )			Graphic ( YOURFILE.ace )			States ( 4 2 2 <or 4 4 1>				State (					Style ( 0 )					SwitchVal ( 0 )				)				State (					Style ( 1 )					SwitchVal ( 1 )				)				State (					Style ( 2 )					SwitchVal ( 2 )				)				State (					Style ( 3 )					SwitchVal ( 3 )				)			)		)





Hello!

I tried according to the example in the manual the following block:

MultiState (
Type ( ORTS_PLAYER_DIESEL_ENGINE_STATE TRI_STATE)
Position ( 266 292.5 8 8 )
Graphic ( Regim_functionare_motor )
States ( 4 4 1 )
Style ( NONE )
MouseControl ( 1 )
Orientation ( 0 )
DirIncrease ( 1 )
)


but it didn't work!


I will try to revise according to your suggested block.

Thank You!

#4 User is offline   Weter 

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

Posted 16 May 2022 - 07:28 AM

It isn't TRISTATE certainly, as we know, it has 4 states.

MultiStateDYSPLAY (
Type ( ORTS_PLAYER_DIESEL_ENGINE_STATE TRIMULTI_STATE_DYSPLAY)
Position ( 266 292.5 8 8 )
Graphic ( Regim_functionare_motor.ACE )
States ( 4 4 1
State (
Style ( 0 )
SwitchVal ( 0 )
)
State (
Style ( 0 )
SwitchVal ( 0.25 )
)
State (
Style ( 0 )
SwitchVal ( 0.5 )
)
State (
Style ( 0 )
SwitchVal ( 0.75 )
)
)

Style ( NONE )
MouseControl ( 1 )
Orientation ( 0 )
DirIncrease ( 1 )

)

#5 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 - 08:02 AM

I know and understand what you have exposed, but it is the example in the manual. Apart from the term ``.ace`` which I forgot to copy in my example the rest is ``copy paste`` from the manual.

Unfortunately the block you suggested doesn't work either and I don't know why! I am attaching the proofs.LED marked in pictures does not light up!


Thank You!

Attached thumbnail(s)

  • Attached Image: Running State.jpg
  • Attached Image: Starting State.jpg
  • Attached Image: Stopping State.jpg

Attached File(s)



#6 User is offline   Weter 

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

Posted 16 May 2022 - 08:21 AM

Regim_functionare_motor .ace
I see a space defore ".ace"
Is it within actual filename?
The rest looking right,
I'm only not sure about SwitchValues, I suggested.

How does that *.ace look like?
As an overlay?
If You'll shift it for seeing is it really works and what wrames does it actually show?

#7 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 - 09:14 AM

Yes, the mistake detected is the same as the one exposed. There is a break between the name and .ACE. I corrected it and now it works. It's super OK. Thanks again.

#8 User is offline   Weter 

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

Posted 16 May 2022 - 09:16 AM

Yes, read and understand Your LOG-file after evety test.
Go further, than we stay now.
Good luck.

#9 User is offline   steved 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,841
  • Joined: 19-December 09
  • Gender:Male
  • Location:South of here
  • Simulator:ORMG
  • Country:

Posted 16 May 2022 - 12:25 PM

Way to go Weter!
You've got a good eye.

#10 User is offline   Weter 

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

Posted 16 May 2022 - 01:30 PM

It just so happened, Randy.
Insofar, my experience and skills are out of work for last 1,5 years, why not to use that for helping the other one?

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