Jump to content

Exception while calling NextTick

Closed 1.1.8

Paul H.


as soon as I kill an NPC I get this message in the console



Exception while calling NextTick callback (KeyNotFoundException: The given key was not present in the dictionary.)

at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <fb001e01371b4adca20013e0ac763896>:0

at Oxide.Plugins.BetterNpc.AddToContainerPrefab (ItemContainer container, Oxide.Plugins.BetterNpc+PrefabLootTableConfig lootTable) [0x0011e] in <d47bc7744a914209972ad396e47bf994>:0

at Oxide.Plugins.BetterNpc+ControllerSpawnPoint+<DieNpc>c__AnonStorey3.<>m__1 () [0x000b0] in <d47bc7744a914209972ad396e47bf994>:0

at Oxide.Core.OxideMod.OnFrame (System.Single delta) [0x00051] in <bae5f1223fce49c493b01571c99dce02>:0

Share this comment


Link to comment

and
Failed to call hook 'OnHelicopterDropCrate' on plugin 'BetterNpc v1.1.8' (KeyNotFoundException: The given key was not present in the dictionary.)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <fb001e01371b4adca20013e0ac763896>:0 
  at Oxide.Plugins.BetterNpc.OnHelicopterDropCrate (CH47HelicopterAIController ai) [0x00000] in <9bd0c5396da14784a0849da1e395c0d4>:0 
  at Oxide.Plugins.BetterNpc.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x007b9] in <9bd0c5396da14784a0849da1e395c0d4>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <09575a60985045248bcb43b20faeeb99>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <bae5f1223fce49c493b01571c99dce02>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <bae5f1223fce49c493b01571c99dce02>:0 

BetterNpc.json

Share this comment


Link to comment

Have you had the plugin running for some time and this just started?

Can you confirm if the oxide and server files are all updated? There have been a few patches recently.

Can you confirm your version of the plugin and of NpcSpawn?

Perhaps one of the holiday updates is causing some kind of error with the Chinook event I've now seen it a few times recently.

Share this comment


Link to comment

Hello, 

I always keep the server up to date,
npcspawn is also up to date.

hmm that may well be because of Facepunch.
I'll ignore that for now and see what happens in January.

Share this comment


Link to comment

Did speak to the dev a bit today @Paul H. and essentially it looks like perhaps the prefab path was changed.

1st would you mind reloading the plugin and making sure it loads through all the way up to the Biome files and has no errors?

If so would you want to look at maybe a couple examples and check that their loot path is not the issue by either changing to another asset path or a different loot option? You could then reload the plugin and test those specific NPC to see if they throw an error still when killed.

Does it appear to perform correctly other than the error? Do you customize your files much, might you have chanced the prefab path for loot tables?

Let me know if any of that is helpful if you still wanted to sort this out before 2023! 😃

Share this comment


Link to comment

Thank you, 
I have completely deleted the plugin once and reinstalled it, so far everything seems to be OK again.

Many thanks for the help

Share this comment


Link to comment

Hello,
since the Rust update this message is there again.
as soon as I have killed an NPC

(06:50:14) | Exception while calling NextTick callback (KeyNotFoundException: The given key was not present in the dictionary.)

at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <fb001e01371b4adca20013e0ac763896>:0

at Oxide.Plugins.BetterNpc.AddToContainerPrefab (ItemContainer container, Oxide.Plugins.BetterNpc+PrefabLootTableConfig lootTable) [0x0011e] in <e9d8f0c827a245babb40e0917a01e2d8>:0

at Oxide.Plugins.BetterNpc+ControllerSpawnPoint+<DieNpc>c__AnonStorey3.<>m__1 () [0x000b0] in <e9d8f0c827a245babb40e0917a01e2d8>:0

at Oxide.Core.OxideMod.OnFrame (System.Single delta) [0x00051] in <d5f57e12edfe4fa0b5c5dbdd9b51eff8>:0


After complete reinstallation everything OK again

 

Edited by Paul H.

Share this comment


Link to comment

Hi, next time pay attention to all the plugin messages when it is loaded to the server, perhaps the plugin tells you during the load to the server that it is missing. The error is similar to what you have in some kind of prefab file for loot inside an NPC, but such a prefab does not exist in Rust

  • Like 1

Share this comment


Link to comment
497.1k

Downloads

Total number of downloads.

2.8k

Customers

Total customers served.

37.2k

Files Sold

Total number of files sold.

626.5k

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.