Init fails on 0.8.8 with many mods: TypeLoadException in DependencyResolver

Mod issue Modding

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

DIEGOS · 4 days ago

Issue description

The game failed to initialize. If the problem persists, please fill out a bug report.

Mafi.DependencyResolverException: Failed to instantiate PlaceResourceMod.PlaceResourceWindow+Controller. ---> Mafi.DependencyResolverException: TargetInvocationException thrown by constructor of 'PlaceResourceMod.PlaceResourceWindow+Controller'. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeLoadException: Could not resolve type with token 01000084 from typeref (expected class 'Mafi.Unity.InputControl.KbCategory' in assembly 'Mafi.Unity, Version=0.8.6.0, Culture=neutral, PublicKeyToken=null')
at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_gc_wbarrier_generic_nostore_internal(intptr)
at (wrapper write-barrier) System.Object.wbarrier_conc(intptr)
at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005]
--- End of inner exception stack trace ---
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a]
at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00086]
at System.Reflection.RuntimeConstructorInfo.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000]
at Mafi.DependencyResolver.instantiate (System.Type type, Mafi.Collections.Set1[T] pendingResolves, System.Int32 recursionDepth, System.Object[] args) [0x00284] --- End of inner exception stack trace --- at Mafi.DependencyResolver.instantiate (System.Type type, Mafi.Collections.Set1[T] pendingResolves, System.Int32 recursionDepth, System.Object[] args) [0x002b2]
at Mafi.DependencyResolver.EnsureResolved (System.Type implType, System.Type asType) [0x0008f]
--- End of inner exception stack trace ---
at Mafi.DependencyResolver.EnsureResolved (System.Type implType, System.Type asType) [0x000ae]
at Mafi.DependencyResolver.InstantiateAllAndLock () [0x00316]
at Mafi.Core.Game.GameBuilder+<initializeGame>d__5.MoveNext () [0x0007d]
at Mafi.Core.Game.GameBuilder+<BuildLoadedGameTimeSliced>d__1.MoveNext () [0x00650]
at Mafi.Unity.GamePlayScene+<loadGame>d__28.MoveNext () [0x002ca]
at Mafi.Unity.GamePlayScene+<Initialize>d__25.MoveNext () [0x000ad]
at Mafi.Unity.Main+<unloadAndStartNewScene>d__125.MoveNext () [0x00146]
at Mafi.Unity.Main.stepSceneInitialization () [0x00122]

