Transport Fever 2

Transport Fever 2

Timetables
the_badger19 21 Mar, 2021 @ 7:58am
Timetable tab stopped working
Best mod out there and should have been part of the regular game. But since the last update my timetable tab has stopped working. Looking forward to using it again.

C:\build\tpf2\src\Lib/UI/MemoryManager.h:28: class std::unique_ptr<class UI::ILayout,struct std::default_delete<class UI::ILayout> > __cdecl UI::MemoryManager::Remove<class UI::ILayout>(class UI::ILayout *): Assertion `it != m_data.end()' failed.

userdata: 0000018E06640AD8
< >
Showing 1-2 of 2 comments
hargn 12 Jun, 2021 @ 10:54am 
Hi, got the same issue : here is my log with the involved script's line :
...bles_6/res/scripts/celmi/timetables/timetable_helper.lua:281: attempt to index local 'res' (a nil value)
C:\build\tpf2\src\Lib/UI/MemoryManager.h:28: class std::unique_ptr<class UI::ILayout,struct std::default_delete<class UI::ILayout> > __cdecl UI::MemoryManager::Remove<class UI::ILayout>(class UI::ILayout *): Assertion `it != m_data.end()' failed.
userdata: 0000022678F2EF58


One possible cause is that i've destroyed a station before to recreate it. This station had train schedules, so maybe the mod's issue is related to the fact that the station's is doesn't exist anymore.
Last edited by hargn; 12 Jun, 2021 @ 10:54am
hargn 13 Jun, 2021 @ 3:20am 
Hi,

Here is a fix for the res/scripts/celmi/timetables/timetable_helper.lua script
https://pastebin.com/Mt1DEVUU
Seem to work fine with this fix.
< >
Showing 1-2 of 2 comments
Per page: 1530 50