Jump to content

Plug in not compiling correct on restart

Closed 1.2.1

SirApesALot
SirApesALot

Posted

I have to manually reload plug in after restart, getting this error

ExType: HarmonyException
Failed to initialize plugin 'PumpkinHead v1.2.1' (Exception: Parameter "cache" not found in method static System.Void BasePlayer::OcclusionPlayerFound(BasePlayer player1, BasePlayer player2, System.Single networkTime, System.Boolean ordered))
  at HarmonyLib.MethodPatcher.EmitCallParameter (System.Reflection.MethodInfo patch, System.Collections.Generic.Dictionary`2[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.List`1[T] tmpBoxVars) [0x00ada] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0 
  at HarmonyLib.MethodPatcher+<>c__DisplayClass35_0.<AddPrefixes>b__0 (System.Reflection.MethodInfo fix) [0x00070] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0 
  at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0 
  at HarmonyLib.MethodPatcher.AddPrefixes (System.Collections.Generic.Dictionary`2[TKey,TValue] variables, System.Reflection.Emit.LocalBuilder runOriginalVariable) [0x0001b] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0 
  at HarmonyLib.MethodPatcher.CreateReplacement (System.Collections.Generic.Dictionary`2[System.Int32,HarmonyLib.CodeInstruction]& finalInstructions) [0x0029e] 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 
Unloaded plugin PumpkinHead v1.2.1 by Krungh Crow
No previous version to rollback plugin: PumpkinHead

SirApesALot

Posted

it appears vanish had a similar issue at update. maybe you can implement a similar fix?  actually since i used the Vanish update it appears to have done something to my harmony or maybe there was a conflict. 

[Vanish] Automatically Harmony patched 'BaseNetworkable.GetConnectionsWithin_Patch2' method. (BaseNetworkable_GetConnectionsWithin_Patch)
[Vanish] Automatically Harmony patched 'BaseEntity.SignalBroadcast_Patch2' method. (BaseEntity_SignalBroadcast_Patch)
[Vanish] Automatically Harmony patched 'EffectNetwork.Send_Patch2' method. (EffectNetwork_Send_Patch)
[Vanish] Automatically Harmony patched 'Item.SetItemOwnership_Patch2' method. (Item_SetItemOwnership_phrase_Patch)
[Vanish] Automatically Harmony patched 'Item.SetItemOwnership_Patch2' method. (Item_SetItemOwnership_string_Patch)
[Vanish] Automatically Harmony patched 'BasePlayer.Teleport_Patch2' method. (BasePlayer_Teleport_Patch)
[Vanish] Load Data

and now Pumpkinhead loads correcetly, any idea why. Does this help at all lol

Krungh Crow

Posted

lets say harmony bottlenecks and executes everything same moment which is .. well it sucks (Rusts own modding method)

  • Like 1
2m

Downloads

Total number of downloads.

9.5k

Customers

Total customers served.

138.8k

Files Sold

Total number of files sold.

2.9m

Payments Processed

Total payments processed.

×
×
  • 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.