[2.0.8] Out of fuel train with reserved path

Bugs that are actually features.
User avatar
Cooldude2606
Fast Inserter
Fast Inserter
Posts: 108
Joined: Sat Sep 16, 2017 9:04 pm
Contact:

[2.0.8] Out of fuel train with reserved path

Post by Cooldude2606 »

TL;DR Train has reserved a path through a block and the signals are yellow. The train then runs out of fuel and comes to a stop before entering the block, but the path remains reserved and is preventing other trains from entering the block.

Reproduction
1) Load this save file (110MB, self hosted)
2) Go to -268, -166, Nauvis (linked in chat, also in image below)
3) Train is not in the block, has no fuel, is not expecting fuel, and has 0 speed; but still has path reserved.

The Issue
A block is not expected to be reserved if a train has stopped moving outside of the block, it should be unreserved once it becomes impossible for the train to enter the block without external intervention.

Image
--- Developer for Explosive Gaming and Clusterio. Please contact me via our Discord. ---
Rseding91
Factorio Staff
Factorio Staff
Posts: 15222
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.8] Out of fuel train with reserved path

Post by Rseding91 »

Thanks for the report however it is expected that trains will continue to have fuel to run. As such, they reserve blocks with the expectation they will keep moving and if that fails, then they may get stuck like this. You the player can easily resolve the issue by requesting more fuel into the trains through robots, or by putting fuel in yourself.

It's not worth the additional code complexity and edge cases that will arise to try to prevent this.
If you want to get ahold of me I'm almost always on Discord.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15222
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.8] Out of fuel train with reserved path

Post by Rseding91 »

If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Not a bug”