Last time i check, real electric locomotives can also drive backwards :)
can u improove your mod by adding this code:
if event.train.state == defines.train_state.no_path then
for k, v in pairs(event.train.locomotives.front_movers) do
local front = v.disconnect_rolling_stock(defines.rail_direction.front)
local back = v.disconnect_rolling_stock(defines.rail_direction.back)
v.rotate()
if front == true then
v.connect_rolling_stock(defines.rail_direction.back)
end
if back == true then
v.connect_rolling_stock(defines.rail_direction.front)
end
v.train.manual_mode = false
end
end
to train_changed_state event handler? also locomotive.pictures would needs to be updated...
EDIT: tweaked that code a little an its working well (graphics sucks - tweaked base loco in gimp by deleting back half :D ) ...
can send it to u (48MB) ...