Jump to content

Failed to call hook 'OnServerInitialized' on plugin 'BetterNpc v1.2.8'

Closed 1.2.8

Jayson

currently getting this error in console

Failed to call hook 'OnServerInitialized' on plugin 'BetterNpc v1.2.8' (ArgumentNullException: Value cannot be null. Parameter name: input) at System.TimeSpan.Parse (System.String s) [0x00003] in <2161c9885dd04ff291b79db9349c4b9b>:0 at Oxide.Plugins.BetterNpc.OnServerInitialized () [0x00051] in <f99307d738d9499fb90b891889e92d18>:0 at Oxide.Plugins.BetterNpc.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x002de] in <f99307d738d9499fb90b891889e92d18>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <cd9a02fd331347bd82d550bb1a9c8e9f>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <b76ec77c47d1449e92b2baab8603843d>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <b76ec77c47d1449e92b2baab8603843d>:0

Share this comment


Link to comment

also get this error

Failed to call hook 'OnHelicopterDropCrate' on plugin 'BetterNpc v1.2.8' (KeyNotFoundException: The given key 'CH47' was not present in the dictionary.) at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <2161c9885dd04ff291b79db9349c4b9b>:0 at Oxide.Plugins.BetterNpc.OnHelicopterDropCrate (CH47HelicopterAIController ai) [0x00000] in <7890f64a84594b29b36ff762e46ae9cf>:0 at Oxide.Plugins.BetterNpc.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x007f6] in <7890f64a84594b29b36ff762e46ae9cf>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <cd9a02fd331347bd82d550bb1a9c8e9f>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <b76ec77c47d1449e92b2baab8603843d>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <b76ec77c47d1449e92b2baab8603843d>:0

 

Share this comment


Link to comment

What is happening if you've noticed, when the 1st error occurs @Jayson?

The 2nd one is likely just an error due to another plugin using that hook when it's called it's usually not much of an issue but that would likely be what that error is from. It's talking about the chinook dropped crate something is using that hook.

Share this comment


Link to comment

i also get the this error when the suppydrop event is triggered

Failed to call hook 'OnSupplyDropDropped' on plugin 'BetterNpc v1.2.8' (KeyNotFoundException: The given key 'AirDrop' was not present in the dictionary.)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <2161c9885dd04ff291b79db9349c4b9b>:0 
  at Oxide.Plugins.BetterNpc.OnSupplyDropDropped (SupplyDrop supplyDrop, CargoPlane cargoPlane) [0x0002f] in <f04dace61e484a47862f92d983895bc4>:0 
  at Oxide.Plugins.BetterNpc.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00304] in <f04dace61e484a47862f92d983895bc4>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <cd9a02fd331347bd82d550bb1a9c8e9f>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <b76ec77c47d1449e92b2baab8603843d>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <b76ec77c47d1449e92b2baab8603843d>:0 

Share this comment


Link to comment

Could this be from the data file i received from MAP Kong: Skull Island?
I just purchased MAP for this wipe and it had the BetterNPC folder to copy to Data folder.
Map was latest version from LoneDesign website.

Share this comment


Link to comment

i have removed all data and config files and reinstalled BetterNPC and NPCSpawn and so far no errors.
I have not used the data files from the Kong MAP as yet.

Share this comment


Link to comment

Thank you for all of the updates as you were looking into this. Currently looking into it but I think perhaps those custom files just need their formats updated. Thank you for reporting!

 

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

81.8k

Files Sold

Total number of files sold.

1.6m

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.