中级玩家
 
- 贡献度
- 0
- 金元
- 1451
- 积分
- 145
- 精华
- 0
- 注册时间
- 2021-2-13
|
1000金元
[12:06:01.299] [BrushPortraitMod] Failed to Harmony Patch BrushPortraitMod.ResourcesLoadPatch
[12:06:01.299] [BrushPortraitMod] HarmonyLib.HarmonyException: Patching exception in method null
---> System.ArgumentException: Undefined target method for patch method static void BrushPortraitMod.ResourcesLoadPatch
: ostfix(string path, Type systemTypeInstance, UnityEngine.Object& __result)
at HarmonyLib.PatchClassProcessor.PatchWithAttributes(MethodBase& lastOriginal)
at HarmonyLib.PatchClassProcessor.Patch()
--- End of inner exception stack trace ---
at HarmonyLib.PatchClassProcessor.ReportException(Exception exception, MethodBase original)
at HarmonyLib.PatchClassProcessor.Patch()
at MelonLoader.MelonBase.HarmonyInit() in D:\a\MelonLoader\MelonLoader\MelonLoader\Melons\MelonBase.cs:line 450
[12:06:04.116] [Il2CppInterop] During invoking native->managed trampoline
Il2CppInterop.Runtime.Il2CppException: System.NullReferenceException: Object reference not set to an instance of an obje
ct.
--- BEGIN IL2CPP STACK TRACE ---
System.NullReferenceException: Object reference not set to an instance of an object.
at GameDataController.GetTagID (System.String tagName) [0x00000] in <00000000000000000000000000000000>:0
at GameDataController.LoadAllGameData () [0x00000] in <00000000000000000000000000000000>:0
--- END IL2CPP STACK TRACE ---
at Il2CppInterop.Runtime.Il2CppException.RaiseExceptionIfNecessary(IntPtr returnedException) in /home/runner/work/Il2
CppInterop/Il2CppInterop/Il2CppInterop.Runtime/Il2CppException.cs:line 36
at DMD<Il2Cpp.GameDataController: oadAllGameData>(GameDataController this)
at (il2cpp -> managed) LoadAllGameData(IntPtr , Il2CppMethodInfo* )
|
最佳答案
查看完整内容
[12:06:04.116] 那一大段简单
你给新添加的NPC添加了新天赋,所以加载不出天赋
再详细点,就是:你在LongYinCustomHeroTags里新增了一个天赋A
然后在BrushPortraitMod或LongYinCustomSpeHeroData新增了一个NPC
你在SpeHeroData.csv里给这个NPC添加了天赋A
当然,或许不止新增了一个天赋,也不止一个NPC添加了天赋
|