How do you have a working track follower to the route?

View previous topic View next topic Go down

How do you have a working track follower to the route?

Post by Tadek40 on Sun Dec 03, 2017 12:57 pm

Hi all. This is my first post. I have a problem. I wan to having on the Polish route track follower. Reading all threads related to this and I did it. I created the file needed to make Husarz luzak.animated and typed in accordance with the instructions.
[Object]
position = -4,0,0
States = PKP\Siemens ES64U4 Taurus\ext_view\ES64U4.B3D
StateFunction = if[value + delta > 20, -1,0]
TrackFollowerFunction = if[value == 0, value + 1000, if[trackdistance > -200,if[value < 0, value, value - 10 * delta], value]]
Launch in Openbve Poc_Os.RW and I can not see this train anywhere. And I do not know what this track follower has to be typed in the route file or whether to go in the folder to give the route. 
I do not know what to do to make the track follower work. Help me. Sad Cheers.

Tadek40

Posts : 2
Join date : 2017-12-03
Age : 13
Location : Poland :)

Back to top Go down

Re: How do you have a working track follower to the route?

Post by leezer3 on Sun Dec 03, 2017 7:06 pm

That looks approximately right.

I assume you've placed your object in the world?
It needs to be placed as a .freeobj command, and won't just appear Smile

Other than that, the following sequence should happen:

  • Your object is first loaded by the renderer (e.g. If you place the object at 1,000m and have a viewing distance of 500m, it will first be loaded when the player reaches 500m)
  • It is moved 1000m along the line
  • It should then move back towards the player
  • After 20s, it'll vanish


A couple of basic things to check:

  • This only works in openBVE, not Route Viewer.
  • You've definitely got your object path right (No errors in the log file)

leezer3

Posts : 1014
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Re: How do you have a working track follower to the route?

Post by Tadek40 on Sun Dec 03, 2017 7:59 pm

I have worked a little and the effect is satisfying. Thank you Wink

Tadek40

Posts : 2
Join date : 2017-12-03
Age : 13
Location : Poland :)

Back to top Go down

Re: How do you have a working track follower to the route?

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum