Elvas Tower: Problem with object animations in TSRE/OR - Elvas Tower

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Problem with object animations in TSRE/OR Rate Topic: -----

#11 User is offline   Csantucci 

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

Posted 06 June 2020 - 10:26 PM

So it works.
Attached File  esc_doble.zip (39.34K)
Number of downloads: 290

Apparently OR wants that in this line
		animation ( 1 1

the first number is greater than 1. Such first number is interpreted by OR as frame count. In reality it is frame count - 1.
I wonder whether this is a correct condition or not. Not difficult to change the code here, and changing it the animation works also with the original shape file. Comments welcome.

#12 User is offline   ebnertra000 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,234
  • Joined: 27-February 17
  • Gender:Male
  • Location:East-Central Minnesota
  • Simulator:OR/TSRE
  • Country:

Posted 07 June 2020 - 07:48 AM

Just to be sure, the animation speed is a whole number (not a decimal), is it? OR doesn't like that

#13 User is offline   Csantucci 

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

Posted 07 June 2020 - 10:52 AM

As far as I know, OR likes whole numbers for animation speed.

#14 User is offline   VAPOR3D 

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

Posted 07 June 2020 - 06:19 PM

View PostCsantucci, on 06 June 2020 - 10:26 PM, said:

So it works.
Attachment esc_doble.zip

Apparently OR wants that in this line
		animation ( 1 1

the first number is greater than 1. Such first number is interpreted by OR as frame count. In reality it is frame count - 1.
I wonder whether this is a correct condition or not. Not difficult to change the code here, and changing it the animation works also with the original shape file. Comments welcome.


Thank you Csantucci! You hit the nail on the head. I have to say that I didn't build the object myself (I have no idea what program it was built with), but I was about to do it again to make sure it worked on Open Rails. You saved me a lot of work!

Well, we all know something else. If an object's animations don't work in Open Rails it's most likely due to this problem.

Grazie mille!

#15 User is offline   eugenR 

  • Conductor
  • Group: Status: Contributing Member
  • Posts: 472
  • Joined: 15-April 13
  • Gender:Male
  • Simulator:MSTS
  • Country:

Posted 08 June 2020 - 12:43 AM

View PostCsantucci, on 06 June 2020 - 10:26 PM, said:

So it works.
Attachment esc_doble.zip

Apparently OR wants that in this line
		animation ( 1 1

the first number is greater than 1. Such first number is interpreted by OR as frame count. In reality it is frame count - 1.
I wonder whether this is a correct condition or not. Not difficult to change the code here, and changing it the animation works also with the original shape file. Comments welcome.


Hi Carlo,
Does such a modification not have influence on the Semaphore-animation (Signals), we have had many works with the different animation-systems used between sigcfg.dat and the Signal-Shapes? Often Signalshapes with animation has here
animation ( 1 30

the first number = 1

regards
Eugen

#16 User is offline   Csantucci 

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

Posted 08 June 2020 - 01:14 AM

Hi Eugen,
I don't think so. The code line to be changed is executed only for continuous animations with constant animation speed, that is with scenery objects.

#17 User is offline   Csantucci 

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

Posted 10 June 2020 - 12:36 PM

OR NewYear MG rev. 65 accepts now also
                animation ( 1 1


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