Page 1 of 1

How Does Depot Priority Work?

Posted: Wed Mar 24, 2021 1:07 am
by mahogany
My trains are not prioritizing them when returning to depots, and the trains in those depots are not priortized first on deliveries. I even have made the priority a million with no noticable change.

Re: How Does Depot Priority Work?

Posted: Wed Mar 24, 2021 3:58 pm
by Optera
First check if the correct signals are sent to the stop.

Should the problem persist enable debug log, attach factorio-current.log and tell me which depot to look for.

Re: How Does Depot Priority Work?

Posted: Wed Mar 24, 2021 8:17 pm
by mahogany
This is from a sandbox save with a simple provide > request > depot loop. The depots ones with no priority are closest to the provider and requester stations and are being chosen first over the further but much higher priority ones. A train is sitting in the depot priority: 999999999 stop, and wont leave unless you make it be the only avalable depot. Another depot of similar priority is empty and not being chosen for incoming trains.

Re: How Does Depot Priority Work?

Posted: Thu Mar 25, 2021 4:01 pm
by Optera
Seems like I messed up big when writing the depot priority code.
It never could have worked as intended and still yours is the first bug report after over a year since it was introduced.

It will take time to properly fix it.

Re: How Does Depot Priority Work?

Posted: Fri Mar 26, 2021 7:10 pm
by Optera
Fixed in 1.16.0

Switching train selector to use table sort was simpler than squeezing priority into the old structure.

Re: How Does Depot Priority Work?

Posted: Tue Oct 26, 2021 10:37 pm
by Jao247
I am seeing this issue pop up in 1.16.3

I have two depots at the top and a requester and provider at the bottom. No matter what the two depots are set to, the closest depot is selected.
https://imgur.com/hlSh7Wu
The top depot was always set at 100 Priority, and I have changed the bottom one from 50, to 150, to -50

The only mods enabled are LTN and Editor Extensions.

Re: How Does Depot Priority Work?

Posted: Sat Oct 30, 2021 5:19 am
by Optera
Jao247 wrote:
Tue Oct 26, 2021 10:37 pm
I am seeing this issue pop up in 1.16.3

I have two depots at the top and a requester and provider at the bottom. No matter what the two depots are set to, the closest depot is selected.
https://imgur.com/hlSh7Wu
The top depot was always set at 100 Priority, and I have changed the bottom one from 50, to 150, to -50

The only mods enabled are LTN and Editor Extensions.
You would need identical trains parked at both depots to even begin testing depot priority.

Re: How Does Depot Priority Work?

Posted: Sat Oct 30, 2021 2:42 pm
by mrvn
Paste this in editor mode and watch where it picks trains from: Left is with priority and right without. Start the trains by turning on the constant combinator.