[0.16.7] Trains: insta-full-stop if destination is in other direction

Things that has been reported already before.
Post Reply
luziferius
Inserter
Inserter
Posts: 35
Joined: Thu Jun 01, 2017 12:59 pm
Contact:

[0.16.7] Trains: insta-full-stop if destination is in other direction

Post by luziferius »

Observed behaviour:
If you currently drive a two-headed train (or a single-headed train backwards) in manual mode and switch on automatic mode, the train instantly drops to zero speed if the new destination is in the opposite direction.
Expected behaviour:
The train should decelerate/break regularly to a full-stop, then start driving in the opposite direction automatically.

I’ve created a sandbox game to show the issue.
  1. Create a player character, if none is created.
  2. Enter the end of the train having three locomotives, Open the train GUI
  3. Accelerate the train, it should accelerate quickly
  4. Switch from manual driving mode to automatic mode. The train instantly drops to zero speed.
Train_fullstop_bug.zip
(2.7 MiB) Downloaded 48 times
PS: I am not able to respond in the next days.
Last edited by luziferius on Thu Nov 07, 2019 10:26 am, edited 1 time in total.

User avatar
TruePikachu
Filter Inserter
Filter Inserter
Posts: 978
Joined: Sat Apr 09, 2016 8:39 pm
Contact:

Re: [0.16.7] Trains: insta-full-stop if dest. is in other direc.

Post by TruePikachu »

I think this has been the case for a while, and might partially be related to the fact that the train doesn't know what way to take at upcoming junctions (between it and the braking stop location).


luziferius
Inserter
Inserter
Posts: 35
Joined: Thu Jun 01, 2017 12:59 pm
Contact:

Re: [0.16.7] Trains: insta-full-stop if dest. is in other direc.

Post by luziferius »

This is kind of different from mining a train stop which is the next stop on a schedule.

If the train moves backwards, is switched to automatic mode and the pathfinder finds a path from the current position to the destination leading in the opposite direction, it can always do a normal break stop, then accelerate in that direction.

This is true, because moving backwards relative to the target direction does not invalidate path choices by passing them. Therefore, if there is a valid path, it is not invalidated by driving backwards further during the break process.
(This may be breakable by deliberate signal placement…)


But if it is a design decision, I’m fine with it.

Post Reply

Return to “Duplicates”