Page 1 of 1
Train limit not working
Posted: Wed May 16, 2018 10:22 pm
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.
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 ?
Re: Train limit not working
Posted: Thu May 17, 2018 8:17 pm
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.
Re: Train limit not working
Posted: Fri May 18, 2018 7:02 pm
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.
Re: Train limit not working
Posted: Fri May 18, 2018 7:06 pm
by Optera
In your requester screenshot I see yellow = 2 meaning 2 trains are currently en route to it.
Re: Train limit not working
Posted: Fri May 25, 2018 2:31 pm
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?
Re: Train limit not working
Posted: Fri May 25, 2018 3:25 pm
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
Re: Train limit not working
Posted: Sat May 26, 2018 8:09 am
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!
Re: Train limit not working
Posted: Sun Mar 09, 2025 8:40 pm
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..
Re: Train limit not working
Posted: Sun Mar 09, 2025 10:46 pm
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.
Re: Train limit not working
Posted: Fri Apr 04, 2025 5:28 am
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.