RATS
RATS copied to clipboard
Does not appear to work on Unity Editor for MacOS
I develop my avatars on a Mac, I wanted to try this tool but it seems like it doesn't do anything on Mac. Menus and other rat tools work, just the one that changes the Animator look won't do anything.
The following error will show in the console:
Exception: mprotect returned EACCES
MonoMod.RuntimeDetour.Platforms.DetourNativeMonoPosixPlatform.SetMemPerms (System.IntPtr start, System.UInt64 len, MonoMod.RuntimeDetour.Platforms.DetourNativeMonoPosixPlatform+MmapProts prot) (at <036d18f9edfb4e6d97ce4f777d0e0eb4>:0)
MonoMod.RuntimeDetour.Platforms.DetourNativeMonoPosixPlatform.MakeWritable (System.IntPtr src, System.UInt32 size) (at <036d18f9edfb4e6d97ce4f777d0e0eb4>:0)
MonoMod.RuntimeDetour.DetourHelper.MakeWritable (MonoMod.RuntimeDetour.IDetourNativePlatform plat, MonoMod.RuntimeDetour.NativeDetourData detour) (at <036d18f9edfb4e6d97ce4f777d0e0eb4>:0)
MonoMod.RuntimeDetour.Platforms.DetourRuntimeILPlatform._HookSelftest (System.Reflection.MethodInfo from, System.Reflection.MethodInfo to) (at <036d18f9edfb4e6d97ce4f777d0e0eb4>:0)
MonoMod.RuntimeDetour.Platforms.DetourRuntimeILPlatform..ctor () (at <036d18f9edfb4e6d97ce4f777d0e0eb4>:0)
MonoMod.RuntimeDetour.Platforms.DetourRuntimeMonoPlatform..ctor () (at <036d18f9edfb4e6d97ce4f777d0e0eb4>:0)
MonoMod.RuntimeDetour.DetourHelper.get_Runtime () (at <036d18f9edfb4e6d97ce4f777d0e0eb4>:0)
HarmonyLib.HarmonySharedState.WithState[T] (System.Func`1[TResult] action) (at <036d18f9edfb4e6d97ce4f777d0e0eb4>:0)
HarmonyLib.HarmonySharedState.GetPatchInfo (System.Reflection.MethodBase method) (at <036d18f9edfb4e6d97ce4f777d0e0eb4>:0)
HarmonyLib.PatchProcessor.Patch () (at <036d18f9edfb4e6d97ce4f777d0e0eb4>:0)
HarmonyLib.Harmony.Patch (System.Reflection.MethodBase original, HarmonyLib.HarmonyMethod prefix, HarmonyLib.HarmonyMethod postfix, HarmonyLib.HarmonyMethod transpiler, HarmonyLib.HarmonyMethod finalizer) (at <036d18f9edfb4e6d97ce4f777d0e0eb4>:0)
nadena.dev.ndmf.preview.HandleUtilityPatches.Patch_FilterInstanceIDs (HarmonyLib.Harmony h) (at ./Packages/nadena.dev.ndmf/Editor/Harmony/HandleUtilityPatches.cs:82)
nadena.dev.ndmf.preview.PatchLoader.ApplyPatches () (at ./Packages/nadena.dev.ndmf/Editor/Harmony/Patcher.cs:33)
UnityEngine.Debug:LogException(Exception)
nadena.dev.ndmf.preview.PatchLoader:ApplyPatches() (at ./Packages/nadena.dev.ndmf/Editor/Harmony/Patcher.cs:37)
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadMethodAttributes() (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorAssemblies.cs:145)
Might be Harmony not working it looks?