[2.0.15] Train stuck at disabled station instead of going to closest enabled
Posted: Wed Nov 13, 2024 4:44 pm
I have a train set to cycle between Drop stations. Previously, when stations were continuously enabled, they had a stacking through timer priority count. As intended, the train would abandon the current station after 5 seconds of inactivity and move to the next one with the highest priority, resetting the priority of the previous station to zero. Everything worked fine.
I made a change where station is disabled by default, "P" doesn't affect at priority and only activates station when its count reaches above 60. This setup should prevent the train from endlessly bouncing between stations with frequently shifting priorities, helping it choose the closest station it hasn’t recently visited.
The Bug:
Now, the issue arises. The train still reaches the station, and the 5-second inactivity timer regularly triggers, but with multiple active Drop stations available, it stubbornly stays at the last visited, now inactive station. It no longer cycles to other stations as expected.
If I temporarily set the train limit at the station where the train is stuck to zero, it finally leaves and moves on to the next nearest station. So, I believe its logic goes something like this: "Is this station disabled? Doesn't matter, I'm heading there. Oh, I’m already there? Perfect. No space at this station? Now that’s a problem — I’ll go to the next one."
Save file attached, with an Artillery wagon pinned under the minimap for reference.
I made a change where station is disabled by default, "P" doesn't affect at priority and only activates station when its count reaches above 60. This setup should prevent the train from endlessly bouncing between stations with frequently shifting priorities, helping it choose the closest station it hasn’t recently visited.
The Bug:
Now, the issue arises. The train still reaches the station, and the 5-second inactivity timer regularly triggers, but with multiple active Drop stations available, it stubbornly stays at the last visited, now inactive station. It no longer cycles to other stations as expected.
If I temporarily set the train limit at the station where the train is stuck to zero, it finally leaves and moves on to the next nearest station. So, I believe its logic goes something like this: "Is this station disabled? Doesn't matter, I'm heading there. Oh, I’m already there? Perfect. No space at this station? Now that’s a problem — I’ll go to the next one."
Save file attached, with an Artillery wagon pinned under the minimap for reference.