Automatic Train Deconstruction deprecated


Adds a station that will automatically deconstruct trains.

Content
7 years ago
0.15
8
Trains

g made it work for non vanilla trains

7 years ago

changed in control-
for ,car in pairs(cars) do
if car.name == "locomotive" then table.insert(locos,car) end
if car.name == "cargo-wagon" then table.insert(wagons,car) end
if car.name == "fluid-wagon" then table.insert(fluid_wagons,car) end
to -
for
,car in pairs(cars) do
if car.type == "locomotive" then table.insert(locos,car) end
if car.type == "cargo-wagon" then table.insert(wagons,car) end
if car.type == "fluid-wagon" then table.insert(fluid_wagons,car) end

7 years ago

Nevermind, that fix converted all non vanilla rolling stock to vanilla, but after a little more editing I now have it working for non vanilla stock

6 years ago

care to share those little more edits?

New response