Elvas Tower: Station clocks - Elvas Tower

Jump to content

  • 6 Pages +
  • 1
  • 2
  • 3
  • 4
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Station clocks Creating clocks to synchronize with simulation Rate Topic: -----

#21 User is offline   Lindsayts 

  • Superintendant
  • Group: Posts: Elite Member
  • Posts: 1,849
  • Joined: 25-November 11
  • Gender:Male
  • Country:

Posted 17 December 2016 - 02:40 AM

View Postlongiron, on 16 December 2016 - 12:37 PM, said:

Not true. A blender exporter for MSTS s. File has been around for almost a year
http://www.elvastowe...rt-plugin-v-34/
chris


There's no indication that it will enable one to do animated S files, If it does how come so few apparentrly do not know it can.

I am NOT trying to be a pain in the neck here, I do believe though the inability to easily do general animations is a limitation, as previously stated OR does need to be easier to be able to create good content for it.

Lindsay

#22 User is offline   Jovet 

  • Open Rails Developer
  • Group: Posts: Elite Member
  • Posts: 2,320
  • Joined: 14-January 08
  • Gender:Male
  • Location:Omaha, Nebraska.
  • Simulator:MSTS/Open Rails
  • Country:

Posted 19 December 2016 - 01:20 PM

View PostLindsayts, on 17 December 2016 - 02:40 AM, said:

I am NOT trying to be a pain in the neck here, I do believe though the inability to easily do general animations is a limitation, as previously stated OR does need to be easier to be able to create good content for it.

Margaret Thatcher once said, "Being powerful is like being a lady. If you have to tell people you are, you aren't. Which is probably true for our gender too . . . with apologies to those ladies reading this who are not included in that "our".

:pleasantry:


#23 User is offline   jonas 

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

Posted 08 January 2020 - 03:47 PM

Better late than never ... here below is a source code patch, which allows analog clocks in Open Rails to display the simulation time.

Clock-shapes must have certain names for the clock hands subobjects to run in Open Rails. There are hour-, minute- and two types of second hands.

Attached Image: Uhr02_OR_Jm_Bildvorlage.jpg

The additional file "Clocks.dat" in the "Openrails" directory lists those shapes which should be recognized as clocks (similar to the turntables). So it is even possible to declare any shape of an already existing route as a clock - for example church tower clocks.

More details and a small example route with running clocks here Attached File  ORClocks_200108.zip (1.94MB)
Number of downloads: 699.

#24 User is offline   Csantucci 

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

Posted 09 January 2020 - 07:18 AM

Hi jonas,
you haven't inserted in the pack the additional file ExtClocksFile.cs. Could you please do this?

#25 User is offline   jonas 

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

Posted 09 January 2020 - 07:58 AM

View PostCsantucci, on 09 January 2020 - 07:18 AM, said:

Hi jonas,
you haven't inserted in the pack the additional file ExtClocksFile.cs. Could you please do this?


I'm sorry! I updated the download link in post #23. The file ExtClocksFile.cs is now included.

#26 User is offline   jonas 

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

Posted 10 January 2020 - 05:48 AM

Hannes44 ask in Thread "OR NewYear MG"

View PostHannes44, on 09 January 2020 - 04:10 AM, said:

Just a short question as I'm quite confused, which version is which; is the OR-Clocks-patch included in the latest monogame version, if not, which experimental version do I need for this much welcome feature?
Unfortunately it is not yet included in any version of Open Rails.

@Carlo, is it possible for you to occasionally provide an exe-patch of the OR clocks here, based on my source-code patch in post #23?
Than even someone who does not work with source code could try the patch and the example route too.
Thanks!

#27 User is offline   jonas 

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

Posted 10 January 2020 - 05:58 PM

Here is an executable patch Attached File  OR-Clocks-exe-patch_200110.zip (2.25MB)
Number of downloads: 625
for the current Open Rails Testing Version 1.3.1-113-g294f03b7.

The patch contains 7 files which must replace the files of the same name in the Open Rails Testing Version 1.3.1-113-g294f03b7 by copying them.

Correspoding Attached File  Route with two OR-Clocks.zip (1.87MB)
Number of downloads: 613

#28 User is offline   Hannes44 

  • Fireman
  • Group: Posts: Active Member
  • Posts: 162
  • Joined: 10-October 17
  • Gender:Male
  • Location:Select State/Province
  • Simulator:Open Rails
  • Country:

Posted 11 January 2020 - 12:42 PM

Installed exactly as you describe created animated clock with naming conventions - alas it doesn't work. When I switch on animation, the digits rotate wildly, animation switched off, they don't move from 12:00.

Thanks for your efforts anyway!

#29 User is offline   mbm_OR 

  • Conductor
  • Group: Posts: Active Member
  • Posts: 261
  • Joined: 03-July 15
  • Gender:Male
  • Location:Spain
  • Simulator:Open Rails
  • Country:

