Transport Fever 2

Transport Fever 2

Timetables
Game crashes after deleting a line
Hi,

First of all, I would like to thank you very much for this great mod, which adds an essential fonctionality to the game. Great job!

I think I can also share with you a bug that I have noticed: when we delete a line which has timetable data, everything works as usual. But after this, if I open the "Stations" tab in the Timetable window, the game crashes. I can imagine that the reason can be that the timetable data still exists but it refers to a line that do not exists anymore.

I hope this will help you to improve this mod, which is already wonderfull!
< >
Showing 1-2 of 2 comments
Celmi  [developer] 28 Feb, 2021 @ 4:47am 
https://github.com/IncredibleHannes/TPF2-Timetables/issues/3
This is the corresponding Issue to your problem. Unfortunately, I don't know what's causing this at the moment. Therefore it probably will take some time until I find the cause of this issue and can resolve it :/
gamebori 13 Mar, 2021 @ 12:25pm 
I see this issue was closed on Github, but I still encounter this bug, or a similar one.

I wanted to remove a station from a line, so I first removed the times for that station from the time table, but later I realised I did not change the time table to :no timetable".
The train was being stopped and released at the wrong times after this. So I removed all remaining timetables for the line, moved the train to another line and deleted the line. Then the game crashed.

Log file: https://drive.google.com/file/d/1fyJT0bz87g6F5cNegAYCcSPuQZVop1UJ/view?usp=sharing
(I have about 700 other mods installed and a lot of errors unrelated to this issue, the only interesting part is this maybe:
....
cannot resume dead coroutine
...80/2408373260/res/scripts/celmi/timetables/timetable.lua:329: attempt to index local 'constraint' (a nil value)
cannot resume dead coroutine
....
....
cannot resume dead coroutine
PANIC: unprotected error in call to Lua API (stack index 1, expected string, received boolean))


Anyway, still an awesome mod and if I have to remember to be very careful with changing lines so be it. It's absolutely worth it!
< >
Showing 1-2 of 2 comments
Per page: 1530 50