Transport Fever 2

Transport Fever 2

BR Class 370 APT+ (Expansion Pack)
jm764 9 Jun, 2024 @ 6:21pm
Error with "ultimate cargo and passenger capacities mod" enabled
Found an interesting error in combining this mod with the "ultimate cargo and passenger capacities mod" from gorter127:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2200530386

it produces the following with this mod specificaly, the base APT mod and APT-E mods work fine with it so just need to narrow down where in this mod it is, then I'll post a solution to fix it when I can if possible.


__CRASHDB_DUMP__ 6d3e8dfb-23a3-4bde-81c1-591c79277df2
ModelRep: 29514.4 ms
Exception during init
Exception type: Lua exception

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

Details:

Error message: error: C:/Program Files (x86)/Steam/steamapps/workshop/content/1066780/2200530386/mod.lua:208: bad argument #1 to 'ipairs' (table expected, got nil)
stack traceback:
=[C](-1): ?
=[C](-1): ipairs
@C:/Program Files (x86)/Steam/steamapps/workshop/content/1066780/2200530386/mod.lua(208): v
@res/scripts/mod.lua(102): origApplyModifiers
@C:/Program Files (x86)/Steam/steamapps/workshop/content/1066780/2104351233/res/scripts/eatglobal/mod.lua(163): ?


File name: C:/Program Files (x86)/Steam/steamapps/workshop/content/1066780/2848518444/res/models/model/vehicle/train/drd_apt_power_1.mdl

Minidump: C:/Program Files (x86)/Steam/userdata/144826119/1066780/local/crash_dump/8b2606dc-cbca-4fb5-8944-ae46cd942f65.dmp

Mod: "BR Class 370 APT+ (Expansion Pack)" (*2848518444, 1) (consider removing this mod and contacting the mod author)

In file: urban_games/train_fever/src/Lib/lua/State.cpp:646

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