Train Scaling


Automate the construction and deconstruction of your trains! Configure a train currently scheduled for a station as a template for the station - the mod's special train construction station will automatically build (or destroy) copies of the template train on demand, or in response to circuit conditions.

Content
3 years ago
0.16 - 1.1
5.91K
Trains

g Game crash during train construction

6 years ago

Hello received this error and game crash when I attempted to build a 3L 8A 3L train.

Error while running event train-scaling::on_nth_tick(300)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
train-scaling/control.lua:1194: in function 'try_build'
train-scaling/control.lua:2032: in function <train-scaling/control.lua:1957>

6 years ago

Hmm, are you able to get this to happen on a consistent basis or was it just a one-off? It seems like this ought to only happen in cases where a train station was just recently destroyed, if I'm understanding the bug right - let me know if you're seeing it consistently, though. Publishing a new version shortly to add more safety around the station entity API calls that should prevent this from happening again.

New response