Rail Logistics Dispatcher

by Viidi

Adds a dispatcher (building) to automate railway logistics based on provide and request stations. Has intuitive interface. Was inspired by LTN but went a different way.

Content
a month ago
1.1 - 2.0
4.36K
Logistics Trains

g No Train despite excess

4 months ago
(updated 4 months ago)

Okay so this is an interesting issue I've begun running into more and more as my network expands.

When I build a new station and setup a request, I will frequently get a 'no train' error. But if I go look at my depot (56 train capacity) I will see 5+ cargo trains sitting there being unused. There are quite a lot of trains running around, and this error seems to only occur with brand new depots. Given enough time, a few minutes at least, it seems enough trains will cycle around that one will get assigned to that station. Once something gets its first train, it seems to resolve the problem and it'll get stocked normally as needed. I thought I'd solve this issue by adding more trains. But even after putting down six more cargo trains, it's still coming back every time I start a new station.

Is there any reason it would say 'No Train' despite having an excess of available trains?

Edit: and to be clear, it's not a lack of providers or total supply. The current stuck station is requesting 4 cars of copper. I have 3 copper providers that are currently over 20k supply, and a 4 car train is only 16k copper.

4 months ago

I had this issue when I tried to setup fuel with interrupts and such, the problem I ended up creating was that somehow all my depots were "empty" (you can tell that state by the white light lamp).

Manage to fix it by adding the "Depot" station to the schedule of my train group, every depot that had a train became green when i did that

4 months ago

All the stations with the unused trains are green. And rarely those trains do actually go do something so it's not always the same ones. It feels like the dispatcher system has a hard limit somewhere about how many trains it can be controlling at once but I can't find anything like that.

4 months ago

Hello. Let's try to figure it out. The easiest way is if you send me the save of the game. And based on the description, I can suggest sending these trains from the depot to some temporary point and waiting for them to return to the depot. Write, after this the train began to be used by the network?

В любом случае так не дожно быть и сохранение с проблемой поможет найти ошибку.

4 months ago
(updated 4 months ago)

Let me get a save put together that has a train stop with the error happening. Then I'll get you a link for it.

I apologize before hand, I do have a large collection of mods, but yours is the only train/logistics mod I'm running so it shouldn't be caused by any conflict. I do run a whole heck of a lot of stations and trains though. I am treating your train stops like requester chests and passive provider chests. The network is quite expansive with lots of mines and other stops in use.

Edit: https://drive.google.com/file/d/1-ynylCma-EjcY3lFpBfuXLTjA5foBkI-/view?usp=sharing

I have saved right next to an iron request station that has the 'no train' issue happening, and if you look north west of that location, you'll see my two 28 train depots. There's about a dozen cargo trains sitting there waiting with green lights. Let me know what you find out. I greatly appreciate your help in this!

4 months ago

Hi.
Thanks for the game save. I saw the problem, I'll investigate.

4 months ago

Hi. For some reason, the problem stopped reproducing for me. However, while I was investigating, I fixed some of the errors I found. Try the latest version. I have your saved game on it, creating a delivery at that station.

I also saw that you have a lot of dispatchers, but at the same time "Update interval (tick)" in the settings is set to every 5 ticks. This is too much, I recommend reducing it to 1.

Also, since you do not use interrupts, I recommend disabling the "Save interrupts (hack)" option in the settings. It saves interrupts, but can cause freezes.

4 months ago
(updated 4 months ago)

Alright. I'll try those changes. Thank you so much for taking the time and I'll let you know if I run into anymore issues!

Edit: HA! As soon as I loaded my save up, I looked at my depot and 4 trains were leaving at the same time.

New response