Electric Train


Adds electric locomotives to the game.

Content
4 years ago
0.14 - 1.1
76.4K
Trains

b crash when placing power provider

6 years ago

i placed it near rail, it crash.
i placed it far from rails, it crash.
its the only rail mod in my mod folder.

6 years ago

thx, should be fixed with the new update

6 years ago

now its running, thx its a nice mod.

6 years ago

it still crashes for me ...
Error while running event ElectricTrain::on_tick (ID 0)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
ElectricTrain/lua/logic_event_handler.lua:93: in function <ElectricTrain/lua/logic_event_handler.lua:62>

6 years ago

i hope it works, now

6 years ago

it does, thank you for your reactivity...
btw, since the trains where running without the power provider, and very little info is found, what is the mechanics behind it ?

6 years ago

I'd like to know that, too.

6 years ago

Without the provider, the trains behave like normal trains. Once the providers have power, a special fuel is "charged". Should a normal fuel be present, or have been used, it will be stored and reloaded on demand.

The source code is also available on github. I hope I could explain it a bit.

New response