Really enjoying this idea, looking forward to seeing where you can take this in the future, however the latest update has made the game unplayable.
When loading my world, I now get an unrecoverable error:
Error while running event modular-trains::on_nth_tick(45)
modular-trains/control.lua:223: bad argument #1 of 2 to 'pairs' (table expected, got nil)
stack traceback:
[C]: in function 'pairs'
modular-trains/control.lua:223: in function
<modular-trains/control.lua:221>
Looking forward to the fix as the new electric trains look interesting.