Page 1 of 1

[Harkonnen] [0.15.18] Inserter directly behind junction stops working.

Posted: Sun Jun 04, 2017 10:41 pm
by Splitframe
The inserter directly behind a junction merge does not unload from a cargo wagon.
If you remove the inserter and place it again it works one time, then when the next train rolls in
it stops again.
buggybug.jpg
buggybug.jpg (317.81 KiB) Viewed 6085 times
It won't insert into the cargo wagon either:
buggybug2.jpg
buggybug2.jpg (91.89 KiB) Viewed 6085 times

Re: [0.15.18] Inserter directly behind junction stops working.

Posted: Mon Jun 05, 2017 6:22 am
by TruePikachu
Does it pull from a train that is sitting on the curve? It might be that the inserter is checking the curve instead of the straight.

Re: [0.15.18] Inserter directly behind junction stops working.

Posted: Mon Jun 05, 2017 8:29 am
by Smarty
can you provide the save?

So i can take a look at it

Re: [0.15.18] Inserter directly behind junction stops working.

Posted: Mon Jun 05, 2017 11:48 am
by Splitframe
015New.zip
(22.09 MiB) Downloaded 237 times

Re: [0.15.18] Inserter directly behind junction stops working.

Posted: Mon Jun 05, 2017 7:59 pm
by Harkonnen
Yeah, it is most probably sleeping on the other rail segment. We'll think what can be done about that without inducing too big performance loss just due to supporting that special case.

Re: [0.15.18] Inserter directly behind junction stops working.

Posted: Mon Jun 05, 2017 8:03 pm
by kovarex
I remember fixing it some time ago. The inserter should always select the straight rail in this situation, not the curved one. Are you sure the train is on the straight rail?

Re: [Harkonnen] [0.15.18] Inserter directly behind junction stops working.

Posted: Mon Jun 05, 2017 10:09 pm
by Splitframe
It seems to only happen when the train comes from the curved merged rail.

Re: [Harkonnen] [0.15.18] Inserter directly behind junction stops working.

Posted: Tue Jun 06, 2017 12:46 pm
by Harkonnen
I'll extend rail wakeup logics to scan all adjacent rails as well when train stops, so whatever rail inserter chooses for sleeping - it will not be zombified.
EDIT: and actually one of inserters in this save is sleeping on curved rail :) I guess it has decided to do so when straight rail was not yet built.

Re: [Harkonnen] [0.15.18] Inserter directly behind junction stops working.

Posted: Tue Jun 06, 2017 2:30 pm
by Harkonnen
Fixed for coming release.

Re: [Harkonnen] [0.15.18] Inserter directly behind junction stops working.

Posted: Tue Jun 06, 2017 5:01 pm
by Splitframe
Thank you!