BVE WorldWide
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Is there a way to create AI trains on other tracks?

3 posters

Go down

Is there a way to create AI trains on other tracks? Empty Is there a way to create AI trains on other tracks?

Post by zbx1425 Thu Aug 16, 2018 5:00 am

It seems AI trains can only be placed at the track 0. Does openBVE support AI trains on other tracks like BVE5 does?
Or else, can it be achived by using the TrackFollower function in Animated Objects? It seems doesn't support following other rails. I think a function like "TrackFollowerTarget" would be better.
zbx1425
zbx1425

Posts : 143
Join date : 2017-08-18
Location : China

https://www.zbx1425.cn

Back to top Go down

Is there a way to create AI trains on other tracks? Empty Re: Is there a way to create AI trains on other tracks?

Post by leezer3 Fri Aug 17, 2018 12:07 pm

Sorry, there isn't, and this isn't likely to change at the minute.

The issue is a complex one, but it's essentially related to the route design format.

openBVE (and by extension BVE2 / BVE4) only support a single true track- Rail 0.
Everything else is simply worked out as a relative position to Rail 0.
In order to support secondary tracks, as well as the positional vectors, we'd need information on the curve radii of said tracks as an absolute minimum, which the current routefile format simply doesn't provide Smile

leezer3

Posts : 1978
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Is there a way to create AI trains on other tracks? Empty Re: Is there a way to create AI trains on other tracks?

Post by Phonteus Nevolius Tue Aug 21, 2018 1:12 am

You can use TrackFollowerFunction as a fake but good looking solution, yes. I think this is what you mean: https://www.youtube.com/watch?v=jiwcEZ5mRIw

You can find the route with the TrackFollowerFunction trains in it here: http://www.bveklub.hu/kiralyliget
Phonteus Nevolius
Phonteus Nevolius

Posts : 120
Join date : 2017-10-05
Location : Hungary

https://phonteusnevolius.wordpress.com

Back to top Go down

Is there a way to create AI trains on other tracks? Empty Re: Is there a way to create AI trains on other tracks?

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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