Posted 11 January 2020 - 01:14 PM

Hi Jonas,

Works fine here.
It requires selecting the ORCloks activity and uncheck the LAA from Options/General.

Regards,
Mauricio

#30 User is offline   jonas 

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

Posted 11 January 2020 - 01:28 PM

View PostHannes44, on 11 January 2020 - 12:42 PM, said:

Installed exactly as you describe created animated clock with naming conventions - alas it doesn't work. When I switch on animation, the digits rotate wildly, animation switched off, they don't move from 12:00.

Thanks for your efforts anyway!

If you want to add your own clocks to a route, it is necessary to enter your clock in the "clocks.dat" file of the route. You can find an example of this file in the "openrails" directory of my route "ORClocks".
Please do not forget to increase the index in the second line by 1 after inserting your clock into the file.

My clocks.dat file currently looks like this:

2
ClockItem( "Uhr01_OR_Jm.s" analog )
ClockItem( "Uhr02_OR_Jm.s" analog )


For example, if your clock is named "Hannes44-Clock" you should extend the clocks.dat file like this:

3
ClockItem( "Uhr01_OR_Jm.s" analog )
ClockItem( "Uhr02_OR_Jm.s" analog )
ClockItem( "Hannes44-Clock" analog )


#31 User is offline   jonas 

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

Posted 11 January 2020 - 01:46 PM

View Postmbm_OR, on 11 January 2020 - 01:14 PM, said:

... Works fine here. ...
I'm glad to hear it.

View Postmbm_OR, on 11 January 2020 - 01:14 PM, said:

... It requires selecting the ORCloks activity ...
In the Route ORClocks should be only one path starting point, the one of the only activity is included. So it should not play any role if you start with the activity or not. But it happened to me as well that I started in explore mode with a long train and then I was wondering where the clocks are ... at the end of the train I found them :-)

View Postmbm_OR, on 11 January 2020 - 01:14 PM, said:

... and uncheck the LAA from Options/General. ...

Yes, I forgot to mention, it is made for "normal" RunActivity.exe, not for RunActivityLAA.exe.

#32 User is offline   Hannes44 

  • Fireman
  • Group: Posts: Active Member
  • Posts: 162
  • Joined: 10-October 17
  • Gender:Male
  • Location:Select State/Province
  • Simulator:Open Rails
  • Country:

Posted 11 January 2020 - 11:01 PM

View Postjonas, on 11 January 2020 - 01:46 PM, said:

I'm glad to hear it.

In the Route ORClocks should be only one path starting point, the one of the only activity is included. So it should not play any role if you start with the activity or not. But it happened to me as well that I started in explore mode with a long train and then I was wondering where the clocks are ... at the end of the train I found them :-)


Yes, I forgot to mention, it is made for "normal" RunActivity.exe, not for RunActivityLAA.exe.

After this exchange the question is, is the clock only working with activities? That would be a pity because I only run timetables. (btw I have added my clock to the clock.dat file just as you describe.)

#33 User is offline   Icik 

  • Conductor
  • Group: Posts: Active Member
  • Posts: 308
  • Joined: 19-April 15
  • Simulator:Open Rails
  • Country:

Posted 12 January 2020 - 03:36 AM

Hi, the clock acts like a normal object for example like a building. In the route editor it will be placed on the required place like any other object. He will always be there in activity, free ride and timetable.

#34 User is offline   jonas 

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

Posted 12 January 2020 - 06:32 AM

Yes, the clocks here should be understood like any other non-animated object.

The whole principle of operation is very similar to that of the turntables: A special-shape contains specially named subobjects and an animation. And it is expected that the shape is listed in an extra OR-file.
With turntables the animation is counterclockwise, with the clocks it is clockwise (sounds logical :-).
With the turntables there is 1 subobject maybe called TRACKPIECE, with the clocks there may be more than one subobjects as clock-hands, e.g. ORTS_HHand_Clock.
Even turntables are placed as non-animated in the route although they contain an animation (turntables are tracks and therefore one wouldn't be able to place a turntable as animated anyway).

As far as the clocks should become a permanent feature of Open Rails, they should always be placed as non-animated objects in a route, so that they do not show wildly rotating hands in MSTS.

#35 User is offline   NF1-800 

  • Fireman
  • Group: Posts: Active Member
  • Posts: 103
  • Joined: 11-October 12
  • Gender:Male
  • Simulator:MSTS and ORTS
  • Country:

Posted 12 January 2020 - 08:13 AM

Thank you very much for taking your free time to achieve this detail.
Looking forward to study your work.
Minor question: Any chances for digital display type?

  • 6 Pages +
  • 1
  • 2
  • 3
  • 4
  • Last »
  • 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