[Bug] LTN Output gives wrong signals on multiitem providers

Adds new train stops forming a highly configurable logistic network.

Moderator: Optera

Mäuserflüsterer
Burner Inserter
Burner Inserter
Posts: 6
Joined: Tue May 05, 2020 2:49 pm
Contact:

[Bug] LTN Output gives wrong signals on multiitem providers

Post by Mäuserflüsterer »

Hello,
i have multiple Providers in my base which provide multiple itemtypes. I'm using filterstackinserters attached to the Output of the LTN Station to load the correct items. Since the last update i have the problem that the Output sends not only the ordered items to the logicnetwork. It seems like it's sending some leftovers from the last delivery as well.

In the Attachments you can find two screenshots:
-The Output which sends 31k Ironplates and 276 Cooperplates
-The Trainschedule only containing conditions for the 31k ironplates. Please note that i added the "Empty Cargo" condition to prevent the train from leaving.

I could not find any report for that bug but since it's breaking my base i hope its possible to fix it. If any further informations are needed I'm happy to provide them.
Attachments
rainschedule.png
rainschedule.png (180.65 KiB) Viewed 3162 times
Output.png
Output.png (150.87 KiB) Viewed 3162 times
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2920
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: [Bug] LTN Output gives wrong signals on multiitem providers

Post by Optera »

Please adhere to these guidelines when requesting assistance.
viewtopic.php?f=214&t=60889

Without debug log there's only guesswork.
Mäuserflüsterer
Burner Inserter
Burner Inserter
Posts: 6
Joined: Tue May 05, 2020 2:49 pm
Contact:

Re: [Bug] LTN Output gives wrong signals on multiitem providers

Post by Mäuserflüsterer »

Sadly i'm not able to find the log. Is a exception needed to create the log? I activated the logging as descripted in the link but cant find the log in the factorio folder. Is it somewhere else when using a steam installation? Im searching in Steam/steamapps/factorio
Mäuserflüsterer
Burner Inserter
Burner Inserter
Posts: 6
Joined: Tue May 05, 2020 2:49 pm
Contact:

Re: [Bug] LTN Output gives wrong signals on multiitem providers

Post by Mäuserflüsterer »

I found it.
Additonaly i created a savegame where you can reproduce the bug.
Attachments
LTN-Output Bug Reproduce.zip
(2.67 MiB) Downloaded 92 times
factorio-current.log
(128.18 KiB) Downloaded 111 times
TokMor
Inserter
Inserter
Posts: 31
Joined: Mon Jan 23, 2017 3:37 am
Contact:

Re: [Bug] LTN Output gives wrong signals on multiitem providers

Post by TokMor »

Make sure to include the layout of your provider stop, my guess is that the filter on your output inserters is not being set correctly, but would need to see the layout and the signals going to it when a train pulls up.
Mäuserflüsterer
Burner Inserter
Burner Inserter
Posts: 6
Joined: Tue May 05, 2020 2:49 pm
Contact:

Re: [Bug] LTN Output gives wrong signals on multiitem providers

Post by Mäuserflüsterer »

@TokMor: The Screenshot of the Output clearly shows, that the signal comes from the LTN-Output. But i already posted a small savegame where you can reproduce the bug if you want
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2920
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: [Bug] LTN Output gives wrong signals on multiitem providers

Post by Optera »

That's a timing issue from bad station design.

Your inserters put items into the train just before the event for reaching the station fires.
LTN considers items already loaded in a train when it enters a station as something the user wanted.

A possible fix would be to remove support of user inserted items in LTN controlled trains.

Regardless stops should never have inserters stuck with items. Your station can inserter 11*12 items per cycle so either set locked slots to 2 or reduce inserters or stack size.
Mäuserflüsterer
Burner Inserter
Burner Inserter
Posts: 6
Joined: Tue May 05, 2020 2:49 pm
Contact:

Re: [Bug] LTN Output gives wrong signals on multiitem providers

Post by Mäuserflüsterer »

Thanks for your response.
That's unexcepted but makes sense.
I know about the problem with the inserters stuck with items. Thats why i have one inserter removing unwanted items.
I will optimize my stations.
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2920
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: [Bug] LTN Output gives wrong signals on multiitem providers

Post by Optera »

The inserter to remove items is set up wrong, it will not work like that.
To remove unwanted items you need inventory - expected, just like a smart unloading station. Also it will very likely produce a hystersis and never complete loading.
Mäuserflüsterer
Burner Inserter
Burner Inserter
Posts: 6
Joined: Tue May 05, 2020 2:49 pm
Contact:

Re: [Bug] LTN Output gives wrong signals on multiitem providers

Post by Mäuserflüsterer »

To avoid a hystersis i remove only items that i don't want at all. Having to many item's is not as critical as having the wrong items loaded
Post Reply

Return to “Logistic Train Network”