Transport Fever 2

Transport Fever 2

时刻表
Nolivfr 2021 年 3 月 24 日 上午 6:28
Game crash : Lua exception
Hi, I just installed this mod and I got this error when I clicked on the lines tab in the timetables window:

Exception type: Lua exception This error is usually caused by modding. Some game resources contain incorrect data. Details: Error message: ...373260/res/scripts/celmi/timetables/timetable_helper.lua:160: stack index 2, expected number, received nil: not a numeric type (bad argument into 'sol::basic_object<sol::basic_reference<0> >(sol::basic_table_core<0,sol::basic_reference<0> >, ecs::Entity, enum scripting::ComponentType, sol::this_state)') Minidump: C:/Program Files (x86)/Steam/userdata/126435252/1066780/local/crash_dump/905dcf20-c915-461a-b211-a96a4396e720.dmp In file: C:\build\tpf2\src\Game/scripting/error_handling.h:14 In function: void __cdecl scripting::CheckResult<void>(struct sol::protected_function_result) __CRASHDB_CRASH__ struct lua::LuaException: C:\build\tpf2\src\Game/scripting/error_handling.h:14: void __cdecl scripting::CheckResult<void>(struct sol::protected_function_result): ...373260/res/scripts/celmi/timetables/timetable_helper.lua:160: stack index 2, expected number, received nil: not a numeric type (bad argument into 'sol::basic_object<sol::basic_reference<0> >(sol::basic_table_core<0,sol::basic_reference<0> >, ecs::Entity, enum scripting::ComponentType, sol::this_state)')
< >
正在显示第 1 - 3 条,共 3 条留言
Nolivfr 2021 年 3 月 24 日 下午 4:26 
I was able to reproduce the crash: It happens when I click on the icons in the lines window, when I try to only show trains for example.
Fibou 2021 年 3 月 25 日 上午 3:09 
It happened when I sold the vehicles on the line. After this when I opened timetables and click on some icon of type of transport (as Nolivfr writes) the game crashed.
If the game did not crash after selling the vehicles and deleting the line in other case, it crashed when I created a new line.
Now i tried - It crashed when I have a line without vehicles. After the sale of vehicles ot after I created a line but did not buy vehicles.
It's as if the mod doesn't know where to place the line (which type of transport).
最后由 Fibou 编辑于; 2021 年 3 月 25 日 上午 3:23
Celmi  [开发者] 2021 年 3 月 25 日 上午 5:31 
I already have a fix, will update it later today ;)
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50