Transport Fever 2

Transport Fever 2

LineManager
This topic has been locked
GordonDry 14 Feb, 2022 @ 11:08am
1.19 crash after renaming rail line
Before the update to 1.20 I got a crash.
The settings are still default, so "rail" is unticked.
I gave the rail line names with LineManager syntax whatoever as a reminder and for later use.
There were two lines with a rate of 200 each and "linename (R:200)" in the line name.
After the industrie leveled up to a rate of 400 I edited the line names and changed to "linename (R:400)".
A few seconds later the game crashed to desktop.

Could it be that the code does not like the syntax in rail lines when rail is unticked in the settings?

Log:
https://www.dropbox.com/s/qloi46k6w98sve3/crash_dump_2022_02_14_1.7z?dl=1

Last lines in log:

Attempting to write crash save to "C:/Users/Admin/AppData/Roaming/Transport Fever 2/save/crash_Region Niesky 01p_2022-02-14_17-54-53.sav"
available disk space: 251567 MB
[2022-02-14 17:54:53] Saving to file C:/Users/Admin/AppData/Roaming/Transport Fever 2/save/crash_Region Niesky 01p_2022-02-14_17-54-53.sav.tmp
GC Called
Destroying failback ui done
Uncaught exception while in class UI::CSelector
Exception type: Lua exception

This error is usually caused by modding. Some game resources contain incorrect data.

Details:

Error message: error: mods/linemanager_1/res/scripts/cartok/sampling.lua:578: attempt to concatenate local 'emptiestVehicleId' (a nil value)
stack traceback:
=[C](-1): __concat
@mods/linemanager_1/res/scripts/cartok/sampling.lua(578): getEmptiestVehicle
mods/linemanager_1/res/config/game_script/linemanager.lua(165): addVehicleToLine
mods/linemanager_1/res/config/game_script/linemanager.lua(234): updateLines
mods/linemanager_1/res/config/game_script/linemanager.lua(302): everyTickUpdate
mods/linemanager_1/res/config/game_script/linemanager.lua(632): ?


File name: mods/linemanager_1/res/config/game_script/linemanager.lua

Key: game/res/gameScript/linemanager.lua_update

Minidump: C:/Users/Admin/AppData/Roaming/Transport Fever 2/crash_dump/9d25f631-2cf1-41bd-9a1c-ab6c96f25940.dmp

Mod: "LineManager" (linemanager, 1) (consider removing this mod and contacting the mod author)

In file: ..\..\src\Lib\lua\State.cpp:592

In function: void __cdecl lua::State::Call(int,int)


__CRASHDB_CRASH__ struct lua::LuaException: ..\..\src\Lib\lua\State.cpp:592: void __cdecl lua::State::Call(int,int): error: mods/linemanager_1/res/scripts/cartok/sampling.lua:578: attempt to concatenate local 'emptiestVehicleId' (a nil value)
stack traceback:
=[C](-1): __concat
@mods/linemanager_1/res/scripts/cartok/sampling.lua(578): getEmptiestVehicle
mods/linemanager_1/res/config/game_script/linemanager.lua(165): addVehicleToLine
mods/linemanager_1/res/config/game_script/linemanager.lua(234): updateLines
mods/linemanager_1/res/config/game_script/linemanager.lua(302): everyTickUpdate
mods/linemanager_1/res/config/game_script/linemanager.lua(632): ?

Exception type: Lua exception

This error is usually caused by modding. Some game resources contain incorrect data.

Details:

Error message: error: mods/linemanager_1/res/scripts/cartok/sampling.lua:578: attempt to concatenate local 'emptiestVehicleId' (a nil value)
stack traceback:
=[C](-1): __concat
@mods/linemanager_1/res/scripts/cartok/sampling.lua(578): getEmptiestVehicle
mods/linemanager_1/res/config/game_script/linemanager.lua(165): addVehicleToLine
mods/linemanager_1/res/config/game_script/linemanager.lua(234): updateLines
mods/linemanager_1/res/config/game_script/linemanager.lua(302): everyTickUpdate
mods/linemanager_1/res/config/game_script/linemanager.lua(632): ?


File name: mods/linemanager_1/res/config/game_script/linemanager.lua

Key: game/res/gameScript/linemanager.lua_update

Minidump: C:/Users/Admin/AppData/Roaming/Transport Fever 2/crash_dump/9d25f631-2cf1-41bd-9a1c-ab6c96f25940.dmp

Mod: "LineManager" (linemanager, 1) (consider removing this mod and contacting the mod author)

In file: ..\..\src\Lib\lua\State.cpp:592

In function: void __cdecl lua::State::Call(int,int)



Goodbye.
< >
Showing 1-4 of 4 comments
CARTOK  [developer] 15 Feb, 2022 @ 11:33am 
Thanks for this. I only noticed it now, but believe I already resolved this in v1.20 (and has since also uploaded v1.21). Please check that the issue no longer exists.
Last edited by CARTOK; 15 Feb, 2022 @ 11:34am
CARTOK  [developer] 16 Feb, 2022 @ 11:17am 
Please confirm whether you've been able to recreate this bug. Will close this topic if not.
GordonDry 16 Feb, 2022 @ 3:09pm 
Not yet. But I did not force it.
CARTOK  [developer] 21 Feb, 2022 @ 10:12am 
I can't find any further indication that this specific issue remains. I'll close this topic.
< >
Showing 1-4 of 4 comments
Per page: 1530 50