Transport Fever 2

Transport Fever 2

Real Industrial Chains 1.6
YT8HmH7  [developer] 26 Apr @ 12:44pm
Version 1.6
1.6
Fixed occasional crash on industry closure

1.5
Big update!

I spent two days debugging the issue with random cargo being missing on each save load
• It wasn't language or any other string dependent
• The only thing that was changing each load is the cargo list enumeration order, which led to loadConfigs being in a different order each time as well.
• Somehow, the game retains knowledge of cargo type loaded in the vehicle, but fails to put it into a correct load config, trying to use the old index instead.
• It does, however, check if the cargo type matches the load config, which it doesn't, resulting in a vehicle dropping its cargo instead of reassigning the index.

CARGO INJECTOR 3.0
• Near full rewrite of the previous version
• Now works with complex load configs containing multiple cargo entries (never seen that in the wild though)
• Fully stable processing
•• The order of existing load configs is preserved
•• New injections follow the vehicle cargo order, so it's stable unless vehicle model is altered
•• No more variation between savegame loads!
• It is now possible to overwrite cargo injections from mods loaded before RIC
•• Load configs and cargo entries are overridden in-place, preventing any cargo from disappearing
•• The sole purpose of this override is to fix cargo models poorly handled by other mods

Even better performance!
• Proper update of industries (no streets generated on top of old streets)
• Heavily refactored and optimized main loop scripts, making scan and update process invisiby light

Removed spaces from lang dictionary keys
Updated translations
Multitude of smaller improvements
Last edited by YT8HmH7; 1 May @ 6:53pm
< >
Showing 1-9 of 9 comments
Maffc 1 May @ 12:25am 
Since i received the updated version yesterday my game crashes after about 10-15 mins into a save game
YT8HmH7  [developer] 1 May @ 12:33am 
What is the crash message exactly? (ideally enable debug in settings before reproducing the crash)
Maffc 1 May @ 1:36am 
Originally posted by YT8HmH7:
What is the crash message exactly? (ideally enable debug in settings before reproducing the crash)
I will enable debug and recreate
Maffc 1 May @ 2:02am 
Originally posted by YT8HmH7:
What is the crash message exactly? (ideally enable debug in settings before reproducing the crash)

Thread did not respond to ping. Possible hang detected!
Exception type: Lua exception

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

Details:

Error message: error: [string "D:/SteamLibrary/steamapps/workshop/content/1066780/2987815473/res/config/game_script/Real_Industrial_Chains.lua"]:48: internal error
> Exception type: Lua exception
>
> This error is usually caused by modding. Some game resources contain incorrect data.
>
> Details:
>
> Error message: invalid entity id: -1
>
> Minidump: C:/Program Files (x86)/Steam/userdata/86994742/1066780/local/crash_dump/dea1a3f4-0ee3-4cf9-ba30-ff61e8d7305d.dmp
>
> In file: urban_games/train_fever/src/Game/scripting/script_util.h:35
>
> In function: class ecs::Entity __cdecl scripting::ReadNonNegativeEntity(const class lua::State &,int)

stack traceback:
=[C](-1): ?
=[C](-1): getEntity
D:/SteamLibrary/steamapps/workshop/content/1066780/2987815473/res/config/game_script/Real_Industrial_Chains.lua(48): slowScanExec
D:/SteamLibrary/steamapps/workshop/content/1066780/2987815473/res/config/game_script/Real_Industrial_Chains.lua(122): ?


File name: D:/SteamLibrary/steamapps/workshop/content/1066780/2987815473/res/config/game_script/Real_Industrial_Chains.lua

Key: game/res/gameScript/Real_Industrial_Chains.lua_update

Minidump: C:/Program Files (x86)/Steam/userdata/86994742/1066780/local/crash_dump/09b0ab63-bc43-45d8-9056-965926b291b8.dmp

UI Component Hierarchy:
type: class UI::CGameUI, id = "", name = "CGameUI", styleClasses = {"top-gamebar-visible"}
type: class UI::CMenuUI, id = "", name = "MenuUI", styleClasses = {}
type: class UI::CComponent, id = "", name = "wrap", styleClasses = {"mods-enabled", "platform-desktop", "ui-classic", "input-mouse", "gamepad-type-xbox"}


Mod: "Real Industrial Chains" (*2987815473, 1) (consider removing this mod and contacting the mod author)

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

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


__CRASHDB_CRASH__ struct lua::LuaException: urban_games/train_fever/src/Lib/lua/State.cpp:753: void __cdecl lua::State::Call(int,int): error: [string "*2987815473_1::res/config/game_script/Real_Industrial_Chains.lua"]:48: internal error
> Exception type: Lua exception
>
> This error is usually caused by modding. Some game resources contain incorrect data.
>
> Details:
>
> Error message: invalid entity id: -1
>
> Minidump: C:/Program Files (x86)/Steam/userdata/86994742/1066780/local/crash_dump/dea1a3f4-0ee3-4cf9-ba30-ff61e8d7305d.dmp
>
> In file: urban_games/train_fever/src/Game/scripting/script_util.h:35
>
> In function: class ecs::Entity __cdecl scripting::ReadNonNegativeEntity(const class lua::State &,int)

stack traceback:
=[C](-1): ?
=[C](-1): getEntity
*2987815473_1::res/config/game_script/Real_Industrial_Chains.lua(48): slowScanExec
*2987815473_1::res/config/game_script/Real_Industrial_Chains.lua(122): ?
YT8HmH7  [developer] 1 May @ 3:08am 
I see, that's because of dynamic industries (they close over time). I'll release a fix soon.
Maffc 1 May @ 3:37am 
Originally posted by YT8HmH7:
I see, that's because of dynamic industries (they close over time). I'll release a fix soon.
Brilliant - Thank you :)
YT8HmH7  [developer] 1 May @ 3:50am 
For now you can just set closure frequency to "Disabled" in your save basic settings
YT8HmH7  [developer] 1 May @ 6:53pm 
1.6
Fixed occasional crash on industry closure
Maffc 1 May @ 10:55pm 
Originally posted by YT8HmH7:
1.6
Fixed occasional crash on industry closure
Great stuff - thanks for sorting so quickly
< >
Showing 1-9 of 9 comments
Per page: 1530 50