IncredibleHannes / TPF2-Timetables

The Timetable mod for Transport Fever 2
GNU General Public License v3.0
32 stars 19 forks source link

Disabling the timetable mod prevents some trains from departing a station. #100

Open Gregory365 opened 2 years ago

Gregory365 commented 2 years ago

When disabling the timetable from a save game, trains can end up stuck in the station This will be for all branches of off develop, so won't be affecting the workshop version

The cause is in timetable_helper.lua lines 101 and 111 api.cmd.sendCommand(api.cmd.make.setVehicleManualDeparture(vehicle,false)) api.cmd.sendCommand(api.cmd.make.setVehicleManualDeparture(vehicle,true))

Gregory365 commented 2 years ago

To fix trains being stuck in a station after removing this mod. Open the console (press `) and copy & paste:

api.engine.forEachEntity(function (entity) api.cmd.make.setVehicleManualDeparture(entity, false) end)