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:
![]()
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.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)
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.
Solved Oxide Patcher throwing error when hooking (use Oxide.Core.dll 2149)
Discussion in 'Rust Development' started by Bamabo, Aug 7, 2016.
-
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.
-
Hmm alright, how do I go about getting that build?
-
Quick link(auto download) https://github.com/OxideMod/Snapsho...68b1ae3d5ae47e2677079/Oxide-Rust.zip?raw=true : Or you can see all of the different 2149 downloads: GitHub - OxideMod/Snapshots at 6f9f54f46490fd8965768b1ae3d5ae47e2677079 or if you really want: Oxide build 2149 from https://github.com/OxideMod/Oxide/commit/ba6726d · OxideMod/Snapshots@6f9f54f · GitHub
-
I figured it out, but thanks
