When I load the game gives me the following error message: [Info : BepInEx] Loading [CustomPortraits 1.1.2] [Warning: HarmonyX] AccessTools.DeclaredMethod: Could not find method for type Wish.DialogueController and name SetDialogueBustVisualsOptimized and parameters (UnityEngine.Vector2, string, bool, bool, bool, bool, bool, bool) [Error : Unity Log] ArgumentException: Undefined target method for patch method static bool CustomPortraits.Plugin+Patches::SetDialogueBustVisualsOptimized(Wish.DialogueController& __instance, UnityEngine.UI.Image& ____bust, UnityEngine.Vector2 offset, string name, bool small, bool isMarriageBust, bool isSwimsuitBust, bool hideName, bool isRefreshBust, bool isHalloweenBust) 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) CustomPortraits.Plugin.Awake () (at <58ee764cac3040e29d51bb99fbead824>:0) UnityEngine.GameObject:AddComponent(Type) BepInEx.Bootstrap.Chainloader:Start() UnityEngine.Application:.cctor() Sirenix.Serialization.UnitySerializationInitializer:Initialize() Sirenix.Serialization.UnitySerializationInitializer:InitializeRuntime() I looked it up in AI and its saying there an error in method patching due to incorrect parameters or missing method definition? IDK if that helps. Honestly, IDK if this is a problem with this mod or the portraits HD mod...
I really love the artstyle of these portraits, but I'm having trouble getting the mod to work? BepInEx says everything's locked and loaded, but when I start the game, there's no changes to the portraits. Any suggestions?
I'm not having an issue, per se, but I did find that when I followed the instructions on the description page, the mod didn't work. I've got to have the images in the CustomTextures folder for them to show up in game, and having Custom Portraits HD doesn't seem to matter; so long as they're in plugins/CustomTextures, they work. I do have the latest release, the one from 24 June.
Hi, I absolutely love the artstyle of this mod, but no matter what I do it doesn't work? I've tried putting it in the custom textures folder with the mod, I've tried doing the same thing with the Custom Portraits mod, but the portraits simply don't show up. I'm sorry if this is a super simple solution but I just can't figure it out. Thank you!
Hi there. Don't worry, it was actually a mistake by my side, I'm sorry :c. I updated the file and the instructions to install the mod. Please download it again and try to install it using the new instructions and the Custom Portrits mod instead of the Custom Texture. It should work now. ^^
Hi there. Don't worry, it was actually a mistake by my side, I'm sorry :c. I updated the file and the instructions to install the mod. Please download it again and try to install it using the new instructions and the Custom Portrits mod instead of the Custom Texture. It should work now. ^^
34 comments
[Info : BepInEx] Loading [CustomPortraits 1.1.2]
[Warning: HarmonyX] AccessTools.DeclaredMethod: Could not find method for type Wish.DialogueController and name SetDialogueBustVisualsOptimized and parameters (UnityEngine.Vector2, string, bool, bool, bool, bool, bool, bool)
[Error : Unity Log] ArgumentException: Undefined target method for patch method static bool CustomPortraits.Plugin+Patches::SetDialogueBustVisualsOptimized(Wish.DialogueController& __instance, UnityEngine.UI.Image& ____bust, UnityEngine.Vector2 offset, string name, bool small, bool isMarriageBust, bool isSwimsuitBust, bool hideName, bool isRefreshBust, bool isHalloweenBust)
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)
CustomPortraits.Plugin.Awake () (at <58ee764cac3040e29d51bb99fbead824>:0)
UnityEngine.GameObject:AddComponent(Type)
BepInEx.Bootstrap.Chainloader:Start()
UnityEngine.Application:.cctor()
Sirenix.Serialization.UnitySerializationInitializer:Initialize()
Sirenix.Serialization.UnitySerializationInitializer:InitializeRuntime()
I looked it up in AI and its saying there an error in method patching due to incorrect parameters or missing method definition? IDK if that helps. Honestly, IDK if this is a problem with this mod or the portraits HD mod...
According to Custom Portraits HD 's github README, the name rule is as follows
Example. Lynn's file
Lynn_Spring.png
Lynn_Summer.png
Lynn_Fall.png
Lynn_Winter.png
Lynn_Swimsuit.png
Lynn_Wedding.png
Change the file name to the correct name and the image will be read correctly.
(MachineTranslated)