Hi Ulisse Wolf,
great Idea for a Mod but for me it don't work. Take a look in the following error-massages from Ingame window
With your mod and the WorldGen++ i get this Error (while loading, but don't activate the GasRig in Worldgen++):
Mafi.Core.Game.GameBuilderException: An exception was thrown while initializing mod 'GeologyReservoirEngineering' (GeologyReservoirEngineering.GeologyReservoirEngineeringMod) ---> Mafi.CheckException: Value of type 'Mafi.Core.Terrain.Generation.IVirtualTerrainResource[]' is null! Enumerating null array.
at Mafi.CheckExtensions.ThrowException (System.String message) [0x00006]
at Mafi.CheckExtensions.CheckNotNull[T] (T value, System.String message) [0x00020]
at Mafi.Collections.ImmutableCollections.ImmutableArray1+Enumerator[T]..ctor (Mafi.Core.Terrain.Generation.IVirtualTerrainResource[] array) [0x00005] at Mafi.Collections.ImmutableCollections.ImmutableArray1[T].GetEnumerator () [0x00000]
at GeologyReservoirEngineering.Data.NaturalGasMapPatch.RetrofitExistingSave (Mafi.Core.Terrain.IVirtualResourceManager virtualResourceManager) [0x0007c] in C:\Users\Uliss\Desktop\GeologyReservoirEngineering\Source\Data\NaturalGasMapPatch.cs:178
at GeologyReservoirEngineering.GeologyReservoirEngineeringMod.Initialize (Mafi.DependencyResolver resolver, System.Boolean gameWasLoaded) [0x00024] in C:\Users\Uliss\Desktop\GeologyReservoirEngineering\Source\GeologyReservoirEngineeringMod.cs:82
at Mafi.Core.Game.GameBuilder.InitializeModsOrThrow (Mafi.Collections.ImmutableCollections.ImmutableArray1[T] modsData, Mafi.Collections.ImmutableCollections.ImmutableArray1[T] mods, Mafi.DependencyResolver resolver, System.Boolean gameWasLoaded) [0x00020]
--- End of inner exception stack trace ---
at Mafi.Core.Game.GameBuilder.InitializeModsOrThrow (Mafi.Collections.ImmutableCollections.ImmutableArray1[T] modsData, Mafi.Collections.ImmutableCollections.ImmutableArray1[T] mods, Mafi.DependencyResolver resolver, System.Boolean gameWasLoaded) [0x00088]
at Mafi.Core.Game.GameBuilder+<initializeGame>d__5.MoveNext () [0x00026]
at Mafi.Core.Game.GameBuilder+<BuildNewGameTimeSliced>d__0.MoveNext () [0x0052b]
at Mafi.Unity.GamePlayScene+<buildNewGame>d__27.MoveNext () [0x00095]
at Mafi.Unity.GamePlayScene+<Initialize>d__25.MoveNext () [0x000ad]
at Mafi.Unity.Main+<unloadAndStartNewScene>d__117.MoveNext () [0x0013b]
at Mafi.Unity.Main.stepSceneInitialization () [0x00104]
Game version: 0.8.7a
Loaded mods: (Trains expansion 1.0.0), (Supporter edition 1.1.0), (WorldGen++ 1.2.0), (Geology & Reservoir Engineering 1.0.2)
Failed mods: (Geology & Reservoir Engineering 1.0.2)
With your mod and the WorldGen++ i get this Error (while loading and activate the GasRig in Worldgen++):
Mafi.Core.Game.GameBuilderException: An exception was thrown while initializing mod 'GeologyReservoirEngineering' (GeologyReservoirEngineering.GeologyReservoirEngineeringMod) ---> Mafi.CheckException: Value of type 'Mafi.Core.Terrain.Generation.IVirtualTerrainResource[]' is null! Enumerating null array.
at Mafi.CheckExtensions.ThrowException (System.String message) [0x00006]
at Mafi.CheckExtensions.CheckNotNull[T] (T value, System.String message) [0x00020]
at Mafi.Collections.ImmutableCollections.ImmutableArray1+Enumerator[T]..ctor (Mafi.Core.Terrain.Generation.IVirtualTerrainResource[] array) [0x00005] at Mafi.Collections.ImmutableCollections.ImmutableArray1[T].GetEnumerator () [0x00000]
at GeologyReservoirEngineering.Data.NaturalGasMapPatch.RetrofitExistingSave (Mafi.Core.Terrain.IVirtualResourceManager virtualResourceManager) [0x0007c] in C:\Users\Uliss\Desktop\GeologyReservoirEngineering\Source\Data\NaturalGasMapPatch.cs:178
at GeologyReservoirEngineering.GeologyReservoirEngineeringMod.Initialize (Mafi.DependencyResolver resolver, System.Boolean gameWasLoaded) [0x00024] in C:\Users\Uliss\Desktop\GeologyReservoirEngineering\Source\GeologyReservoirEngineeringMod.cs:82
at Mafi.Core.Game.GameBuilder.InitializeModsOrThrow (Mafi.Collections.ImmutableCollections.ImmutableArray1[T] modsData, Mafi.Collections.ImmutableCollections.ImmutableArray1[T] mods, Mafi.DependencyResolver resolver, System.Boolean gameWasLoaded) [0x00020]
--- End of inner exception stack trace ---
at Mafi.Core.Game.GameBuilder.InitializeModsOrThrow (Mafi.Collections.ImmutableCollections.ImmutableArray1[T] modsData, Mafi.Collections.ImmutableCollections.ImmutableArray1[T] mods, Mafi.DependencyResolver resolver, System.Boolean gameWasLoaded) [0x00088]
at Mafi.Core.Game.GameBuilder+<initializeGame>d__5.MoveNext () [0x00026]
at Mafi.Core.Game.GameBuilder+<BuildNewGameTimeSliced>d__0.MoveNext () [0x0052b]
at Mafi.Unity.GamePlayScene+<buildNewGame>d__27.MoveNext () [0x00095]
at Mafi.Unity.GamePlayScene+<Initialize>d__25.MoveNext () [0x000ad]
at Mafi.Unity.Main+<unloadAndStartNewScene>d__117.MoveNext () [0x0013b]
at Mafi.Unity.Main.stepSceneInitialization () [0x00104]
Game version: 0.8.7a
Loaded mods: (Trains expansion 1.0.0), (Supporter edition 1.1.0), (WorldGen++ 1.2.0), (Geology & Reservoir Engineering 1.0.2)
Failed mods: (Geology & Reservoir Engineering 1.0.2)
With only this mod I get this error:
Failed to load mod 'GeologyReservoirEngineering': Could not load type of field 'GeologyReservoirEngineering.GeologyReservoirEngineeringMod:m_harmony' (3) due to: Could not load file or assembly '0Harmony, Version=2.4.2.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.