[0.14.22] Train.State not changing to wait_signal on curves

This subforum contains all the issues which we already resolved.
SilverB1rd
Inserter
Inserter
Posts: 47
Joined: Fri Mar 17, 2017 9:19 pm
Contact:

[0.14.22] Train.State not changing to wait_signal on curves

Post by SilverB1rd »

Trains approaching red signals on curved track sections never reach the stop point and stay in arrive_signal state.

Screen shot from 0.14.22 with no mods. The middle left train is stuck in the arrive_signal state, while the middle right train is ?correctly? in the wait_signal state.
Image


I found this while working on mod, where I noticed that the train's speeds would drop to extremely small values, 1e-14 or less, but the train never completely stops or changes to wait_signal state.
Attachments
Bug_ArriveSignal.zip
Save from the above screenshot
(2.16 MiB) Downloaded 115 times
User avatar
impetus maximus
Smart Inserter
Smart Inserter
Posts: 1299
Joined: Sat Aug 20, 2016 10:07 pm
Contact:

Re: [0.14.22] Train.State not changing to wait_signal on curves

Post by impetus maximus »

i remember hearing about a bug with signals that are on the very end/beginning. try moving the signal one spot closer to the oncoming train.
SilverB1rd
Inserter
Inserter
Posts: 47
Joined: Fri Mar 17, 2017 9:19 pm
Contact:

Re: [0.14.22] Train.State not changing to wait_signal on curves

Post by SilverB1rd »

impetus maximus wrote:i remember hearing about a bug with signals that are on the very end/beginning. try moving the signal one spot closer to the oncoming train.
I have seen this problem with more then one signal and curve configuration.

I found this problem when working on my train control mod.
viewtopic.php?f=92&t=43885

I had to do extra checks due to train.state not changing, which means the on_train_changed_state is also not fired. Read more in this thread
viewtopic.php?f=33&t=43832

I wonder if this also effects repainting through chain single junctions? I'll need to setup some more test cases.
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5412
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.14.22] Train.State not changing to wait_signal on curves

Post by Klonan »

It should be fixed in 0.15,

The train speed was never reaching 0, meaning it would never reach the signal, but always be arriving

If the problem persists in 0.15 please make a new bug report
Post Reply

Return to “Resolved Problems and Bugs”