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
5 hours ago
1.1 - 2.0
3.02K
Logistics Trains

g [FIXED in 2.0.8] Crash when trying to close gui

15 days ago

Error while running event RailLogisticsDispatcher::on_gui_closed (ID 96)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__RailLogisticsDispatcher
/script/entity.lua:105: in function 'dispSettingsToCombinator'
RailLogisticsDispatcher/script/entity.lua:680: in function 'dispSetSettings'
RailLogisticsDispatcher/script/gui_disp.lua:1035: in function '?'
RailLogisticsDispatcher/script/gui.lua:553: in function 'guiHandleEvent'
RailLogisticsDispatcher/script/gui.lua:580: in function <RailLogisticsDispatcher/script/gui.lua:578>

15 days ago

Thanks for the bug report, I'll fix it today

15 days ago

Hi Viidi! Thanks for your quick fix, I will soon test it. By the way, I have another question about using RailLogisticsDispatcher with Factorio 2.0’s new interruption feature. If I set trains to refuel automatically when fuel is below 50%, could this potentially interfere with the mod’s scheduling functions? Thanks!

15 days ago

Hi Viidi! Thanks for your quick fix, I will soon test it. By the way, I have another question about using RailLogisticsDispatcher with Factorio 2.0’s new interruption feature. If I set trains to refuel automatically when fuel is below 50%, could this potentially interfere with the mod’s scheduling functions? Thanks!

Unfortunately, working with interrupts is not implemented in the mods api (https://forums.factorio.com/viewtopic.php?f=28&t=116116). Therefore, the dispatcher, unfortunately, will delete interrupts - this is not yet possible to influence in any way. I hope that the developers of Factorio will soon add this functionality, and I will support it right away.

This is bound to happen, so I don't see any point in implementing gas stations in mod. It remains for now the old-fashioned method - refueling at the depot.

15 days ago

Hi Viidi! Yes, that’s exactly why I had this idea in mind! I noticed that in the new version, there isn’t a dedicated fuel station type, which is different from what’s shown in the images on the mod’s homepage. Maybe this could be a good opportunity to update the images or add a note about refueling to help clarify for others who might have the same question. Thanks again for the quick updates and for creating such a useful mod!:)

15 days ago

Hi Viidi! Yes, that’s exactly why I had this idea in mind! I noticed that in the new version, there isn’t a dedicated fuel station type, which is different from what’s shown in the images on the mod’s homepage. Maybe this could be a good opportunity to update the images or add a note about refueling to help clarify for others who might have the same question. Thanks again for the quick updates and for creating such a useful mod!:)

I spent a lot of time trying to get the mod working as soon as possible in 2.0. Now I need to pay back a little of what I borrowed from my family. I hope for your understanding.

14 days ago

Hi Viidi! Thanks for your quick fix, I will soon test it. By the way, I have another question about using RailLogisticsDispatcher with Factorio 2.0’s new interruption feature. If I set trains to refuel automatically when fuel is below 50%, could this potentially interfere with the mod’s scheduling functions? Thanks!

I found a clunky way to save train interruptions. You can try it in the 2.0.10 update.
If something goes wrong, disable this method in the settings and play the old way.
When the standard option appears in the API, I will switch to it.
Enjoy the game!

New response