Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Some mods don't work with the Vitruvian update
#1
Hello. I have noticed that after the last update (Vitruvian) some mods taken from this forum stopped working. I am speaking about the New Religios Tenet mod and Improved AI Culture Selection mod. Probably they need to be updated for the last version of the game... Don't know how to attach a file, so i'll post the error text here. I got it in the Bepinex launch window.

[Warning:  HarmonyX] AccessTools.DeclaredMethod: Could not find method for type Amplitude.Mercury.AI.Brain.Analysis.Economy.NextFactionChoice and name ComputeMotivationForEmblematicUnit and parameters
[Error  : Unity Log] ArgumentException: Undefined target method for patch method static bool AOM.Humankind.ImprovedAIFactionSelection.NextFactionChoice_Patch::ComputeMotivationForEmblematicUnit(Amplitude.Mercury.AI.Brain.Analysis.Economy.NextFactionChoice __instance, Amplitude.AI.Heuristics.HeuristicFloat& __result, Amplitude.Mercury.Interop.AI.Entities.MajorEmpire majorEmpire, Amplitude.Mercury.Data.Simulation.UnitDefinition unitDefinition)
Stack trace:
HarmonyLib.PatchClassProcessor.PatchWithAttributes (System.Reflection.MethodBase& lastOriginal) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.PatchClassProcessor.Patch () (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
Rethrow as HarmonyException: Patching exception in method null
HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.PatchClassProcessor.Patch () (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.Harmony.<PatchAll>b__11_0 (System.Type type) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.Harmony.PatchAll () (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
AOM.Humankind.ImprovedAIFactionSelection.ImprovedAIFactionSelection.Awake () (at /Users/a/Documents/Humankind Mod Tool/Projects/AOM.Humankind.ImprovedAICultureSelection/Improved AI Culture Selection.cs:28)
UnityEngine.GameObject:AddComponent(Type)
BepInEx.Bootstrap.Chainloader:Start()
UnityEngine.Application:.cctor()
Sirenix.Serialization.UnitySerializationInitializer:Initialize()
Sirenix.Serialization.UnitySerializationInitializer:InitializeRuntime()

[Info  :  BepInEx] Loading [More Religious Tenets 2.0.0.1]
[Warning:  HarmonyX] AccessTools.DeclaredMethod: Could not find method for type Amplitude.Mercury.Simulation.DepartmentOfReligion and name CanChooseNextTenet and parameters
[Error  : Unity Log] ArgumentException: Undefined target method for patch method static void AOM.Humankind.MoreReligiousTenets.DepartmentOfReligion_Patch::CanChooseNextTenet(Amplitude.Mercury.Simulation.DepartmentOfReligion __instance, Boolean& __result, int tenetIndex, Amplitude.Mercury.Interop.ReligionFailureFlags& failureFlags)
Stack trace:
HarmonyLib.PatchClassProcessor.PatchWithAttributes (System.Reflection.MethodBase& lastOriginal) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.PatchClassProcessor.Patch () (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
Rethrow as HarmonyException: Patching exception in method null
HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.PatchClassProcessor.Patch () (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.Harmony.<PatchAll>b__11_0 (System.Type type) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
HarmonyLib.Harmony.PatchAll () (at <474744d65d8e460fa08cd5fd82b5d65f>:0)
AOM.Humankind.MoreReligiousTenets.MoreReligiousTenets.Awake () (at /Users/a/Documents/Humankind Mod Tool/Projects/AOM.Humankind.MoreReligiousTenets/Religion.cs:31)
UnityEngine.GameObject:AddComponent(Type)
BepInEx.Bootstrap.Chainloader:Start()
UnityEngine.Application:.cctor()
Sirenix.Serialization.UnitySerializationInitializer:Initialize()
Sirenix.Serialization.UnitySerializationInitializer:InitializeRuntime()
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)