Station train request is not taken by the nearest available train

Trains
bscheshir [github] · 6 months ago

Issue description

As I mentioned in the Network trains get stuck when attempting to reach a holding point I'm trying to use the new rail network construction feature. And the network isn't working as expected, with bugs.

I noticed that trains were constantly traveling from one end of the map to the other, even though the network's design is to minimize empty runs.

Before the introduction of Level 2 trains, I had a loading and unloading station operating simultaneously – organic fertilizers were unloaded, and then Level 2 fertilizers were loaded directly onto the front of the train. Yes, this required additional stops to load the second portion, but it somehow worked. There was a balancing issue with the system; it often clogged up and required increased attention.

However, this system allowed trains to carry cargo in both directions without empty runs until the tanks filled up and everything got stuck.

It would seem that the network should have an elegant solution to this problem: two stub lines were created at the ends of the line, and after delivering, trains would wait there for cargo from the nearest station, after which they would depart.

But in fact, not only did the previous update break the simultaneous loading and unloading feature, but with this update, trains stopped loading different goods if the same station is specified twice in a row—and there's some correlation with the storage settings—but the behavior is different for infinite stations. And after this, the networks are also poorly implemented. I'm not enjoying the update; I feel like that guy with the negative review on SimCity.

Reproduction steps

  1. Load save file https://drive.google.com/file/d/1kGyOduE_AMJxulBODDKX4cpQEVQwOav_/view?usp=sharing
  2. See train #55

Image

  1. This train is free and it is the closest to the loading station.
  2. See train #53

Image

  1. This train was called to the station from the other end of the map.
  2. Even though I was keeping a close eye on the station, waiting for it to have enough goods to call a train, this is definitely happening.

Game version and build number

v0.8.3a (b578)

Operating system

Windows

Attachments

17 Showing 1–1 of 1