Transport Fever 2

Transport Fever 2

Demand Overhaul Mod
Zookes 7 Nov, 2024 @ 6:27pm
Crash: Specific Vehicle Mod [TGR] Ikarus 260 and 280
Here is a very strange, unintuitive bug related maybe to how cargo types are added to mod vehicles...

This mod "[TGR] Ikarus 260 and 280" is somehow specifically incompatible with Demand Overhaul and using both together causes a crash in any load order.

I call this strange because I have hundreds of other mods adding cargo vehicles, and none of them produce this crash with Demand Overhaul.

From error log:
ModelRep: 8851.89 ms __CRASHDB_DUMP__ 08e3361e-f3e9-4b9b-9780-1ace69d7223e Exception during init Exception type: Lua exception This error is usually caused by modding. Some game resources contain incorrect data. Details: Error message: error: D:/SteamLibrary/steamapps/workshop/content/1066780/2807170957/res/scripts/upgradeindustry.lua:8: attempt to index field 'description' (a nil value) stack traceback: =[C](-1): __index @D:/SteamLibrary/steamapps/workshop/content/1066780/2807170957/res/scripts/upgradeindustry.lua(8): v @res/scripts/mod.lua(102): ? File name: D:/SteamLibrary/steamapps/workshop/content/1066780/2905796547/res/construction/asset/bus/ikarus_260.con Minidump: C:/Program Files (x86)/Steam/userdata/909004461/1066780/local/crash_dump/08e3361e-f3e9-4b9b-9780-1ace69d7223e.dmp Mod: "[TGR] Ikarus 260 and 280" (*2905796547, 1) (consider removing this mod and contacting the mod author) In file: urban_games/train_fever/src/Lib/lua/State.cpp:745 In function: void __cdecl lua::State::Call(int,int) __CRASHDB_CRASH__ struct lua::LuaException: urban_games/train_fever/src/Lib/lua/State.cpp:745: void __cdecl lua::State::Call(int,int): error: *2807170957_1::res/scripts/upgradeindustry.lua:8: attempt to index field 'description' (a nil value) stack traceback: =[C](-1): __index @*2807170957_1::res/scripts/upgradeindustry.lua(8): v @res/scripts/mod.lua(102): ?

Not begging for fix. Seems like the other mod has malformed or unexpected entries somehow? Maybe possible to handle it instead of throwing exceptions? Maybe cannot be fixed? Oh well.

Only posting this so it can be known in case of someone else wondering maybe why a crash occurs using these very specific mods together.
Last edited by Zookes; 7 Nov, 2024 @ 6:37pm
< >
Showing 1-1 of 1 comments
GordonDry 8 Nov, 2024 @ 7:04am 
Yes, every script mod needs failsafe checks for "true" for any level inside the variable structure.
The log says there is no field "description" inside the vehicle asset *.con (could also be an *.mdl) which is unusual but only triggers a crash if a script mod assumes the field is there.
Last edited by GordonDry; 8 Nov, 2024 @ 7:06am
< >
Showing 1-1 of 1 comments
Per page: 1530 50