Depot station choosing problem.

Adds new train stops forming a highly configurable logistic network.

Moderator: Optera

Post Reply
zggz
Long Handed Inserter
Long Handed Inserter
Posts: 88
Joined: Thu Dec 07, 2017 6:40 pm
Contact:

Depot station choosing problem.

Post by zggz »

Incorrect depot station choosing.
Before when we need train to the provider station, LTN choosed nearest depot station with the same network ID.
Now i see something wrong some of factory parts, not only on this smelters.


For example couple fresh steel smelters. №3 and №4.
They are copy of another one, only stations with another names. Both with 256 ID on ore requesters.
I have 2 ore extractors that provide ore for both stations. They have depot names "depot mine 3-1" "depot mine 3-2" "depot mine 4-1" "depot mine 4-2". All depots and nearest stations are copy of each one.

On screen you can see them.
2.png
2.png (134.72 KiB) Viewed 5130 times
Main problem: "depot mine 3-1" and stations Philip James and Diabolical Demons, when we have enough ore both this station choose train don't from depot mine 3-1, they take trains from 3 other depots with this ID.

Not all time. Somethimes they take trains from 3-1 depot. I don't know why and when.
Some screens below.
depot 3-1.png
depot 3-1.png (47.45 KiB) Viewed 5130 times
4.png
4.png (1.76 MiB) Viewed 5130 times
3.png
3.png (1.08 MiB) Viewed 5130 times
1.png
1.png (109.54 KiB) Viewed 5130 times

GrumpyJoe
Filter Inserter
Filter Inserter
Posts: 443
Joined: Fri Apr 06, 2018 7:10 pm
Contact:

Re: Depot station choosing problem.

Post by GrumpyJoe »

zggz wrote:
Wed Apr 03, 2019 8:42 pm

Main problem: "depot mine 3-1" and stations Philip James and Diabolical Demons, when we have enough ore both this station choose train don't from depot mine 3-1, they take trains from 3 other depots with this ID.
i think thats your problem, they all have the same ID? I´m not sure I understood that correctly.
If thats the case, its not guaranteed they take from the next (as the crow flies) depot.
There could be alot of reasons why a train would be busy at a depot, most likely its refilling fuel, therefor not "inactive"
If there is another Depot with the same ID, its allowed to send a train.

You´d really need to seperate your IDs if its a problem for you

Save file would be helpful, since anyone willing to help would need to see ALL your station stettings

zggz
Long Handed Inserter
Long Handed Inserter
Posts: 88
Joined: Thu Dec 07, 2017 6:40 pm
Contact:

Re: Depot station choosing problem.

Post by zggz »

Thats everywhere. Fix it pls.

2.png
2.png (51.74 KiB) Viewed 5054 times
1.png
1.png (87.48 KiB) Viewed 5054 times

DaleStan
Filter Inserter
Filter Inserter
Posts: 368
Joined: Mon Jul 09, 2018 2:40 am
Contact:

Re: Depot station choosing problem.

Post by DaleStan »

Zggz, will you upload a save, please?
GrumpyJoe wrote:
Fri Apr 05, 2019 1:14 pm
Save file would be helpful, since anyone willing to help would need to see ALL your station stettings

zggz
Long Handed Inserter
Long Handed Inserter
Posts: 88
Joined: Thu Dec 07, 2017 6:40 pm
Contact:

Re: Depot station choosing problem.

Post by zggz »

DaleStan wrote:
Tue Apr 09, 2019 2:51 pm
Zggz, will you upload a save, please?
GrumpyJoe wrote:
Fri Apr 05, 2019 1:14 pm
Save file would be helpful, since anyone willing to help would need to see ALL your station stettings
I belive that Optera understand problem. If he/she ask, i will send it directly.
I know that looking on big bases will easy ruin interest to the game. I can discuss and share any ideas, that i'm using. Also i can give you reccomendations, but i want to share blueprints and saves.

Just ask.

User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2915
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: Depot station choosing problem.

Post by Optera »

zggz wrote:
Tue Apr 09, 2019 4:14 pm
I belive that Optera understand problem. If he/she ask, i will send it directly.
I'm currently on a break from Factorio. If someone else offers to look at your problem I suggest you take that offer.

As far as my own saves go, LTN picks the closest best matching train from depots.
If it really is a bug in LTN itself that no one else managed to find so far I'll try and fix it, but I guess it's a configuration error.


