Elvas Tower: Station clocks - Elvas Tower

Jump to content

  • 6 Pages +
  • « First
  • 4
  • 5
  • 6
  • You cannot start a new topic
  • You cannot reply to this topic

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

#76 User is offline   jonas 

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

Posted 01 May 2021 - 03:13 PM

View PostJames Ross, on 01 May 2021 - 05:50 AM, said:

It does not seem objectionable to me.

Ok, then I will try to write a code for Scenery.cs -> class WorldFile to register the clocks of a w-file by their clock hand names.

Kind regards
Jonas



#77 User is offline   rickloader 

  • Conductor
  • Group: Status: First Class
  • Posts: 494
  • Joined: 05-February 13
  • Gender:Male
  • Location:Southampton uk
  • Simulator:Open Rails
  • Country:

Posted 02 May 2021 - 09:52 AM

Thank you Jonas for your continued work on clocks.
To return to my problem with clocks (sorry, I hope I`m not spoiling this thread) . Chris kindly put me straight. I had mistakenly used a Riich text format. When I realised , I copied the text into wordpad, but unknown to me this included a lot of invisible characters. It was these which tripped up OR. Stupid of me.
A long time ago notepad was deemed inadequate for MSTS files but now seems ok for OR
Not out of trouble yet, because the 3dc exporter causes trouble The file created by 3dc. gives 5 positions of tcb_rot as does the specimen script in the manual. starting at 0 (12) 1(3) 2(6) 3(9) 4(12) . But 3dc exports the .s as tcb rot 5 slerp_rot 0 1 2 3 4 and not 5 but back to 0 again.
I can hand edit the .s perhaps. But I mention this because recently on ET the need for hand editing of files was questioned. It is not as suggested, a kind of quirky stubborn holding to outdated ideas., but Rather a desparate attempt to get something working..
In the case of 3dc ,the exporter defeated me with animated signals, and I may have to remake the clock in TSM

#78 User is offline   jonas 

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

Posted 02 May 2021 - 11:43 AM

Hi rickloader,

Good to hear you were able to solve your animated.clocks-or problem with Chris's help! I hope we won't need the animated.clocks-or or any other extern files concerned the clocks at all in the future - we'll see how it goes.

View Postrickloader, on 02 May 2021 - 09:52 AM, said:

...A long time ago notepad was deemed inadequate for MSTS files but now seems ok for OR...
I'm almost ever work with notepad. Seems very ok to me.

View Postrickloader, on 02 May 2021 - 09:52 AM, said:

... But 3dc exports the .s as tcb rot 5 slerp_rot 0 1 2 3 4 and not 5 but back to 0 again. ...
What is 3dc? I still work with this old fashion workflow: 3dsmax -> *.3ds -> conv3ds.exe (MSTS) -> Shape-Maker -> s-file. By the way, this often results in the most adventurous animations, because apparently my old 3dsmax version often writes the animations only fragmentarily into the *.3ds. When it gets too weird for me, I run the model (*.3ds) through gmax and get at least good animation code sequences in the s-file export.

View Postrickloader, on 02 May 2021 - 09:52 AM, said:

... But I mention this because recently on ET the need for hand editing of files was questioned. It is not as suggested, a kind of quirky stubborn holding to outdated ideas., but Rather a desparate attempt to get something working..
In the case of 3dc ,the exporter defeated me with animated signals, and I may have to remake the clock in TSM
An important(!) aspect that I had so far not right on the screen. Files that I called one-way files or user-machine files, which transfer data from the user to OR, often do not originate from the user, but have already been created by a "machine". The user takes over here thus code adjustment work which compensate quasi transfer errors between the programs. There will certainly never be editors for this, because we do not yet know the future programs that provide content for OR/MSTS and their possible errors.
Thank you for pointing out this aspect.

Maybe you would like to write a little something about it in this thread, otherwise it will actually be too off topic here :-).

Thank you
Jonas

#79 User is offline   Rj Zondervan 

  • Apprentice
  • Group: Posts: Active Member
  • Posts: 41
  • Joined: 09-March 11
  • Gender:Male
  • Simulator:MSTS/ORTS
  • Country:

Posted 03 May 2021 - 10:19 AM

View Postrickloader, on 02 May 2021 - 09:52 AM, said:

A long time ago notepad was deemed inadequate for MSTS files but now seems ok for OR


Notepad always has been quite adequate, and still is when writing JSON files. However, I would recommend a bit more advanced text editor like Notepad++, which has, among a lot of other features, syntax highlighting for JSON, C# and almost every well standardised language that is around.

Quote

What is 3dc? I still work with this old fashion workflow: 3dsmax -> *.3ds -> conv3ds.exe (MSTS) -> Shape-Maker -> s-file.

3dc is 3D Crafter (formerly 3D Canvas), also a decent, and free, 3D editor, although I still haven't managed to use it with the ease I use 3D Studio Max.

#80 User is offline   Csantucci 

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

Posted 04 May 2021 - 01:20 AM

OR NewYear MG rev. 98 now accepts animated station clocks without the need of additional files, as proposed here http://www.elvastowe...post__p__271611 .
Code by jonas.

#81 User is offline   YoRyan 

  • Conductor
  • Group: Posts: Active Member
  • Posts: 391
  • Joined: 19-February 20
  • Gender:Male
  • Location:California, United States
  • Simulator:Open Rails/unstable
  • Country:

Posted 04 May 2021 - 08:39 AM

Does this mean we might drop support for the additional file, or should we retain support? What do you think, Jonas?

#82 User is offline   jonas 

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

Posted 04 May 2021 - 10:55 AM

View PostYoRyan, on 04 May 2021 - 08:39 AM, said:

Does this mean we might drop support for the additional file, or should we retain support? What do you think, Jonas?

Hi Ryan,

Thank you for asking. In principle we can drop the support for the external files concernig the analog clocks. I would say I have tested it, but I am only one. I would still want to wait a bit to see if the code really works well as it is. This especially concerns the place in the code while loading shapes from a w-file and if there is time critic question using a for-loop to grabble the animation nodes of a shape. Anyway, I couldn't think of a better way and place for the code for now.

Thanks for your efforts with the substitute reading of the animate.clocks-or and in general the code adjustments so far.

It seems that these efforts were in vain ... but maybe reading an external clocks file will be necessary again in the future, if ever a digital variant of the clocks will be supported by OR. Then the previous code adjustments would not have been completely in vain and could remain so to speak "dormant" as preparation still in the code. Because for these digital clocks I can't think of anything better than declaring them in an external file (see here).
But this is only a thought-provoking suggestion and I want anything decide there.

Kind regards
Jonas

#83 User is offline   cjakeman 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin Group
  • Posts: 3,027
  • Joined: 03-May 11
  • Gender:Male
  • Location:Peterborough, UK
  • Simulator:Open Rails
  • Country:

Posted 18 July 2021 - 07:14 AM

Does anyone have a short video featuring animated station clocks?

I would like to compile some video clips to show of the new features in Open Rails v1.4 and this ought to be one of them.

Thanks,

#84 User is offline   Aldarion 

  • Engineer
  • PipPipPipPipPip
  • Group: ET Owner Group
  • Posts: 663
  • Joined: 11-February 13
  • Gender:Male
  • Location:Lisbon, Portugal
  • Simulator:Open Rails
  • Country:

Posted 19 July 2021 - 06:06 AM

Chris.

https://youtu.be/pZvcFaG63Ro

If you'd like I can play some more with it for fotage with more quality!

I just don't have a good scenery for it right now!

#85 User is offline   cjakeman 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin Group
  • Posts: 3,027
  • Joined: 03-May 11
  • Gender:Male
  • Location:Peterborough, UK
  • Simulator:Open Rails
  • Country:

Posted 19 July 2021 - 10:17 AM

View PostAldarion, on 19 July 2021 - 06:06 AM, said:

If you'd like I can play some more with it for footage with more quality!

That will be just fine for the brief clip I'm looking for.

Many thanks.


Would it be OK to use some clips from your promo video as well?

#86 User is offline   Aldarion 

  • Engineer
  • PipPipPipPipPip
  • Group: ET Owner Group
  • Posts: 663
  • Joined: 11-February 13
  • Gender:Male
  • Location:Lisbon, Portugal
  • Simulator:Open Rails
  • Country:

Posted 20 July 2021 - 03:08 AM

View Postcjakeman, on 19 July 2021 - 10:17 AM, said:

Would it be OK to use some clips from your promo video as well?


by all means. Please do!

#87 User is offline   mareknowosad 

  • ex-m61
  • Group: Posts: Active Member
  • Posts: 197
  • Joined: 25-July 23
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 20 July 2021 - 09:45 AM

View Postcjakeman, on 18 July 2021 - 07:14 AM, said:

Does anyone have a short video featuring animated station clocks?

I would like to compile some video clips to show of the new features in Open Rails v1.4 and this ought to be one of them.

Thanks,



https://youtu.be/BNv9uD91_oE


https://youtu.be/Rz_ZWfhluWY

#88 User is offline   MLProject 

  • Apprentice
  • Group: Posts: Active Member
  • Posts: 49
  • Joined: 29-November 21
  • Gender:Male
  • Location:São Paulo, Brazil
  • Simulator:OpenRails
  • Country:

Posted 16 December 2021 - 08:09 AM

View Postjonas, on 13 January 2020 - 09:38 AM, said:

Good to hear from you, more than 3 years after you started this thread here!

Unfortunately I don't have a patch for digital clocks. Maybe it could work by declaring them directly in the Clocks.dat, similar to the way it is done with speedposts in the speedpost.dat.
The Clocks.dat with a digital clock could look like this:

2
ClockItem( AnalogClock.s analog )
ClockItem( DigitClock.s digital
	Digit_Sets ( 1
		Digit_Set (
			Digit_Position ( -0.97 1.624 -4.02 )		comment(related to pivot of main-subobjebt)
			Digit_Azimuth ( -180 -180 -180 )		comment(facing direction -> seen in eng or wag files)
			Digit_Separator ( ":" )				comment(Sign witch separates the digits of hour, minute an second)
			Digit_Textur ( Numbers.ace )			comment(Texture with Numbers -> seen in Speedpost.dat)
			Digit_Colour ( ffff0000 )			comment(overwrite the color of digittexture -> here "Numbers.ace")
			Digit_Text_Size ( 0.16 0.13 0 )			comment(size of digits  -> seen in Speedpost.dat)
		)
	)
)

The Digit_Set would then define where you would see the digits "00:00:00" on the main shape "DigitClock.s" and with what character they are separated, here with ":". A digit texture, color selection and digit size would be definable by the user.
This way everybody could "glue" a digital clock to every wall, even on already placed shapes of the hole route :-)

This method is interesting! Where should I insert it?

#89 User is offline   jonas 

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

Posted 10 January 2022 - 04:11 PM

Hi MLProject,

Unfortunately, this method has only been a suggestion of mine of how it could possibly work with digital clocks.

View Postjonas, on 13 January 2020 - 09:38 AM, said:

...Unfortunately I don't have a patch for digital clocks. ...

Greetings
Jonas

  • 6 Pages +
  • « First
  • 4
  • 5
  • 6
  • 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