Game version: 0.8.8
Loaded mods: (Trains expansion 1.0.0), (Supporter edition 1.1.0), (Kayser's Automatic Terrain Designations 0.9.5), (Bagger 288 0.9.1), (BeTTerLife: Roads and Signs 1.0.15), (BeTTerLife: Retaining Walls 1.2.3), (Quick Build Unlocked 1.0.3), (Concrete Retaining Cube 0.4.18), (Configurable Mechanical Power 1.0.0), (Extended Cargo Ships 3.0.0), (Advanced Farm & Food Optimiser 0.4.1), (MZ Mining Fleet & Free Logistics 0.16.0), (Infinite Groundwater 1.0.3), (Metallurgy+ Mod 0.5.0), (Mor Decor 1.0.2), (MultiLangLib 0.1.0), (Multi-Priority Balancers 0.2.1), (On-Demand Contracts 0.2.4), (机器超频MOD| Overclocking MOD 8.0.7), (Pier Wall Mod 1.0.2), (Pillar Spacing and Height Mod 1.0.1), (Place Virtual Resource 0.4.4), (Retaining Walls Never Die 1.0.1), (Smart Ship Unload 0.1.1a), (Truck Parking 1.3.3), (Wind turbines 0.1.11a), (世界矿山mod 2.0.1), (Mega Mining 0.8.3), (Settlement Anarchy 1.0.9)
Failed mods: none

Reproduction steps

The game failed to initialize. If the problem persists, please fill out a bug report.

Mafi.DependencyResolverException: Failed to instantiate PlaceResourceMod.PlaceResourceWindow+Controller. ---> Mafi.DependencyResolverException: TargetInvocationException thrown by constructor of 'PlaceResourceMod.PlaceResourceWindow+Controller'. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeLoadException: Could not resolve type with token 01000084 from typeref (expected class 'Mafi.Unity.InputControl.KbCategory' in assembly 'Mafi.Unity, Version=0.8.6.0, Culture=neutral, PublicKeyToken=null')
at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_gc_wbarrier_generic_nostore_internal(intptr)
at (wrapper write-barrier) System.Object.wbarrier_conc(intptr)
at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005]
--- End of inner exception stack trace ---
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001a]
at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00086]
at System.Reflection.RuntimeConstructorInfo.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000]
at Mafi.DependencyResolver.instantiate (System.Type type, Mafi.Collections.Set1[T] pendingResolves, System.Int32 recursionDepth, System.Object[] args) [0x00284] --- End of inner exception stack trace --- at Mafi.DependencyResolver.instantiate (System.Type type, Mafi.Collections.Set1[T] pendingResolves, System.Int32 recursionDepth, System.Object[] args) [0x002b2]
at Mafi.DependencyResolver.EnsureResolved (System.Type implType, System.Type asType) [0x0008f]
--- End of inner exception stack trace ---
at Mafi.DependencyResolver.EnsureResolved (System.Type implType, System.Type asType) [0x000ae]
at Mafi.DependencyResolver.InstantiateAllAndLock () [0x00316]
at Mafi.Core.Game.GameBuilder+<initializeGame>d__5.MoveNext () [0x0007d]
at Mafi.Core.Game.GameBuilder+<BuildLoadedGameTimeSliced>d__1.MoveNext () [0x00650]
at Mafi.Unity.GamePlayScene+<loadGame>d__28.MoveNext () [0x002ca]
at Mafi.Unity.GamePlayScene+<Initialize>d__25.MoveNext () [0x000ad]
at Mafi.Unity.Main+<unloadAndStartNewScene>d__125.MoveNext () [0x00146]
at Mafi.Unity.Main.stepSceneInitialization () [0x00122]

