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
9 months ago
1.1 - 2.0
4.67K
Logistics Trains

b Lua Error 'stopName'

10 months ago

I am getting the following error:

The mod Rail Logistics Dispatcher 2 (2.0.23) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event RailLogisticsDispatcher::on_nth_tick(2)
RailLogisticsDispatcher/script/utils.lua:210: attempt to concatenate field 'stopName' (a nil value)
stack traceback:
RailLogisticsDispatcher/script/utils.lua:210: in function 'rqFormatQueue'
RailLogisticsDispatcher/script/entity.lua:1207: in function 'dispUpdate'
RailLogisticsDispatcher/script/entity.lua:1506: in function <RailLogisticsDispatcher/script/entity.lua:1487>

This occurs when I unpause the dispatcher at one of my train stops. There are multiple other stops that work fine without error.

I have tried renaming the station as well as destroying then rebuilding the station and dispatcher, neither seem to work. If I have the dispatcher paused or the station limit set to 0 the game runs without issue and the mod is able to schedule trains to other stations. This station however seems unable to have a train scheduled to visit it without causing a crash.

10 months ago

Hi. Thanks for the report.

Very interesting. Please send me the save file of the game so I can investigate the problem.

10 months ago

The problem is with the dispatcher, which is marked for deletion just below the station [item=iron-plate][item=steel-plate] Pickup 1 (/c game.player.teleport{x=-298, y=-99})

If you wait until it's deleted, you can unpause this station and everything will be ok.

I'll try to fix the mod so that it handles this situation correctly.

10 months ago

Thank you so much!

New response