neon-age / Unify

Fix Unity.
MIT License
15 stars 1 forks source link

So how to make this work? #1

Open wrymn opened 6 days ago

wrymn commented 6 days ago

I downloded entire harmony lib using unity nuget manager asset, then Unify, yet I get this error on each recompile:

[Error] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NotImplementedException: The method or operation is not implemented.
  at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00094] in <6ddb2f07a97745adaa7bad4e17020462>:0 
  at HarmonyLib.PatchProcessor.Patch () [0x000fc] in <6ddb2f07a97745adaa7bad4e17020462>:0 
  at HarmonyLib.Harmony.Patch (System.Reflection.MethodBase original, HarmonyLib.HarmonyMethod prefix, HarmonyLib.HarmonyMethod postfix, HarmonyLib.HarmonyMethod transpiler, HarmonyLib.HarmonyMethod finalizer) [0x0002a] in <6ddb2f07a97745adaa7bad4e17020462>:0 
  at Unify.GenericMenuPatch.OnLoad () [0x0013c] in ./Library/PackageCache/com.av.unify/EngineBridge/GenericMenuPatch/GenericMenuPatch.cs:43 
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <a6d715f5ce8c4754a140b50ff638878a>:0 
   --- End of inner exception stack trace ---
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00083] in <a6d715f5ce8c4754a140b50ff638878a>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <a6d715f5ce8c4754a140b50ff638878a>:0 
  at UnityEditor.EditorAssemblies.ProcessInitializeOnLoadMethodAttributes () [0x00056] in /Users/bokken/build/output/unity/unity/Editor/Mono/EditorAssemblies.cs:142 
EditorAssemblies.ProcessInitializeOnLoadMethodAttributes() at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorAssemblies.cs:146
neon-age commented 5 days ago

Harmony is already included, so you don't need to download it from nuget. Checked on latest Unity 6 version, seems to be working, but the styling is broken now image

havokentity commented 1 day ago

Hi, can you add a tutorial or some basic instructions on how to add it to Unity?

I tried importing it into my Unity 6 project by copying and via package manager manual import and both didn't seem to work.

My project just refuses to load after and gets stuck doing this...

image

I'm using Unity 6000.0.22f1

Thanks