Transport Fever 2

Transport Fever 2

Timetables
Nolivfr 24 Mar, 2021 @ 6:28am
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)')
< >
Showing 1-3 of 3 comments
Nolivfr 24 Mar, 2021 @ 4:26pm 
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 25 Mar, 2021 @ 3:09am 
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).
Last edited by Fibou; 25 Mar, 2021 @ 3:23am
Celmi  [developer] 25 Mar, 2021 @ 5:31am 
I already have a fix, will update it later today ;)
< >
Showing 1-3 of 3 comments
Per page: 1530 50