Issue description
The error message is as follows:
Reproduction steps
Game initialization failed. If this problem persists, please send us a detailed report.
Mafi.DependencyResolverException: Failed to instantiate Mafi.Unity.Vehicles.ExcavatorMbFactory. ---> Mafi.DependencyResolverException: Failed to instantiate 'Mafi.Unity.Vehicles.ExcavatorMbFactory'. ---> Mafi.DependencyResolverException: TargetInvocationException thrown by constructor of 'Mafi.Unity.Terrain.LooseProductMaterialManager'. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Kernel 'AvgTextureColor' not found.
at (wrapper managed-to-native) UnityEngine.ComputeShader.FindKernel_Injected(intptr,UnityEngine.Bindings.ManagedSpanWrapper&)
at UnityEngine.ComputeShader.FindKernel (System.String name) [0x00039]
at Mafi.Unity.Utils.TextureAverageColorCalculator..ctor (Mafi.Unity.AssetsDb assetsDb) [0x0002c]
at Mafi.Unity.Terrain.LooseProductMaterialManager..ctor (Mafi.Core.Products.LooseProductsSlimIdManager slimIdManager, Mafi.Unity.AssetsDb assetsDb) [0x000ff]
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.resolveDependency (System.Type dependencyType, System.Boolean throwOnError, Mafi.Collections.Set1[T] pendingResolves, System.Int32 recursionDepth) [0x000f5] at Mafi.DependencyResolver.instantiate (System.Type type, Mafi.Collections.Set1[T] pendingResolves, System.Int32 recursionDepth, System.Object[] args) [0x0023b]
--- 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) [0x0025f]
at Mafi.DependencyResolver.EnsureResolved (System.Type implType, System.Type asType) [0x00091]
--- End of inner exception stack trace ---
at Mafi.DependencyResolver.EnsureResolved (System.Type implType, System.Type asType) [0x000b0]
at Mafi.DependencyResolver.InstantiateAllAndLock () [0x00316]
at Mafi.Core.Game.GameBuilder+<initializeGame>d__4.MoveNext () [0x0007d]
at Mafi.Core.Game.GameBuilder+<BuildLoadedGameTimeSliced>d__1.MoveNext () [0x0058e]
at Mafi.Unity.GamePlayScene+<loadGame>d__28.MoveNext () [0x0029d]
at Mafi.Unity.GamePlayScene+<Initialize>d__25.MoveNext () [0x000ad]
at Mafi.Unity.Main+<unloadAndStartNewScene>d__108.MoveNext () [0x0013b]
at Mafi.Unity.Main.stepSceneInitialization () [0x000fd]
Game version: 0.8.1
Loaded mods: (Trains expansion 1.0.0)
Failed mods: none
Game version and build number
v0.8.1 b549
Operating system
Windows