Page 1 of 1
Train Station Filter for Valid Destinations
Posted: Sat Jun 09, 2018 8:49 pm
by cazius
It would be nice if, when selecting destinations for a train, there would be a one-click filter to only see train stations that are reachable from the track the train is sitting on.
Re: Train Station Filter for Valid Destinations
Posted: Sat Jun 09, 2018 8:53 pm
by darkfrei
+1
As option.
Re: Train Station Filter for Valid Destinations
Posted: Sun Jun 10, 2018 4:34 pm
by Tekky
On larger train networks, it would be a lot of work for the game to apply this filter, because the game would have to attempt to pathfind to every station on the list, in order to see whether it is reachable. This could cause the game to freeze for a few seconds, on larger train networks.
Of course, the game could cache which stations are reachable from which other stations. However, it would be a lot of work for the game to maintain this cache and it would also be a lot of work to program this in the first place. Therefore, I am not sure if it is worth implementing, even if I agree that it would be nice to have.
Re: Train Station Filter for Valid Destinations
Posted: Sun Jun 10, 2018 5:29 pm
by darkfrei
Tekky wrote:On larger train networks, it would be a lot of work for the game to apply this filter, because the game would have to attempt to pathfind to every station on the list, in order to see whether it is reachable. This could cause the game to freeze for a few seconds, on larger train networks.
The same time, that for red/white font in train schedule?
Re: Train Station Filter for Valid Destinations
Posted: Mon Jun 11, 2018 8:01 pm
by Tekky
darkfrei wrote:The same time, that for red/white font in train schedule?
No, a red station means that it is invalid. This is very easy for the game to determine and can always be done in a lot less than a millisecond.
In contrast to that, pathfinding to all stations at once is a lot more work and could cause a long freeze, if the train network and the number of stations is large.
Re: Train Station Filter for Valid Destinations
Posted: Tue Jun 12, 2018 1:22 am
by Jap2.0
Although you only need to test for the stations on the list that are currently visible, and then you can do the others when displayed/in the background over the next few ticks, right?
Re: Train Station Filter for Valid Destinations
Posted: Wed Jun 13, 2018 12:00 am
by Tekky
Jap2.0 wrote:Although you only need to test for the stations on the list that are currently visible, and then you can do the others when displayed/in the background over the next few ticks, right?
Yes, that could indeed reduce the length of the freezing significantly.