Unknown hook type with self-patchingNot An Issue
Problem with editing patch(Rust.opj) in patcher.
If i run uMod Patcher and open opj:
System.Exception: Unknown hook type
в uMod.Patcher.Manifest.Converter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)
в Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue)
в Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id)
в Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id)
в Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
в Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
в Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
в Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
в Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
в Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
в Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
в uMod.Patcher.Project.Load(String filename)
в uMod.Patcher.PatcherForm.OpenProject(String filename)
в uMod.Patcher.PatcherForm.openprojecttool_Click(Object sender, EventArgs e)
в System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
в System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
в System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
в System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
в System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
в System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
в System.Windows.Forms.Control.WndProc(Message& m)
в System.Windows.Forms.ToolStrip.WndProc(Message& m)
в System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

If i run Oxide Patcher and edit hooks and assembly:

How to edit Rust.opj with this program?
You're trying to open the 'umod' branch with the Oxide patcher; won't work. Make sure to use the 'oxide' branch with the Oxide patcher, but keep in mind that we do not support self-patching.
In response to Wulf ():
You're trying to open the 'umod' branch with the Oxide patcher; won't work. Make sure to use the 'ox...
uMod Patcher don't open Rust.opj how to fix?
In response to NightTiger ():
uMod Patcher don't open Rust.opj how to fix?
Sure it does, you just need to be under the right branch for that Rust.opj. Like I said though, we do not support self-patching; and the uMod branch is also unreleased and unsupported at this time.

https://github.com/theumod/uMod.Rust/blob/develop/resources/Rust.opj = for uMod Patcher, but not recommended
https://github.com/theumod/uMod.Rust/blob/oxide/resources/Rust.opj = for Oxide Patcher

Both work, both I work with weekly.
In response to Wulf ():
Sure it does, you just need to be under the right branch for that Rust.opj. Like I said though, we d...
I download master branch and oxide branch, compare Rust.opj - they identically.

I compile oxide branch and open Rust.opj linked to folder Oxide.Rust\src\bin\Release\net46\ in Oxide Patcher.
And i get error with UnityEngine identically from 1st post.
In response to NightTiger ():
I download master branch and oxide branch, compare Rust.opj - they identically.

I compile...
The error in the first post isn't a Unity error, that is from what I mentioned previously.

The error in the image means you are missing that DLL where the patcher is located.
In response to Wulf ():
The error in the first post isn't a Unity error, that is from what I mentioned previously.
UnityEngine dll must be not in Managed directory? what libraries should be in patcher directory?
In response to NightTiger ():
UnityEngine dll must be not in Managed directory? what libraries should be in patcher directory?
Any libraries that the patcher asks for that it uses. You'll see any missing when attempting to view code that needs one, or if patching fails for some.
In response to Wulf ():
Any libraries that the patcher asks for that it uses. You'll see any missing when attempting to view...
Thanks, patcher work) i move patcher to server\managed directory :)
Locked automatically