Page 1 of 1

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

Posted: Fri Apr 07, 2017 3:00 pm
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.

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

Posted: Fri Apr 07, 2017 9:43 pm
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.

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

Posted: Sun Apr 09, 2017 7:31 pm
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.

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

Posted: Sun Apr 09, 2017 7:51 pm
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