Game version: 0.8.8
Loaded mods: (Trains expansion 1.0.0), (Supporter edition 1.1.0), (Kayser's Automatic Terrain Designations 0.9.5), (Bagger 288 0.9.1), (BeTTerLife: Roads and Signs 1.0.15), (BeTTerLife: Retaining Walls 1.2.3), (Quick Build Unlocked 1.0.3), (Concrete Retaining Cube 0.4.18), (Configurable Mechanical Power 1.0.0), (Extended Cargo Ships 3.0.0), (Advanced Farm & Food Optimiser 0.4.1), (MZ Mining Fleet & Free Logistics 0.16.0), (Infinite Groundwater 1.0.3), (Metallurgy+ Mod 0.5.0), (Mor Decor 1.0.2), (MultiLangLib 0.1.0), (Multi-Priority Balancers 0.2.1), (On-Demand Contracts 0.2.4), (机器超频MOD| Overclocking MOD 8.0.7), (Pier Wall Mod 1.0.2), (Pillar Spacing and Height Mod 1.0.1), (Place Virtual Resource 0.4.4), (Retaining Walls Never Die 1.0.1), (Smart Ship Unload 0.1.1a), (Truck Parking 1.3.3), (Wind turbines 0.1.11a), (世界矿山mod 2.0.1), (Mega Mining 0.8.3), (Settlement Anarchy 1.0.9)
Failed mods: none

Game version and build number

v0.8.8 (b627)

Which branch of the game are you on?

Stable

Operating system

Windows

Originally posted in French
Le jeu n'a pas pu s'initialiser. Si le problème persiste, veuillez remplir un ra
### Issue description Le jeu n'a pas pu s'initialiser. Si le problème persiste, veuillez remplir un rapport de bug. Mafi.DependencyResolverException: Failed to instantiate PlaceResourceMod.PlaceResourceWindow+Controller. ---&gt; Mafi.DependencyResolverException: TargetInvocationException thrown by constructor of 'PlaceResourceMod.PlaceResourceWindow+Controller'. ---&gt; System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&gt; System.TypeLoadException: Could not resolve type with token 01000084 from typeref (expected class 'Mafi.Unity.InputControl.KbCategory' in assembly 'Mafi.Unity, Version=0.8.6.0, Culture=neutral, PublicKeyToken=null')\ at (wrapper managed-to-native) System.Object.\__icall_wrapper_mono_gc_wbarrier_generic_nostore_internal(intptr)\ at (wrapper write-barrier) System.Object.wbarrier_conc(intptr)\ at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object\[\],System.Exception&)\ at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object\[\] parameters, System.Boolean wrapExceptions) \[0x00005\]\ --- End of inner exception stack trace ---\ at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object\[\] parameters, System.Boolean wrapExceptions) \[0x0001a\]\ at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object\[\] parameters, System.Globalization.CultureInfo culture) \[0x00086\]\ at System.Reflection.RuntimeConstructorInfo.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object\[\] parameters, System.Globalization.CultureInfo culture) \[0x00000\]\ at System.Reflection.ConstructorInfo.Invoke (System.Object\[\] parameters) \[0x00000\]\ at Mafi.DependencyResolver.instantiate (System.Type type, Mafi.Collections.Set`1[T] pendingResolves, System.Int32 recursionDepth, System.Object[] args) [0x00284] --- End of inner exception stack trace --- at Mafi.DependencyResolver.instantiate (System.Type type, Mafi.Collections.Set`1\[T\] pendingResolves, System.Int32 recursionDepth, System.Object\[\] args) \[0x002b2\]\ at Mafi.DependencyResolver.EnsureResolved (System.Type implType, System.Type asType) \[0x0008f\]\ --- End of inner exception stack trace ---\ at Mafi.DependencyResolver.EnsureResolved (System.Type implType, System.Type asType) \[0x000ae\]\ at Mafi.DependencyResolver.InstantiateAllAndLock () \[0x00316\]\ at [Mafi.Core.Game](http://Mafi.Core.Game).GameBuilder+&lt;initializeGame&gt;d__5.MoveNext () \[0x0007d\]\ at [Mafi.Core.Game](http://Mafi.Core.Game).GameBuilder+&lt;BuildLoadedGameTimeSliced&gt;d__1.MoveNext () \[0x00650\]\ at Mafi.Unity.GamePlayScene+&lt;loadGame&gt;d__28.MoveNext () \[0x002ca\]\ at Mafi.Unity.GamePlayScene+&lt;Initialize&gt;d__25.MoveNext () \[0x000ad\]\ at Mafi.Unity.Main+&lt;unloadAndStartNewScene&gt;d__125.MoveNext () \[0x00146\]\ at Mafi.Unity.Main.stepSceneInitialization () \[0x00122\] Game version: 0.8.8\ Loaded mods: (Trains expansion 1.0.0), (Supporter edition 1.1.0), (Kayser's Automatic Terrain Designations 0.9.5), (Bagger 288 0.9.1), (BeTTerLife: Roads and Signs 1.0.15), (BeTTerLife: Retaining Walls 1.2.3), (Quick Build Unlocked 1.0.3), (Concrete Retaining Cube 0.4.18), (Configurable Mechanical Power 1.0.0), (Extended Cargo Ships 3.0.0), (Advanced Farm & Food Optimiser 0.4.1), (MZ Mining Fleet & Free Logistics 0.16.0), (Infinite Groundwater 1.0.3), (Metallurgy+ Mod 0.5.0), (Mor Decor 1.0.2), (MultiLangLib 0.1.0), (Multi-Priority Balancers 0.2.1), (On-Demand Contracts 0.2.4), (机器超频MOD| Overclocking MOD 8.0.7), (Pier Wall Mod 1.0.2), (Pillar Spacing and Height Mod 1.0.1), (Place Virtual Resource 0.4.4), (Retaining Walls Never Die 1.0.1), (Smart Ship Unload 0.1.1a), (Truck Parking 1.3.3), (Wind turbines 0.1.11a), (世界矿山mod 2.0.1), (Mega Mining 0.8.3), (Settlement Anarchy 1.0.9)\ Failed mods: none ### Reproduction steps Le jeu n'a pas pu s'initialiser. Si le problème persiste, veuillez remplir un rapport de bug. Mafi.DependencyResolverException: Failed to instantiate PlaceResourceMod.PlaceResourceWindow+Controller. ---&gt; Mafi.DependencyResolverException: TargetInvocationException thrown by constructor of 'PlaceResourceMod.PlaceResourceWindow+Controller'. ---&gt; System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---&gt; System.TypeLoadException: Could not resolve type with token 01000084 from typeref (expected class 'Mafi.Unity.InputControl.KbCategory' in assembly 'Mafi.Unity, Version=0.8.6.0, Culture=neutral, PublicKeyToken=null')\ at (wrapper managed-to-native) System.Object.\__icall_wrapper_mono_gc_wbarrier_generic_nostore_internal(intptr)\ at (wrapper write-barrier) System.Object.wbarrier_conc(intptr)\ at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object\[\],System.Exception&)\ at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object\[\] parameters, System.Boolean wrapExceptions) \[0x00005\]\ --- End of inner exception stack trace ---\ at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object\[\] parameters, System.Boolean wrapExceptions) \[0x0001a\]\ at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object\[\] parameters, System.Globalization.CultureInfo culture) \[0x00086\]\ at System.Reflection.RuntimeConstructorInfo.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object\[\] parameters, System.Globalization.CultureInfo culture) \[0x00000\]\ at System.Reflection.ConstructorInfo.Invoke (System.Object\[\] parameters) \[0x00000\]\ at Mafi.DependencyResolver.instantiate (System.Type type, Mafi.Collections.Set`1[T] pendingResolves, System.Int32 recursionDepth, System.Object[] args) [0x00284] --- End of inner exception stack trace --- at Mafi.DependencyResolver.instantiate (System.Type type, Mafi.Collections.Set`1\[T\] pendingResolves, System.Int32 recursionDepth, System.Object\[\] args) \[0x002b2\]\ at Mafi.DependencyResolver.EnsureResolved (System.Type implType, System.Type asType) \[0x0008f\]\ --- End of inner exception stack trace ---\ at Mafi.DependencyResolver.EnsureResolved (System.Type implType, System.Type asType) \[0x000ae\]\ at Mafi.DependencyResolver.InstantiateAllAndLock () \[0x00316\]\ at [Mafi.Core.Game](http://Mafi.Core.Game).GameBuilder+&lt;initializeGame&gt;d__5.MoveNext () \[0x0007d\]\ at [Mafi.Core.Game](http://Mafi.Core.Game).GameBuilder+&lt;BuildLoadedGameTimeSliced&gt;d__1.MoveNext () \[0x00650\]\ at Mafi.Unity.GamePlayScene+&lt;loadGame&gt;d__28.MoveNext () \[0x002ca\]\ at Mafi.Unity.GamePlayScene+&lt;Initialize&gt;d__25.MoveNext () \[0x000ad\]\ at Mafi.Unity.Main+&lt;unloadAndStartNewScene&gt;d__125.MoveNext () \[0x00146\]\ at Mafi.Unity.Main.stepSceneInitialization () \[0x00122\] Game version: 0.8.8\ Loaded mods: (Trains expansion 1.0.0), (Supporter edition 1.1.0), (Kayser's Automatic Terrain Designations 0.9.5), (Bagger 288 0.9.1), (BeTTerLife: Roads and Signs 1.0.15), (BeTTerLife: Retaining Walls 1.2.3), (Quick Build Unlocked 1.0.3), (Concrete Retaining Cube 0.4.18), (Configurable Mechanical Power 1.0.0), (Extended Cargo Ships 3.0.0), (Advanced Farm & Food Optimiser 0.4.1), (MZ Mining Fleet & Free Logistics 0.16.0), (Infinite Groundwater 1.0.3), (Metallurgy+ Mod 0.5.0), (Mor Decor 1.0.2), (MultiLangLib 0.1.0), (Multi-Priority Balancers 0.2.1), (On-Demand Contracts 0.2.4), (机器超频MOD| Overclocking MOD 8.0.7), (Pier Wall Mod 1.0.2), (Pillar Spacing and Height Mod 1.0.1), (Place Virtual Resource 0.4.4), (Retaining Walls Never Die 1.0.1), (Smart Ship Unload 0.1.1a), (Truck Parking 1.3.3), (Wind turbines 0.1.11a), (世界矿山mod 2.0.1), (Mega Mining 0.8.3), (Settlement Anarchy 1.0.9)\ Failed mods: none ### Game version and build number v0.8.8 (b627) ### Which branch of the game are you on? Stable ### Operating system Windows
Captain Matt Captain Matt · 3 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.

21 Showing 1–2 of 2