Jump to content

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

Closed 1.2.8

Jayson
Jayson

Posted

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

Jayson

Posted

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

 

Jbird

Posted

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.

Jayson

Posted

First error happens every restart dont know why.

 

Jayson

Posted

2nd error
I enabled the event CH47 in BetterNPC 
This error happens and no NPC spawns

Jayson

Posted

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 

Jayson

Posted

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.

Jayson

Posted

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.

Jayson

Posted

Based on this you can close this as i feel the issue is now resolved

Thank you

  • Like 1
Jbird

Posted

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!

 

KpucTaJl

Posted

Changed Status from Pending to Closed

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.