Electric Train


Adds electric locomotives to the game.

Content
4 years ago
0.14 - 1.1
76.4K
Trains

b crash when breaking rails

6 years ago

today I tried to break some rails because they werent needed but then the following message appeared:
"Error while running event ElectricTrain::on_tick (ID 0)
LuaEntity API call when LuaEntity was invalid stack traceback:
ElectricTrain/lua/events.lua:39: in function 'TrainPower'
ElectricTrain/lua/events.lua:102: in function 'on_tick'
ElectricTrain/control.lua:12: in function ElectricTrain/control.lua:11"
didnt happen if I broke the train before breaking the rails but when I replaced the train it happened again

6 years ago
(updated 6 years ago)

tried it again,
its actually just 1 rail thats crashing the game all the others work just fine
i'm using 0.16.3

6 years ago

Hello, I have created a fix, but I do not know why this error occurs. Therefore, I can not guarantee that this fix will help you.

It would be nice if you could say which mods you have installed.

New response