1. So, I'm trying to get into adding new hooks to oxide. However Oxide Patcher is proving to be my worst enemy.

    As soon as I press the "Hook This Method" button Oxide Patcher throws the following error:
    qqweqw.PNG

    Code:
    ************** Exception Text **************
    System.InvalidOperationException: Sequence contains more than one matching element
       at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate)
       at OxidePatcher.Hooks.Simple.ApplyPatch(MethodDefinition original, ILWeaver weaver, AssemblyDefinition oxideassembly, Patcher patcher) in F:\OxidePatcher-master\OxidePatcher\Hooks\Simple.cs:line 55
       at OxidePatcher.Views.HookViewControl.<OnLoad>d__24.MoveNext() in F:\OxidePatcher-master\OxidePatcher\Views\HookViewControl.cs:line 156
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
    And it seems no matter what I do, using my original, oxide provided Assembly-Csharp assembly or a vanilla one. Using the Rust.opj file from my self compiled Oxide project or one off the official github I get the same errors. I have been browsing the forums for a few hours now and I'm clueless on how to proceed.

    I have tried recompiling Oxide Patcher and also trying to press the continue button besides the error but the build fails.
    I should also mention that this happens with every method I try to hook into. This is before I change any hook settings too.

    I appreciate all the help I can get. Thanks.
     
  2. Wulf

    Wulf Community Admin

    Use the Oxide.Core.dll from Oxide 2.0.2149. The latest core contains some changes that the patcher doesn't handle yet.
     
  3. Hmm alright, how do I go about getting that build?