[FIXED] Can't start a new game with both escavators and trucks mods installed

7 days ago

I get the following error when starting a new map. I don't know if it's the correct explanation but it seems that the fact of the configs are exact the same for both mods is generating some kind of conflict.

W 00:56:12,833 S------ ~Mai: Dependency implementation 'Mafi.Core.Mods.ModJsonConfig' is already registered for type 'Mafi.Core.Mods.ModJsonConfig'.

at Mafi.DependencyResolverBuilder.registerDependency (System.Type implementationType, System.Type dependencyType, System.Boolean ignoreCtors) [0x00000]

at Mafi.DependencyResolverBuilder.registerDependencyInstance[T] (T implementation, System.Type dependencyType, System.Boolean dispose) [0x00000]

at Mafi.DependencyResolverBuilder+DependencyInstanceRegistrar`1[T].AsSelf () [0x00000]

at Mafi.Core.Game.GameBuilder.RegisterModDependenciesOrThrow (Mafi.Collections.ImmutableCollections.ImmutableArra1[T] modsData, Mafi.Collections.ImmutableCollections.ImmutableArray1[T] mods, System.Collections.Generic.IEnumerabl1[T] assemblies, Mafi.Core.Prototypes.ProtosDb protosDb, Mafi.Collections.ImmutableCollections.ImmutableArray1[T] configs, Mafi.Core.IFileSystemHelper fsHelper, System.Boolean gameWasLoaded) [0x00000]

at Mafi.Core.Game.GameBuilder+<BuildNewGameTimeSliced>d__0.MoveNext () [0x00000]

at Mafi.Unity.GamePlayScene+<buildNewGame>d__27.MoveNext () [0x00000]

at Mafi.Unity.GamePlayScene+<Initialize>d__25.MoveNext () [0x00000]

at Mafi.Unity.Main+<unloadAndStartNewScene>d__108.MoveNext () [0x00000]

at Mafi.Unity.Main.stepSceneInitialization () [0x00000]

at Mafi.Unity.Main.Update () [0x00000]

W 00:56:12,833 S------ ~Mai: Dependency implementation 'Mafi.Core.Mods.ModJsonConfig' is already registered for type 'Mafi.Core.Game.IConfig'.

at Mafi.DependencyResolverBuilder.registerDependency (System.Type implementationType, System.Type dependencyType, System.Boolean ignoreCtors) [0x00000]

at Mafi.DependencyResolverBuilder.registerDependencyInstance[T] (T implementation, System.Type dependencyType, System.Boolean dispose) [0x00000]

at Mafi.DependencyResolverBuilder+DependencyInstanceRegistrar`1[T].AsAllInterfaces () [0x00000]

at Mafi.Core.Game.GameBuilder.RegisterModDependenciesOrThrow (Mafi.Collections.ImmutableCollections.ImmutableArra1[T] modsData, Mafi.Collections.ImmutableCollections.ImmutableArray1[T] mods, System.Collections.Generic.IEnumerabl1[T] assemblies, Mafi.Core.Prototypes.ProtosDb protosDb, Mafi.Collections.ImmutableCollections.ImmutableArray1[T] configs, Mafi.Core.IFileSystemHelper fsHelper, System.Boolean gameWasLoaded) [0x00000]

at Mafi.Core.Game.GameBuilder+<BuildNewGameTimeSliced>d__0.MoveNext () [0x00000]

at Mafi.Unity.GamePlayScene+<buildNewGame>d__27.MoveNext () [0x00000]

at Mafi.Unity.GamePlayScene+<Initialize>d__25.MoveNext () [0x00000]

at Mafi.Unity.Main+<unloadAndStartNewScene>d__108.MoveNext () [0x00000]

at Mafi.Unity.Main.stepSceneInitialization () [0x00000]

at Mafi.Unity.Main.Update () [0x00000]

W 00:56:12,897 S------ ~Mai: Dependency implementation 'Mafi.Core.Mods.ModJsonConfig' is already registered for type 'Mafi.Core.Mods.ModJsonConfig'.

at Mafi.DependencyResolverBuilder.registerDependency (System.Type implementationType, System.Type dependencyType, System.Boolean ignoreCtors) [0x00000]

at Mafi.DependencyResolverBuilder.registerDependencyInstance[T] (T implementation, System.Type dependencyType, System.Boolean dispose) [0x00000]

at Mafi.DependencyResolverBuilder+DependencyInstanceRegistrar`1[T].AsSelf () [0x00000]

at Mafi.Core.Game.SpecialSerializerFactories.CreateFromAssemblies (Mafi.Collections.Se1[T] assemblies, Mafi.Core.Prototypes.ProtosDb protosDb, Mafi.Collections.ImmutableCollections.ImmutableArray1[T] configs) [0x00000]

at Mafi.Core.Game.GameBuilder+<BuildNewGameTimeSliced>d__0.MoveNext () [0x00000]

at Mafi.Unity.GamePlayScene+<buildNewGame>d__27.MoveNext () [0x00000]

at Mafi.Unity.GamePlayScene+<Initialize>d__25.MoveNext () [0x00000]

at Mafi.Unity.Main+<unloadAndStartNewScene>d__108.MoveNext () [0x00000]

at Mafi.Unity.Main.stepSceneInitialization () [0x00000]

at Mafi.Unity.Main.Update () [0x00000]

W 00:56:12,898 S------ ~Mai: Dependency implementation 'Mafi.Core.Mods.ModJsonConfig' is already registered for type 'Mafi.Core.Game.IConfig'.

at Mafi.DependencyResolverBuilder.registerDependency (System.Type implementationType, System.Type dependencyType, System.Boolean ignoreCtors) [0x00000]

at Mafi.DependencyResolverBuilder.registerDependencyInstance[T] (T implementation, System.Type dependencyType, System.Boolean dispose) [0x00000]

at Mafi.DependencyResolverBuilder+DependencyInstanceRegistrar`1[T].As[U] () [0x00000]

at Mafi.Core.Game.GameBuilder.createWorldRegionMap (Mafi.Collections.ImmutableCollections.ImmutableArray`1[T] configs, Mafi.Core.Prototypes.ProtosDb protosDb, Mafi.Core.RandomProvider randomProvider) [0x00000]

at Mafi.Core.Game.GameBuilder+<BuildNewGameTimeSliced>d__0.MoveNext () [0x00000]

at Mafi.Unity.GamePlayScene+<buildNewGame>d__27.MoveNext () [0x00000]

at Mafi.Unity.Game

7 days ago

Thanks for the report and testing.

I released version 0.1.4 of All Excavators Bucket Capacity x5.

Changes:

  • Added support for adding the mod to existing saved games.
  • Added support for removing the mod from existing saved games.
  • Restored/kept the multiplier selection through the mod config UI.
  • The mod still changes only excavator bucket capacity.
  • No new buildings, resources, recipes, prototypes, or saved data are added.

Because of that, the mod should be safe to add to or remove from existing saves. After adding the mod to an existing save, please load the save and check whether the excavator capacity values update correctly in-game.

If you still get any errors, please send me the full log again, especially the lines around the first error.

7 days ago

The log I sent in the 1st post was incomplete. More info was added after the crash.

My problem was not with your mods, it was (as always) the terrain generator that crashes 99% of the times for me.

Sorry for the post. I was able to load a save correctly with both your mods installed.

229 Showing 13 of 3
Log in to reply.