0ptera / Logistic-Train-Network

Factorio mod adding logistic network for trains.
Other
155 stars 55 forks source link

Network id doesn't seem to be considered #341

Closed Hermios closed 1 month ago

Hermios commented 1 month ago

Make sure the bug is caused by LTN and not an interface recipient

Error message or bug description I connected my train stops per pairs to network ids. Each pair consists in 1 depot and one provider. Requesters have all id -1 But despite each pair has a specific id starting with 100, then 101, then etc. , when a train is in depot X, it can go to any provider

To Reproduce The idea is to duplicate several pairs, consisting in one depot and one network id (same for both). I started with 100, to ensure that each pair doesn't cover another one first pair is directly connected to a constant combinator, with value 100 duplicate of this pair is connected to an arithmetic combinator, which add +1 to the previous arithmetic combinator output, or the constant combinator for the second pair. Network id is connected to the lamp (input) of the train stop Below a screenshot of the configuration:

image

Still, trains from a depot x can go to any provider, with another network id. This regularly jams all my system of trains.

And a bigger image, in green what I expect, in red what I have: image

LTN version 1.18.6

Log file Your factorio-current.log file. It is located in Factorio's user data directory.

0ptera commented 1 month ago

NetworkID is binary encoded. Each bit represents if a Network is allowed or not.

What you told LTN is, the first Depot is valid for Networks 3, 6 and 7, the second for 1, 3, 6 and 7 and so on. So it's working as designed.