Transport Fever 2

Transport Fever 2

时刻表
the_badger19 2021 年 3 月 21 日 上午 7:58
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
< >
正在显示第 1 - 2 条,共 2 条留言
hargn 2021 年 6 月 12 日 上午 10:54 
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.
最后由 hargn 编辑于; 2021 年 6 月 12 日 上午 10:54
hargn 2021 年 6 月 13 日 上午 3:20 
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.
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50