Page 1 of 1

feature request: per-station signals for inactivity/finish-loading.

Posted: Fri Dec 29, 2023 8:33 pm
by ManicMiner
There are global settings which determine if trains should finish unloading at the requester station, and I like this option for most stations.
However; for other stations (like the pollution filters for K2+SE), I want to have an inactivity timeout and only load the amount requested.
  • It appears implementable by adding new station signals which override global defaults.
I stared adding a "delivery chain length" signal which would hint the dispatcher to schedule stops at up to X requester stations, but wonder if there is a way to achieve this with LTN as it is.

Re: feature request: per-station signals for inactivity/finish-loading.

Posted: Sat Dec 30, 2023 12:03 pm
by Optera
Enable "Schedule circuit conditions" and build whatever logic you want for keeping trains locked in a station or force them out.

Re: feature request: per-station signals for inactivity/finish-loading.

Posted: Sun Dec 31, 2023 7:27 pm
by ManicMiner
Thank you -- this suggestion works, but ...
- I have 190 stations and did not want to re-wire them of all (just the ~15 pollution filter stations).
- The default setup was so nice, that I had previously removed all circuit connections to my train stops.
- The short circuit global requires a "send to train" circuit connection for each LTN station.

Instead, I implemented a per-station "use circuit conditions" control signal.
- This selectively enables short circuit scheduling (e.g. only for LTM stations with the control signal set).
- I didn't see a reason to enable it for depots, but that could be done as well.

If you think this is worth including, I would be happy to transfer ownership to you (in retrospect, the code changes were not complex).
new-signal.png
new-signal.png (116.81 KiB) Viewed 595 times

Re: feature request: per-station signals for inactivity/finish-loading.

Posted: Fri Jan 12, 2024 12:54 am
by drekly
I need this!

I'm running LTN on K2SE and have many large stations for mass-produced items... but then I have one station that provides 'stuff' - things I just need 1 or 2 of for orbit. The train gets full instantly, but because it is scheduled to pick up tons of different things but is full, it just sits there fro 120 seconds.

I need to set ONLY this one station to send trains away as soon as they're full, or are inactive

Re: feature request: per-station signals for inactivity/finish-loading.

Posted: Sun Jan 14, 2024 6:55 am
by Optera
Enabling circuit conditions globally has no effect on stations that don't make use of them.

The only requirement is for a single wire to connect to every station, can be just an isolated pole with a wire between it and station.
Otherwise trains will try to read from a not existing circuit network and wait forever.