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

Go down

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

Post by zbx1425 on 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

Posts : 52
Join date : 2017-08-18

Back to top Go down

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

Post by leezer3 on 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 : 1188
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

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

Post by Phonteus Nevolius on 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
avatar
Phonteus Nevolius

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

https://phonteusnevolius.wordpress.com

Back to top Go down

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


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