Transport Fever 2

Transport Fever 2

Yeol's Senseless Industries
GordonDry 28 sierpnia 2020 o 14:30
Solved: New issue out of nowhere: industryutil.lua:127: assertion failed!
Suddenly the game stopped and showed this popup window:
https://i.imgur.com/aTaS9MF.png

This is the first time I got this issue - my actual playthrough just reached in 1924 with 1/4 speed.

The coal mine seems to be the culprit - but why?
It upgraded and downgraded several times over the ingame years without issues.
And the other mods mentioned have been in the game from day one.
The last mod updated was yours.

Full log and dump:
https://www.dropbox.com/s/8u35qbelerkba9c/2020-08-28-1%20tpf2%20crash%20log%20and%20dump.7z?dl=1


This is the end of stdout.txt:

Exception type: Lua exception

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

Details:

Error message: error: res/scripts/industryutil.lua:127: assertion failed!
stack traceback:
=[C](-1): ?
=[C](-1): assert
@res/scripts/industryutil.lua(127): originalUpdateFn
@mods/yeol_s_senseless_industries_2/res/scripts/senselessCB.lua(77): originalUpdateFn
@mods/more_industry_levels_2/res/scripts/more_industry_levels/scripts.lua(58): updateFn
@mods/spacecossax_industryworkers_1/mod.lua(7): ?
@res/config/base_config.lua(41): ?


File name: mods/yeol_s_senseless_industries_2/res/construction/industry/coal_mine.con

Key: game/config/ConstructWithModules

Minidump: C:/Users/Admin/AppData/Roaming/Transport Fever 2/crash_dump/9a3bba22-8f8f-48fe-8b2b-19faa98eea73.dmp

Mod: "Yeol's Senseless Industries" (consider removing this mod and contacting the mod author)

In file: c:\build\tpf2_gog\src\lib\lua\state.cpp:586

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


__CRASHDB_CRASH__ struct lua::LuaException: c:\build\tpf2_gog\src\lib\lua\state.cpp:586: void __cdecl lua::State::Call(int,int): error: res/scripts/industryutil.lua:127: assertion failed!
stack traceback:
=[C](-1): ?
=[C](-1): assert
@res/scripts/industryutil.lua(127): originalUpdateFn
@mods/yeol_s_senseless_industries_2/res/scripts/senselessCB.lua(77): originalUpdateFn
@mods/more_industry_levels_2/res/scripts/more_industry_levels/scripts.lua(58): updateFn
@mods/spacecossax_industryworkers_1/mod.lua(7): ?
@res/config/base_config.lua(41): ?

commonapi2.init 20200728
commonapi2.ui: Loading commonapi2.ui interface
commonapi.init: loadTranslationSystem
Exception type: Lua exception

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

Details:

Error message: error: res/scripts/industryutil.lua:127: assertion failed!
stack traceback:
=[C](-1): ?
=[C](-1): assert
@res/scripts/industryutil.lua(127): originalUpdateFn
@mods/yeol_s_senseless_industries_2/res/scripts/senselessCB.lua(77): originalUpdateFn
@mods/more_industry_levels_2/res/scripts/more_industry_levels/scripts.lua(58): updateFn
@mods/spacecossax_industryworkers_1/mod.lua(7): ?
@res/config/base_config.lua(41): ?


File name: mods/yeol_s_senseless_industries_2/res/construction/industry/coal_mine.con

Key: game/config/ConstructWithModules

Minidump: C:/Users/Admin/AppData/Roaming/Transport Fever 2/crash_dump/9a3bba22-8f8f-48fe-8b2b-19faa98eea73.dmp

Mod: "Yeol's Senseless Industries" (consider removing this mod and contacting the mod author)

In file: c:\build\tpf2_gog\src\lib\lua\state.cpp:586

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



Goodbye.



========================================
Shutdown at Fri Aug 28 23:20:04 2020
========================================
Ostatnio edytowany przez: GordonDry; 25 kwietnia 2022 o 8:51
< >
Wyświetlanie 1-10 z 10 komentarzy
GordonDry 29 sierpnia 2020 o 10:50 
I loaded the latest autosave from before the crash and examined the coal mine.
Nothing.
No upgrade, no downgrade, even no train arriving at or leaving the station attached to it.
Just crashing after a few minutes of watching.
Same message, same log content.
GordonDry 29 sierpnia 2020 o 16:11 
Removing any or both of the other two mentioned mods does not help here.
GordonDry 1 września 2020 o 7:43 
Do you have a clue yet? Or could it be a game core issue?
I remember I was reading something on Reddit about this possibility regarding "assertion failed" but I did not find the link again.
GordonDry 1 września 2020 o 8:26 
I stumbled upon something in that new issue:
> Error message: error: res/scripts/init.lua:69: creating globals by assignment is not allowed (variable was platformCentre)
> Did you forget to add 'local' before your variable?
> stack traceback:
> =[C](-1): ?
etc.

So this could be related to CommonAPI ...

https://www.transportfever.net/index.php?thread/15042-commonapi2-entwicklungsdiskussion-fragen-antworten/&postID=318624#post318624
GordonDry 1 września 2020 o 8:58 
After fixing the side issue - see https://www.transportfever.net/filebase/index.php?entry/5601-configurable-freight-station/#comment42288/response39242 -
I see a new and clear picture:
Using the bulk upgrader it crashes as soon as the coal_mine.con is reached.
See the end of stdout.txt:
https://www.dropbox.com/s/mmgfhcc4otw0cn2/2020-09-01-2%20tpf2%20crash%20log%20and%20dump.7z?dl=1
GordonDry 1 września 2020 o 9:04 
Just as a reminder:
Initially this issue occured without the bulk upgrader even active - this is just a new trigger to it that hits it from a different direction.
Yeol  [producent] 4 września 2020 o 0:14 
Sorry for the late reply. I'm enjoying another game for the moment, but I'll concentrate again on this game soon. Anyway, I'll check the coal mine and coal cargo to look for the cause of this problem. Many thanks for the debugging and the hinting of in which direction to search.
GordonDry 4 września 2020 o 7:18 
Which game? XD
Yeol  [producent] 7 września 2020 o 2:46 
I'm writing a module for Neverwinter Nights, just for the fun of writing a small adventure and scripting it all. I never done it before, but it's a long time that I had to urge to try it once. So, I dove into it. ;)
< >
Wyświetlanie 1-10 z 10 komentarzy
Na stronę: 1530 50