Path finding problem in railway stations with passing loops
Tzhu14 opened this issue · 3 comments
Before reporting, I have confirmed that
- This bug does not appear to be reported on GitHub Issues before.
- This bug still exists in the latest version of the Minecraft Transit Railway mod.
- I have tested this in the official version of Minecraft Transit Railway, not a modified, custom, or unofficial build.
Describe the Bug
There is an example railway station in the screenshot. If a create a path that pass over the station, trains should run on the through roads (the 2 middle railways) without stopping. The actual situation is: trains do not stop, but run on the through roads or the platform roads randomly. The randomness is between the stations, not in a station itself. Trains may always run on the through roads when passing station A, but always turn to the platform roads when passing station B.
Update: If I replace the rails that fork from the main line to the platform road with lower speed rails, the routes of the trains will become very strange. Please read the last comment for detail.
Reproduction Steps
- Build a railway with stations that have through roads like the example station in the screenshot.
- Create a path that passes some of the stations on the railway while stops at the other stations.
- Get on a train and watch its route. You may find the problem I described.
In-game Log and Crash Report
It seems that the logs are not related to the problem. I will supplement the logs if they are necessary to deal with the bug.
Mod Loader
Forge
Minecraft Version
1.19.2
Minecraft Transit Railway Version
3.2.2
Operating System
Windows 11
List of Mods or Modpack You Were Using
I tried to delete some mods, but it does not solve the problem.
Extra Information
No response
The cause of this problem maybe is the rail speed.The train will prior choice faster speed rail
The cause of this problem maybe is the rail speed.The train will prior choice faster speed rail
I use the same kind of rail in the through roads and the platform roads (except for the rails that next to the platform, they are platform rails). I will try to lower the speed of the through roads, but it seems that the path finding algorithm is not perfect.
The cause of this problem maybe is the rail speed.The train will prior choice faster speed rail
I use the same kind of rail in the through roads and the platform roads (except for the rails that next to the platform, they are platform rails). I will try to lower the speed of the through roads, but it seems that the path finding algorithm is not perfect.
When I replace the rail of platform roads with lower speed rail, strange thing happens. For example, if I build a railway that have 10 stations, and create a path that stop at all the stations. The depot is located behind the station 1, and a turnback rail is located behind the station 10. When the train depart from the station 1, it will pass the other stations and go to the turnback rail, and then go back to station 2. This situation occurs at all the stations. It seems that there is certainly some problem in the path finding algorithm.