Train limit not working

Adds new train stops forming a highly configurable logistic network.

Moderator: Optera

felixacat
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed May 16, 2018 9:00 pm
Contact:

Train limit not working

Post by felixacat »

Hello,
Im having a problem with train limits singal not doing what what i think should work.
I have looked over my singals and wiring could not find a problem, So i download a test map from a guy who was explaining his LTN train stops
Im stuck on the same problem.
requesting station
Providing station
The only way i chould make it work is by removing the train limit signal from the requesting station.
This will offcourse result in 8+ trains leaving the depo and locking my requesting station.

Did i miss something or did i stumble on a bug ?
Last edited by Koub on Wed May 16, 2018 10:26 pm, edited 2 times in total.
Reason: Fixed spoiler and images
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2920
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: Train limit not working

Post by Optera »

From what I could see this map uses 4 wagon trains which means LTN can transport 50*40*4=8k ore per train.
The requester you posted wants 73k iron ore = 9,125 train loads.
So ofc LTN will send that many trains to fulfill the request unless limited by max trains.
felixacat
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed May 16, 2018 9:00 pm
Contact:

Re: Train limit not working

Post by felixacat »

Might not have explained it correctly, i fully understand that when i remove the train-limit singal more then one train will come to fulfill the stations request.

The problem im having is that when i have a train-limit singal inplace no train is assigned to the providing station. there all idling in depo.
Only when i remove the singal the trains start to react to the station.
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2920
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: Train limit not working

Post by Optera »

In your requester screenshot I see yellow = 2 meaning 2 trains are currently en route to it.
Erisea
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed May 09, 2018 8:11 pm
Contact:

Re: Train limit not working

Post by Erisea »

I'm also having similar problems with this; I have stations set to limit 1 train, but quite frequently I'm getting a train in a station, and another backed up outside. I've even been in a situation where I had 3 or 4 trains backed up! How can I try to debug this myself? I've seen mention of a log; how can I enable this and read it?
User avatar
jodokus31
Smart Inserter
Smart Inserter
Posts: 1629
Joined: Sun Feb 26, 2017 4:13 pm
Contact:

Re: Train limit not working

Post by jodokus31 »

Erisea wrote:I'm also having similar problems with this; I have stations set to limit 1 train, but quite frequently I'm getting a train in a station, and another backed up outside. I've even been in a situation where I had 3 or 4 trains backed up! How can I try to debug this myself? I've seen mention of a log; how can I enable this and read it?
If a train times out after 5 min., a new train gets scheduled. Maybe this is the case here?
Afaik, after timeout, LTN does not control/track it anymore and it behaves like a normal train with a schedule until it gets back to depot.

For logging: There is a Mod setting: Map -> Enable debug log, which writes to factorio-current.log
There is also the possibility to change timeouts
Erisea
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed May 09, 2018 8:11 pm
Contact:

Re: Train limit not working

Post by Erisea »

I think this must be the answer - i had had an issue with improperly set up inserters, causing trains to not get loaded, which must have caused timeouts, blocking the track causing other timeouts. Thank you!
hezez
Burner Inserter
Burner Inserter
Posts: 6
Joined: Fri Feb 12, 2021 8:13 am
Contact:

Re: Train limit not working

Post by hezez »

jodokus31 wrote: Fri May 25, 2018 3:25 pm
Erisea wrote:I'm also having similar problems with this; I have stations set to limit 1 train, but quite frequently I'm getting a train in a station, and another backed up outside. I've even been in a situation where I had 3 or 4 trains backed up! How can I try to debug this myself? I've seen mention of a log; how can I enable this and read it?
If a train times out after 5 min., a new train gets scheduled. Maybe this is the case here?
Afaik, after timeout, LTN does not control/track it anymore and it behaves like a normal train with a schedule until it gets back to depot.

For logging: There is a Mod setting: Map -> Enable debug log, which writes to factorio-current.log
There is also the possibility to change timeouts
This is an issue i'm curently facing.
On my setup, i've configured it so that trains wait at the station to be completely unloaded (Stops timeout = 0) which allows me to have a stacker at requester stations to have less delays in delivery and a constant flow.
Now, the issue i'm facing is that whenever the train itself times out and is considered lost, it sends another, which fills up the stacker and eventually, blocks the railway.

Is there a way to configure LTN to never consider a train lost? Delivery timeouts only allows variable to be set from 60 to 3600 and no way to disable this feature.
What if i always want trains to be tracked no matter how long it takes to reach destination ?

Now that 2.0 is here, i'm considering switching back to normal trains and figuring out interupts instead..
User avatar
pioruns
Fast Inserter
Fast Inserter
Posts: 148
Joined: Tue Nov 05, 2024 3:38 pm
Contact:

Re: Train limit not working

Post by pioruns »

I am still using old school train stations where all trains are parked when not in service. All train stations have train limit 0 at all times, except when decider combinators sets it higher for example supply station has train-worth of ore, or request station can accept full train-worth of ore. Only then a train arrives, does full load or unload, train limit in the train station resets back to zero and train departs undisturbed.
There is no mistakes in this setup, it works well, I can recommend this if you want bug-free train services while you develop more advanced setups with interrupts etc.
Coffee Daemon
Inserter
Inserter
Posts: 49
Joined: Tue May 03, 2016 1:02 am
Contact:

Re: Train limit not working

Post by Coffee Daemon »

hezez wrote: Sun Mar 09, 2025 8:40 pm
jodokus31 wrote: Fri May 25, 2018 3:25 pm
Erisea wrote:I'm also having similar problems with this; I have stations set to limit 1 train, but quite frequently I'm getting a train in a station, and another backed up outside. I've even been in a situation where I had 3 or 4 trains backed up! How can I try to debug this myself? I've seen mention of a log; how can I enable this and read it?
If a train times out after 5 min., a new train gets scheduled. Maybe this is the case here?
Afaik, after timeout, LTN does not control/track it anymore and it behaves like a normal train with a schedule until it gets back to depot.

For logging: There is a Mod setting: Map -> Enable debug log, which writes to factorio-current.log
There is also the possibility to change timeouts
This is an issue i'm curently facing.
On my setup, i've configured it so that trains wait at the station to be completely unloaded (Stops timeout = 0) which allows me to have a stacker at requester stations to have less delays in delivery and a constant flow.
Now, the issue i'm facing is that whenever the train itself times out and is considered lost, it sends another, which fills up the stacker and eventually, blocks the railway.

Is there a way to configure LTN to never consider a train lost? Delivery timeouts only allows variable to be set from 60 to 3600 and no way to disable this feature.
What if i always want trains to be tracked no matter how long it takes to reach destination ?

Now that 2.0 is here, i'm considering switching back to normal trains and figuring out interupts instead..
TLDR: Disable train limit on station, only let LTN signal limit the trains.

I've had this issue and found the issue I think.

Basically its a conflict with LTN settings limiting the train station to 1 train, and the train station itself set for one train.

So LTN sets a temporary waypoint just before,or on the station in question, to ensure that stations of the same name are not picked by mistake. This makes factorio think this train is NOT going to that station, and allows another train to the station. THIS means the LTN train, at the station is actually second in the queue to use the station. It sits there, not allowing cargo to be moved (other than any in inserter hands already stretched out), and blocking the train thats first in queue.

Basically, disable the station's train limit and let the LTN train limit do its job.
Post Reply

Return to “Logistic Train Network”