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

rustfoxgaming

Posted

ExType: HarmonyException
Failed to call hook 'OnServerInitialized' on plugin 'TCUpgrades v1.2.5' (InvalidOperationException: BaseMelee.CLProject: Could not locate ThrowFullStack/OnWeaponThrown block.)
  at Oxide.Plugins.StackModifier+CLProject_Patch.Transpiler (System.Collections.Generic.IEnumerable`1[T] instructions) [0x00286] in <23a68a4293394b4e848fef57727e344c>:0 
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <239c1f78a64c42c29c04241c777f1859>:0
Calling 'OnServerInitialized' on 'TCUpgrades v1.2.5' took 1487ms

Iftebinjan

Posted

is this on a carbon server?
can you send your config file pls

  • Love 1
Iftebinjan

Posted

Thanks for the log. TC Upgrades doesn't patch cows itself. It was picking up another plugin's outdated cow patch while loading, and that stopped it from starting. Version 1.2.6 only loads its own patch, so please update and it will start normally. The other plugin with the cow patch still needs an update from its author.

  • Love 1

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.5k
Customers served
Files Sold
177k
Total sales
Payments
3.9m
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.