Like I said sloppy configuration, you have some depots without network ID, for example a 'James Roshal' in the middle of 'depot stock 2'.
Installing LTN Tracker can make it easier to spot configuration errors.

eduran
Filter Inserter
Filter Inserter
Posts: 344
Joined: Fri May 09, 2014 2:52 pm
Contact:

Re: Depot station choosing problem.

Post by eduran »

zggz wrote:
Tue Apr 09, 2019 4:14 pm
but i don't want to share blueprints and saves.
I can sympathize. Let's make sure I understand your problem correctly:
  • You have a provider and a nearby depot. LTN usually uses train from that depot for pick-ups from the provider.
  • Sometimes trains are scheduled from another, far away depot.
  • In that case the nearby depot still has available trains of the right length, but they are not used.
Now, if you want help without providing the savegame you will need to provide a full log file and some additional information:
  1. Load up your game, open the mod settings menu and enable debug logging for LTN.
  2. Play your game until a train is scheduled from a far-away depot.
  3. When that happens, pause your game.
  4. Find and upload your factorio-current.log
  5. Finally, tell me the names of:
    • the provider station
    • the requester station
    • the depot from which the train is coming
    • the depot from which the train should be dispatched instead
With that information I should be able to tell you why LTN picked the train it did.

zggz
Long Handed Inserter
Long Handed Inserter
Posts: 88
Joined: Thu Dec 07, 2017 6:40 pm
Contact:

Re: Depot station choosing problem.

Post by zggz »

Butterfly - provider
Requester - icemaking
train come from "depot stock 10"
train must come from "depot stock 4"
1.png
1.png (121.31 KiB) Viewed 4968 times
https://drive.google.com/file/d/101oveD ... sp=sharing

eduran
Filter Inserter
Filter Inserter
Posts: 344
Joined: Fri May 09, 2014 2:52 pm
Contact:

Re: Depot station choosing problem.

Post by eduran »

By the time you loaded your save and enabled debug log, that delivery was already scheduled. The log does therefore not include information on why LTN chose that train. Logging has to be enabled before LTN dispatches the train.

The only thing I can say is that all of the four stations are part of network 1. "Depot stock 4" has available trains by the time the log starts, but it is impossible to tell if those trains were avaialble when the delivery started or - if they were - why the were not used for the delivery.

zggz
Long Handed Inserter
Long Handed Inserter
Posts: 88
Joined: Thu Dec 07, 2017 6:40 pm
Contact:

Re: Depot station choosing problem.

Post by zggz »

i send save file link for you

eduran
Filter Inserter
Filter Inserter
Posts: 344
Joined: Fri May 09, 2014 2:52 pm
Contact:

Re: Depot station choosing problem.

Post by eduran »

LTN thinks it is pulling in the closest train. Distance for a given station pair is only calculated once and cached. Did you at any point teleport or move stops? Or create them in an unusual way? Because the cached results are wrong and I can't think of another way that would happen.

zggz
Long Handed Inserter
Long Handed Inserter
Posts: 88
Joined: Thu Dec 07, 2017 6:40 pm
Contact:

Re: Depot station choosing problem.

Post by zggz »

thats not only this stations. That on whole base.

Only 1 thing i changed. I set Creative mod that i'm used for speed drones and electricric production. I'm even don't know how to move stations or teleport them.

How to clear LTN cache?

eduran
Filter Inserter
Filter Inserter
Posts: 344
Joined: Fri May 09, 2014 2:52 pm
Contact:

Re: Depot station choosing problem.

Post by eduran »

The only way would be for you to deconstruct and rebuild affected stations. Considering the number of stations involved, I would wait for the next LTN update which should fix the issue.

zggz
Long Handed Inserter
Long Handed Inserter
Posts: 88
Joined: Thu Dec 07, 2017 6:40 pm
Contact:

Re: Depot station choosing problem.

Post by zggz »

Thank you again. :)

User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2915
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: Depot station choosing problem.

Post by Optera »

Fixed in 1.10.8.

zggz
Long Handed Inserter
Long Handed Inserter
Posts: 88
Joined: Thu Dec 07, 2017 6:40 pm
Contact:

Re: Depot station choosing problem.

Post by zggz »

Optera wrote:
Sun Apr 21, 2019 2:08 pm
Fixed in 1.10.8.
Now work fine. Thank you for this great mod.

Post Reply

Return to “Logistic Train Network”