ReflectionTypeLoadException in GameBuilder.TryInstantiateConfigs on load

Mod issue Saves & Loading

A game update can break mods until their authors rebuild them. Mods not working explains how to keep playing meanwhile.

Roamdum0882 · 5 days ago

Issue description

Can someone help me

Reproduction steps

---> ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
VTable setup of type IndustrialExpansion.Helper.CargoShipDryDock.CargoShipDryDockManager failed
at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
at System.Reflection.RuntimeAssembly.GetExportedTypes () [0x00000]
at Mafi.Core.Game.GameBuilder.TryInstantiateConfigs[T] (System.Collections.Generic.IEnumerable1[T] assembliesToScan, System.Collections.Generic.IEnumerable1[T] existingConfigs, System.Boolean throwOnError, Mafi.Collections.Lyst1[System.ValueTuple2[System.Reflection.Assembly,System.String]]& failedAssemblies) [0x00187]
at Mafi.Core.Game.GameBuilder.InstantiateConfigsOrThrow[T] (System.Collections.Generic.IEnumerable1[T] assembliesToScan, System.Collections.Generic.IEnumerable1[T] existingConfigs) [0x00000]
at Mafi.Core.Game.GameBuilder+<BuildLoadedGameTimeSliced>d__1.MoveNext () [0x001d2]
at Mafi.Unity.GamePlayScene+<loadGame>d__42.MoveNext () [0x00304]
at Mafi.Unity.GamePlayScene+<Initialize>d__39.MoveNext () [0x000ad]
at Mafi.Unity.Main+<unloadAndStartNewScene>d__126.MoveNext () [0x00146]
at Mafi.Unity.Main.stepSceneInitialization () [0x00122]

Game version and build number

v0.8.8c (b632)

Which branch of the game are you on?

Stable

Operating system

Windows

Captain Matt Captain Matt · 5 days ago

Thanks for the report! This is caused by a mod, so please let the mod's author know. If it started after a game update, you can keep playing on the previous game version (Steam legacy branch) until the mod is updated, or continue without the mod (recovery save). See the Mods not working guide for how.

Edited 5 days ago
Captain Matt Captain Matt · 5 days ago

Can you also post the list of mods installed? If you click the "copy" button it should give you the full error message with more context, then you can paste it here.

Also, Industrial Expansion 1.0.5 is known to not be compatible with 4.3

Roamdum0882 · 6 hours ago

The game could not be started. If the problem persists, please create a bug report.

---> ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
VTable setup of type IndustrialExpansion.Helper.CargoShipDryDock.CargoShipDryDockManager failed
at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
at System.Reflection.RuntimeAssembly.GetExportedTypes () [0x00000]
at Mafi.Core.Game.GameBuilder.TryInstantiateConfigs[T] (System.Collections.Generic.IEnumerable1[T] assembliesToScan, System.Collections.Generic.IEnumerable1[T] existingConfigs, System.Boolean throwOnError, Mafi.Collections.Lyst1[System.ValueTuple2[System.Reflection.Assembly,System.String]]& failedAssemblies) [0x00187]
at Mafi.Core.Game.GameBuilder.InstantiateConfigsOrThrow[T] (System.Collections.Generic.IEnumerable1[T] assembliesToScan, System.Collections.Generic.IEnumerable1[T] existingConfigs) [0x00000]
at Mafi.Core.Game.GameBuilder+<BuildLoadedGameTimeSliced>d__1.MoveNext () [0x001d2]
at Mafi.Unity.GamePlayScene+<loadGame>d__42.MoveNext () [0x00304]
at Mafi.Unity.GamePlayScene+<Initialize>d__39.MoveNext () [0x000ad]
at Mafi.Unity.Main+<unloadAndStartNewScene>d__126.MoveNext () [0x00146]
at Mafi.Unity.Main.stepSceneInitialization () [0x00122]

Game version: 0.8.8d (b633, s345)
Save made with: 0.8.7d (s333)
Save made with mods: (AutoTerrainDesignations 0.9.1), (Bagger288Mod 0.7.8), (IndustrialExpansion 1.0.5), (recipes-plus-plus 1.3.2), (storage-plus-plus 1.3.5)
Loaded mods: (Bagger 288 0.9.4), (Industrial Expansion 1.0.5), (Recipes++ 1.3.6), (Kayser's Automatic Terrain Designations 0.10.0), (Storage++ 1.4.0)
Failed mods: none

Hi, all the mods are updated now, but unfortunately I still can't load it.

I was able to play with the mods above for 2 weeks.

Is there anything else I can do here?

Originally posted in German
Das Spiel konnte nicht gestartet werden. Wenn das Problem weiterhin besteht, erstelle bitte einen Fehlerbericht. \---&gt; ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.\ VTable setup of type IndustrialExpansion.Helper.CargoShipDryDock.CargoShipDryDockManager failed\ at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)\ at System.Reflection.RuntimeAssembly.GetExportedTypes () \[0x00000\]\ at [Mafi.Core.Game](http://Mafi.Core.Game).GameBuilder.TryInstantiateConfigs\[T\] (System.Collections.Generic.IEnumerable`1[T] assembliesToScan, System.Collections.Generic.IEnumerable`1\[T\] existingConfigs, System.Boolean throwOnError, Mafi.Collections.Lyst`1[System.ValueTuple`2\[System.Reflection.Assembly,System.String\]\]& failedAssemblies) \[0x00187\]\ at [Mafi.Core.Game](http://Mafi.Core.Game).GameBuilder.InstantiateConfigsOrThrow\[T\] (System.Collections.Generic.IEnumerable`1[T] assembliesToScan, System.Collections.Generic.IEnumerable`1\[T\] existingConfigs) \[0x00000\]\ at [Mafi.Core.Game](http://Mafi.Core.Game).GameBuilder+&lt;BuildLoadedGameTimeSliced&gt;d__1.MoveNext () \[0x001d2\]\ at Mafi.Unity.GamePlayScene+&lt;loadGame&gt;d__42.MoveNext () \[0x00304\]\ at Mafi.Unity.GamePlayScene+&lt;Initialize&gt;d__39.MoveNext () \[0x000ad\]\ at Mafi.Unity.Main+&lt;unloadAndStartNewScene&gt;d__126.MoveNext () \[0x00146\]\ at Mafi.Unity.Main.stepSceneInitialization () \[0x00122\] Game version: 0.8.8d (b633, s345)\ Save made with: 0.8.7d (s333)\ Save made with mods: (AutoTerrainDesignations 0.9.1), (Bagger288Mod 0.7.8), (IndustrialExpansion 1.0.5), (recipes-plus-plus 1.3.2), (storage-plus-plus 1.3.5)\ Loaded mods: (Bagger 288 0.9.4), (Industrial Expansion 1.0.5), (Recipes++ 1.3.6), (Kayser's Automatic Terrain Designations 0.10.0), (Storage++ 1.4.0)\ Failed mods: none Hallo, jetzt sind alle mods aktualisiert, aber leider kann ich es immer noch nicht laden. Ich habe mit den oben mods 2 Wochen lang spielen können. Kann ich hier noch was machen?
24 Showing 1–4 of 4