Jump to content

Recent update broke other plugins

Pending 1.2.4

KingSizeKevin
KingSizeKevin

Posted

NPC Kits is causing other plugins to fail after this months update when it didnt cause this problem before.  Is this fixable?

 

  

On 9/17/2024 at 8:32 AM, KingSizeKevin said:
(07:00:00) | Failed to call hook 'OnServerInitialized' on plugin 'CustomBradley v1.5.2' (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.NPCKits+Patches+ScientistNPCDisplayNames.ScientistNPCFix (System.String& __result, ScientistNPC __instance) [0x00009] in <fc1178341d1f437288b06fcebbdced8b>:0

at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.ScientistNPC.get_displayName_Patch2(ScientistNPC)

at Oxide.Plugins.CustomBradley.<OnServerInitialized>b__22_3 (BasePlayer i) [0x0000d] in <fc1178341d1f437288b06fcebbdced8b>:0

at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].MoveNext () [0x00037] in <8b0c76c7efa244bc95eeee75bf1314cd>:0

at Oxide.Plugins.CustomBradley.OnServerInitialized () [0x000e0] in <fc1178341d1f437288b06fcebbdced8b>:0

at Oxide.Plugins.CustomBradley.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0006a] in <fc1178341d1f437288b06fcebbdced8b>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <795304323ac74a298b8ed190a1dfa739>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <beb2b64691c64e2b95b99491bd85442c>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <beb2b64691c64e2b95b99491bd85442c>:0

 

  • Administrator
Steenamaroo

Posted

Hey mate,
I'll do an update for this later.
For now just reloading CustomBradley should work around it.

Thanks for letting me know. 👍

  • Love 1
KingSizeKevin

Posted

Its rather annoying, and will have to choose between plugins, so if theres a fix for this would be appreciated

  • Administrator
Steenamaroo

Posted

You can't just reload CustomBradley?

There'll be an update for BotReSpawn shortly.

  • Administrator
Steenamaroo

Posted

V1.3.0 just released should address this.

KingSizeKevin

Posted

Still get this error after updating to 1.3.0, it is referencing npc kits?

 

(07:00:39) | Failed to call hook 'OnServerInitialized' on plugin 'CustomBradley v1.5.2' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.NPCKits+Patches+ScientistNPCDisplayNames.ScientistNPCFix (System.String& __result, ScientistNPC __instance) [0x00009] in <2b36e09905a549609f1b36ef7f1e2983>:0 
  at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.ScientistNPC.get_displayName_Patch2(ScientistNPC)
  at Oxide.Plugins.CustomBradley.<OnServerInitialized>b__22_3 (BasePlayer i) [0x0000d] in <2b36e09905a549609f1b36ef7f1e2983>:0 
  at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].MoveNext () [0x00037] in <8b0c76c7efa244bc95eeee75bf1314cd>:0 
  at Oxide.Plugins.CustomBradley.OnServerInitialized () [0x000e0] in <2b36e09905a549609f1b36ef7f1e2983>:0 
  at Oxide.Plugins.CustomBradley.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0006a] in <2b36e09905a549609f1b36ef7f1e2983>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <206a0f2c6ee141f38e2ad549cde44d70>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <beb2b64691c64e2b95b99491bd85442c>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <beb2b64691c64e2b95b99491bd85442c>:0

 

KingSizeKevin

Posted

On 10/4/2024 at 1:59 AM, Steenamaroo said:

You can't just reload CustomBradley?

There'll be an update for BotReSpawn shortly.

When the plugin fails, it spawns a vanilla bradley, so just reloading plugin doesnt suffice

  • Administrator
Steenamaroo

Posted

Yeah, same issue in two plugins.
Updating now. 👍

  • Love 1
1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

Files Sold

Total number of files sold.

2m

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.