Elvas Tower: Digital LED Speedometer - Elvas Tower

Jump to content

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

Digital LED Speedometer

#1 User is offline   VAPOR3D 

  • Apprentice
  • Group: Status: Dispatcher
  • Posts: 41
  • Joined: 15-March 20
  • Gender:Male
  • Location:Barcelona, Catalunya
  • Simulator:Open Rails
  • Country:

Posted 10 May 2020 - 07:18 PM

Hello!

Is there any way in Open Rails to animate a digital type speedometer like the one in the image?

Attached Image: digitalspeedometer.jpg

I managed to do it years ago on MSTS, but now I've opened my train and I've seen that in Open Rails my "trick" doesn't work.

Thank you very much.

#2 User is offline   markus_GE 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 4,623
  • Joined: 07-February 13
  • Gender:Male
  • Location:Leoben, Styria, Austria, Europe
  • Simulator:ORTS / MSTS
  • Country:

Posted 11 May 2020 - 04:41 PM

How is it supposed to work? Like a "ring of lights" around the perimeter of the scale, as in this example (taken in the latest unstable release)?

Attached Image: tmp.jpg
If so, I can go and dig up that CVF file (not my work though) from my mess for reference.
Cheers, Markus


#3 User is offline   VAPOR3D 

  • Apprentice
  • Group: Status: Dispatcher
  • Posts: 41
  • Joined: 15-March 20
  • Gender:Male
  • Location:Barcelona, Catalunya
  • Simulator:Open Rails
  • Country:

Posted 12 May 2020 - 04:34 AM

Hello Markus! First, thanks for your answer.

Yes, that's exactly it. The fact is that I managed to do it already ten years ago for MSTS and it worked, but now it doesn't in OR. This was the code for my old .cvf:

Quote

Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 248 311 9 9 )
Graphic ( "1led598.ace" )
Style ( SOLID )
ScaleRange ( 1 10 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 1 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 246 304 9 9 )
Graphic ( "2led598.ace" )
Style ( SOLID )
ScaleRange ( 11 20 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 1 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 246 296 9 9 )
Graphic ( "3led598.ace" )
Style ( SOLID )
ScaleRange ( 21 30 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 1 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 246 289 9 9 )
Graphic ( "4led598.ace" )
Style ( SOLID )
ScaleRange ( 31 40 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 1 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 248 282 9 9 )
Graphic ( "5led598.ace" )
Style ( SOLID )
ScaleRange ( 41 50 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 1 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 252 276 9 9 )
Graphic ( "6led598.ace" )
Style ( SOLID )
ScaleRange ( 51 60 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 1 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 258 271 9 9 )
Graphic ( "7led598.ace" )
Style ( SOLID )
ScaleRange ( 61 70 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 1 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 263 268 9 9 )
Graphic ( "8led598.ace" )
Style ( SOLID )
ScaleRange ( 71 80 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 0 )
DirIncrease ( 0 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 271 264 9 9 )
Graphic ( "9led598.ace" )
Style ( SOLID )
ScaleRange ( 81 90 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 0 )
DirIncrease ( 0 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 279 264 9 9 )
Graphic ( "10led598.ace" )
Style ( SOLID )
ScaleRange ( 91 100 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 0 )
DirIncrease ( 0 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 286 264 9 9 )
Graphic ( "11led598.ace" )
Style ( SOLID )
ScaleRange ( 101 110 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 0 )
DirIncrease ( 0 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 293 266 9 9 )
Graphic ( "12led598.ace" )
Style ( SOLID )
ScaleRange ( 111 120 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 0 )
DirIncrease ( 0 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 300 270 9 9 )
Graphic ( "13led598.ace" )
Style ( SOLID )
ScaleRange ( 121 130 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 0 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 305 275 9 9 )
Graphic ( "14led598.ace" )
Style ( SOLID )
ScaleRange ( 131 140 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 255 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 0 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 309 281 9 9 )
Graphic ( "15led598.ace" )
Style ( SOLID )
ScaleRange ( 141 150 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 0 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 0 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 312 288 9 9 )
Graphic ( "16led598.ace" )
Style ( SOLID )
ScaleRange ( 151 160 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 0 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 0 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 314 297 9 9 )
Graphic ( "17led598.ace" )
Style ( SOLID )
ScaleRange ( 161 170 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 0 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 0 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 313 304 9 9 )
Graphic ( "18led598.ace" )
Style ( SOLID )
ScaleRange ( 171 180 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 0 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 0 )
Units ( KM_PER_HOUR )
)
Gauge (
Type ( SPEEDOMETER GAUGE )
Position ( 311 311 9 9 )
Graphic ( "19led598.ace" )
Style ( SOLID )
ScaleRange ( 181 190 )
ZeroPos ( 0 )
PositiveColour ( 1
ControlColour ( 255 0 0 )
)
NegativeColour ( 1
ControlColour ( 0 255 0 )
)
Orientation ( 1 )
DirIncrease ( 0 )
Units ( KM_PER_HOUR )
)



Now, in Open Rails in action, this is shown:

Attached Image: Open Rails 2020-05-12 02-25-42.jpg

And in the MSTS Cab Editor (with the A key pressed) this:

Attached Image: MSTSEditor.jpg

#4 User is offline   markus_GE 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 4,623
  • Joined: 07-February 13
  • Gender:Male
  • Location:Leoben, Styria, Austria, Europe
  • Simulator:ORTS / MSTS
  • Country:

Posted 12 May 2020 - 03:10 PM

View PostVAPOR3D, on 12 May 2020 - 04:34 AM, said:

Hello Markus! First, thanks for your answer.[...]


De nada.

I'm in no way knowledgeable about CVF code, so I cannot help you find out what's wrong with your code. What I know, though, is that it works fine in GE-C44-9W-ATSF.cvf from Charlie Sibaja's high-res photorealistic GE-SAFE1-CAB set (shown above), that is available as shrge-s1.zip on trainsim.com.

¡Espero que eso te ayude!

Adiós, Markus

#5 User is offline   VAPOR3D 

  • Apprentice
  • Group: Status: Dispatcher
  • Posts: 41
  • Joined: 15-March 20
  • Gender:Male
  • Location:Barcelona, Catalunya
  • Simulator:Open Rails
  • Country:

Posted 30 May 2020 - 01:47 PM

Well, this all works more or less well in the 2d cab:

Attached Image: digitalspeedometer.jpg

...but now, working on the 3d cab, I find myself in trouble. I had thought of building some pieces called SPEEDOMETER:1, SPEEDOMETER:2, SPEEDOMETER:3, etc. and give them a 1 frame animation so that they move backwards and appear as the speed increases, but curiously, even having a considerable displacement that in TSM and Shapeviewer is perfectly appreciated, in Open Rails there is no movement at all! This is very strange to me. I've also tried SPEEDOMETER_DISPLAY:0:0, or :0, but there's no translation movement at all. Maybe that's because SPEEDOMETER pieces only support one rotation movement, I don't know. Maybe someone can enlighten me with this new problem...

Thanks!

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