Modern Elevators and Escalators

Modern Elevators and Escalators

106k Downloads

Path finding problem in railway stations with passing loops

Tzhu14 opened this issue · 3 comments

commented

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.
屏幕截图 2024-08-19 210458
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

  1. Build a railway with stations that have through roads like the example station in the screenshot.
  2. Create a path that passes some of the stations on the railway while stops at the other stations.
  3. 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

image
I tried to delete some mods, but it does not solve the problem.

Extra Information

No response

commented

The cause of this problem maybe is the rail speed.The train will prior choice faster speed rail

commented

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.

commented

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.