-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Request]:NearestTrainFilter #1009
Comments
In my opinion, regarding the arguments, for example, if you specify 0,2, the first argument is the distance from the starting point to measure the distance, and 2 is for Rail2 where the TFO runs. Filter for TFO traveling on Rail2 from distance 0 |
I think this probably needs a couple of things changing:
|
I agree with your opinion. |
Better name for what it actually does these days #1009
Build from today will now take into account TFOs when looking for the nearest train. I've also internally re-named TrackFollowingObject to ScriptedTrain Getting the track index is actually a little more complex than I'd hoped, and I think is going to require some more major work. In the pipeline, but not just yet :) |
Thank you. |
According to Crosshatch, Animated started to behave unexpectedly in version 1.10.0.1. 'This is probably because OpenBVE have become more aware of the TFO involved in this issue. Route data where the abnormality started to occur |
https://x.com/cross_hatch/status/1779498158592307488 |
This is 'intended' behaviour (or at least not directly a bug), as the TFO is currently closest. They would have been activated in the same way by a RunInterval / Pretrain. |
At 1.10.0.1, I think a similar function is implement in playerTrackDistance, but I think it is the distance of an object with respect to an arbitrary track number, but is there no specification of the rail number? playerTrackDistance[railno] |
That's correct at the minute. Still thinking.... |
Description
Relative #1007
Crosshatch's
https://kanakyusubway.web.fc2.com/bve/route/chiba/
I heard from Crosshatch about how NearestTrainFilter works.
According to it, previously, trackDistance and Doors only responded to the train that is in operation, but by using this command, it will be possible to know the TFO's trackDistance and Doors.
Therefore, I would like you to implement this command, and I would like to make a proposal.
I think this command was probably used when S520 aimed to implement it.
But after imprement, change the command by Crosshatch change the commands and arguments hisself.
I suggest a new command that matches the current OpenBVE.
thank you.
Reproduction
Route
https://kanakyusubway.web.fc2.com/bve/route/chiba/
Train
Logs
Related information
The text was updated successfully, but these errors were encountered: