[FeatureRequest] Trains automatically selecting free track

Home Forums General Discussion [FeatureRequest] Trains automatically selecting free track

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #17875
    ubergosu
    Participant

    It would be very convinient if trains can choose free track on a multitrack station like they did it in OpenTTD . This can dramatically improve performance and usefulness of multitrack stations.

    #17877
    kimmaz
    Participant

    All goods types and passengers wait on the specific platform assigned to  that line that they want to take. If a train uses a different track and stops at the wrong platform it would not have anything enter or leave it? I like that one line doesnt have to wait for a train on another line cause they use different platforms.

    Besides the Queue system in openttd where you would have 1-3 trains waiting for full load constant isnt profitable in train fever. Better to have as few trains that they instantly fills up when the come imo.

    #18026
    Anonymous
    Inactive

    I agree with OP

    Right now trains keeps getting stuck, trying to use the same station, even on multi-track stations

    The current AI auto pathing is rather horrible, the AI should be smart enough to use the other platforms that are not occupied by another train

    #18033
    Pasi
    Participant

    Way points and planning. That’s the key. Never had any issues with the paths and trains getting stuck. Except when i’ve made a mistake or for some reason one train decides to turn around with no obvious reason.

    #18054
    electricmonk2k
    Participant

    Train Fever uses a static path-finding algorithm (whereas OpenTTD uses a dynamic pathfinder). This means that once a route is decided on, the pathfinder finds a path and only changes it if the track-layout changes. Introducing a dynamic pathfinder to TF would be quite a big task – especially considering TF has got path-based signalling as well (even OpenTTD did not have path-based signalling for several years – this meant that only one train could be in a signal block at any one time until PBS was introduced, whereas both TF and OpenTTD-post-PBS allow multiple trains in a signal-block as long as the paths do not cross).

    However, I’ve had an idea for a compromise – a mostly static-pathfinder with only a bit of dynamicness. Imagine a station with two tracks and an island-platform with one of the tracks on the left side and one of the tracks on the right side. If the first switch for both tracks on either end of the platform was the switch joining the two tracks, then what could happen is that the trains could then choose only at the last minute which platform to go to, so they would always pick a free platform instead of an occupied platform (unless both were occupied). In this case, the pathfinder only needs to make a decision at the switch just before the platform, while keeping the rest of the path static (other stations with a similar layout would also be dynamic). I’m not sure how much more complicated the algorithm would be if other switches occur between the switch joining the two tracks and the platforms, but I do know that if both tracks were one-way (heading the same way), it would make the platform and two tracks more efficient. Also, making sure that all routes that use either of the two tracks have the option of taking both tracks (this will always be the case if the last switch before the platform and the first switch after the platform are the switches joining the two tracks). When this is implemented, the route-colour overlay would show the route splitting at the pre-platform switch and merging again at the post-platform switch. This also has the advantage that this sort of thing is done in the real-world too, and the passengers don’t have to walk to a different platform – they just change the side of the same platform they are already on.

     

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.