Project Cybersyn - Logistics Train Dispatcher


Creates a feature-rich train logistics network through cybernetic combinators. With just this mod you can coordinate the economic inputs and outputs of your entire megabase.

Content
3 days ago
1.1 - 2.0
25.6K
Logistics Trains Circuit network

b Delivery not happening

1 year, 11 months ago

Not sure if I did something wrong, but having used RailDispatcher mod for a while I wanted to see if Cybersyn handles priorities better, so I built a few depots with trains and one low priority route, and it just doesn't seem to do anything.

Save file: https://cdn.modo.lv/temp/cybersyn.zip

The Nullius mod I'm playing with supports multiple characters, so I've placed one at each relevant location to make them easy to jump to. Press Ctrl+U to switch between the characters at the depot, the provider and the requester stations.

1 year, 11 months ago

So when I load into the world I almost immediately get the following error:

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

Error while running event RailLogisticsDispatcher::on_nth_tick(2)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__RailLogisticsDispatcher
/script/SurClass.lua:364: in function '_tryToMakeDelivery'
RailLogisticsDispatcher/script/SurClass.lua:246: in function <RailLogisticsDispatcher/script/SurClass.lua:194>
(...tail calls...)
RailLogisticsDispatcher/script/SurClass.lua:108: in function <RailLogisticsDispatcher/script/SurClass.lua:97>

I'm pretty sure this is unintentional and not being caused by project cybersyn. I'll see if I can glean any information in the few seconds I get before the world crashes.

1 year, 11 months ago

From what I can glean in the debugger you have the provider station set to "Request only", so it cannot provide.

1 year, 11 months ago

Yes if I quickly switch it to "Provide only" instead, a delivery is immediately generated. I can't confirm the delivery completes successfully because of the consistent crash, but I see no reason it should not.

1 year, 11 months ago

Oh you are absolutely right, my bad. I have no idea how I missed having set it to the wrong setting, despite rechecking everything thrice. Thanks!

New response