Train Station Filter for Valid Destinations
Moderator: ickputzdirwech
Train Station Filter for Valid Destinations
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
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.
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
The same time, that for red/white font in train schedule?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.
Re: Train Station Filter for Valid Destinations
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.darkfrei wrote:The same time, that for red/white font in train schedule?
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
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?
There are 10 types of people: those who get this joke and those who don't.
Re: Train Station Filter for Valid Destinations
Yes, that could indeed reduce the length of the freezing significantly.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?