Jump to content

Hello

Pending 1.2.5

rustfoxgaming
rustfoxgaming

Posted


 

Hello Ifte

I am reporting a compatibility issue with TCUpgrades v1.2.5 on the latest Rust patch

The plugin fails to run the OnServerInitialized hook due to a Harmony patching exception on the cow entity method

Error: Parameter "bestOfBreed" not found in method virtual System.Boolean Rust.Ai.Gen2.Cow::TryGetYield

It seems Facepunch updated the TryGetYield method signature, removing the bestOfBreed parameter, which breaks the Harmony patch

Could you please check this and push an update when you have a moment

Thank you
 

Failed to call hook 'OnServerInitialized' on plugin 'TCUpgrades v1.2.5' (Exception: Parameter "bestOfBreed" not found in method virtual System.Boolean Rust.Ai.Gen2.Cow::TryGetYield(ItemDefinition& item, System.Int32& amount, System.Single& interval))
at HarmonyLib.MethodPatcher.EmitCallParameter (System.Reflection.MethodInfo patch, System.Collections.Generic.Dictionary2[TKey,TValue] variables, System.Reflection.Emit.LocalBuilder runOriginalVariable, System.Boolean allowFirsParamPassthrough, System.Reflection.Emit.LocalBuilder& tmpInstanceBoxingVar, System.Reflection.Emit.LocalBuilder& tmpObjectVar, System.Boolean& refResultUsed, System.Collections.Generic.List1[T] tmpBoxVars) [0x00ada] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
at HarmonyLib.MethodPatcher+<>c__DisplayClass36_0.<AddPostfixes>b__1 (System.Reflection.MethodInfo fix) [0x00006] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable1[T] sequence, System.Action1[T] action) [0x00014] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
at HarmonyLib.MethodPatcher.AddPostfixes (System.Collections.Generic.Dictionary2[TKey,TValue] variables, System.Reflection.Emit.LocalBuilder runOriginalVariable, System.Boolean passthroughPatches) [0x00040] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0 at HarmonyLib.MethodPatcher.CreateReplacement (System.Collections.Generic.Dictionary2[System.Int32,HarmonyLib.CodeInstruction]& finalInstructions) [0x003d9] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00059] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
at HarmonyLib.PatchClassProcessor.ProcessPatchJob (HarmonyLib.PatchJobs`1+Job[T] job) [0x000be] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
3.3m
Total downloads
Customers
12.4k
Customers served
Files Sold
175.6k
Total sales
Payments
3.8m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.