Electric Train 2.0 Fix

by Jtmzac

Basic fix for 2.0 while magu5026 works on the original. I'll remove this once that's been updated. Adds electric locomotives to the game.

Content
22 days ago
2.0
961
Trains

g error

4 days ago

I'm having trouble with these errors, can you help?

Error while running event ElectricTrain2::on_built_entity (ID 6)
LuaGameScript doesn't contain key item_prototypes.
stack traceback:.
[C]: in function 'index'
__ElectricTrain2
/control.lua:99: in function <ElectricTrain2/control.lua:90>

4 days ago
(updated 4 days ago)

I was very confused for a minute since I was sure I had fixed that. That would be because that's not this mod.
That is someone else's 2.0 fix for electric trains that came out after this one: https://mods.factorio.com/mod/ElectricTrain2

If you swap to this one it should work fine since that is something that I have already fixed.

3 days ago

I didn't realize I was mistaken!
Thank you for the help!

New response