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 NRE when delivery request is made

1 year, 11 months ago

Hey, so I updated to 1.0.6 this morning and loaded my K2+SE testing save from last night. I have some depots set up, a couple of provider stations and a couple of requester stations (one of which is in Nauvis Orbit), as well as a space elevator. Everything worked fine at first, but now I'm getting a non-recoverable error whenever a requester station triggers a delivery. I've tried to narrow it down further but can't seem to figure out exactly what changed.

  • the error started occuring after I had built depots in Nauvis orbit, originally with the same name as the depots I built on Nauvis; the error persists after both renaming and removing the orbit depots, however.
  • I first noticed the error with the orbit requester station, but confirmed that triggering a delivery request for the Nauvis requester station also triggers the error.
  • I don't know if it matters, but my current depots use inline stackers (with a train limit of 6 each), instead of the 1-train-limit-per-depot I was originally testing with. That didn't seem to break anything before, though.

Not sure what else I could check for. The error text is below.


The mod Project Cybersyn (1.0.6) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event cybersyn::on_nth_tick(2)
cybersyn/scripts/central-planning.lua:61: attempt to index local 'train' (a nil value)
stack traceback:
cybersyn/scripts/central-planning.lua:61: in function 'get_valid_train'
cybersyn/scripts/central-planning.lua:439: in function 'tick_dispatch'
cybersyn/scripts/central-planning.lua:502: in function 'tick'
cybersyn/scripts/main.lua:940: in function <cybersyn/scripts/main.lua:939>

1 year, 11 months ago

a temp fix would probably be to go into mod settings and set "depot bypass fuel threshold" to 1. I'll get on fixing it right away.

1 year, 11 months ago

Hmm, I tried changing that setting, and also tried rolling the mod back to 1.0.4 and 1.0.5 and the error persists in all three cases. I wish I could replicate it more specifically.

1 year, 11 months ago
(updated 1 year, 11 months ago)

This crash should be fixed now in version 1.0.7. If updating doesn't fix the issue I may have to ask to see your world file. Sorry for the trouble.

1 year, 11 months ago

Looks like that did it! And no worries, happy to report anything useful I can.

New response