[kovarex] [0.15.21] Train "no path" to station if partially occupy it
Posted: Thu Jun 15, 2017 2:36 pm
Hello.
First, sorry for my english :)
I experimented with trains to check whether they would fall into a dead loop in my transport network and discovered an interesting bug.
For the test, I used a roundabouts, 4 stations (north, south, west, east) and 4 trains that drive in a circle (N->W->S->E->N->...). For stopping, a semaphore was used, which allowed traffic if I approached the gate. At the same time, the semaphore is just a little further from the station, so that the stopped train can be sent to the station, which he just passed.
And here it turns out, if the stopped train is sent to the station, which he passed last (and whose segment now occupies), then the train cann't find path. But if you choose first any other station, and then send the last one - path will be built.
Steps:
1. Load save :)
2. Wait for the trains to reach the stations.
3. Wait for the trains to reach the semaphors and stop.
4. Select some train, for example Left.
5. Send him to station _W
6. Get "no path" message :)
7. Send him to other station (_N, _E or _S)
8. Send him to station _W
9. Path will be built normally
Instead of step 7, you can delete any semaphore, then the paths will be rebuilt and the train will be able to find the desired path.
This works for any trains, for the top tarin with station _N, etc.
For the sake of clarity: https://www.youtube.com/watch?v=xxoFDhPq3AI
Save and log: https://drive.google.com/open?id=0B9j0J ... XJpakoxMUU
First, sorry for my english :)
I experimented with trains to check whether they would fall into a dead loop in my transport network and discovered an interesting bug.
For the test, I used a roundabouts, 4 stations (north, south, west, east) and 4 trains that drive in a circle (N->W->S->E->N->...). For stopping, a semaphore was used, which allowed traffic if I approached the gate. At the same time, the semaphore is just a little further from the station, so that the stopped train can be sent to the station, which he just passed.
And here it turns out, if the stopped train is sent to the station, which he passed last (and whose segment now occupies), then the train cann't find path. But if you choose first any other station, and then send the last one - path will be built.
Steps:
1. Load save :)
2. Wait for the trains to reach the stations.
3. Wait for the trains to reach the semaphors and stop.
4. Select some train, for example Left.
5. Send him to station _W
6. Get "no path" message :)
7. Send him to other station (_N, _E or _S)
8. Send him to station _W
9. Path will be built normally
Instead of step 7, you can delete any semaphore, then the paths will be rebuilt and the train will be able to find the desired path.
This works for any trains, for the top tarin with station _N, etc.
For the sake of clarity: https://www.youtube.com/watch?v=xxoFDhPq3AI
Save and log: https://drive.google.com/open?id=0B9j0J ... XJpakoxMUU