Jump to content

Exception while calling NextTick

Closed 1.1.8

Paul H.
Paul H.

Posted


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

Paul H.

Posted

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

Jbird

Posted

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.

Paul H.

Posted

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.

Jbird

Posted

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! 😃

Paul H.

Posted

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

Jbird

Posted

Glad to hear that, thank you for the feedback and follow up!

Just let us know if it reoccurs or if anything else comes up.

  • Like 1
Paul H.

Posted (edited)

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.
KpucTaJl

Posted

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
KpucTaJl

Posted

Changed Status from Pending to Closed

Paul H.

Posted

unfortunately the error is still there.
As soon as I delete the plugin completely and reinstall it, it goes but then the error comes again

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 <49a6992d11e54fc4a20c63d2f225e107>:0

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

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


***********************************************************************************

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 <49a6992d11e54fc4a20c63d2f225e107>:0

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

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

***********************************************************************************

Failed to call hook 'OnSupplyDropDropped' 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.OnSupplyDropDropped (SupplyDrop supplyDrop, CargoPlane cargoPlane) [0x00023] in <49a6992d11e54fc4a20c63d2f225e107>:0

at Oxide.Plugins.BetterNpc.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00304] in <49a6992d11e54fc4a20c63d2f225e107>: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 <d5f57e12edfe4fa0b5c5dbdd9b51eff8>:0

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

KpucTaJl

Posted

Hi, send me all the messages in your console when you upload the plugin to the server, or even better, create a ticket in Discord Mad Mappers and send them there and also send the data file when killing which NPCs this happens

KpucTaJl

Posted

but I think that messages from the console when you upload the plugin to the server will be enough

Paul H.

Posted

I have reinstalled the plugin,
in the eyeblich it works again.
as soon as it does not work again, I look in the log file and send it to you.
Installation was without errors or hints.... see attachment

betterNPC.txt

KpucTaJl

Posted

but you didn't send all the messages from your console

KpucTaJl

Posted

reinstalling the plugin does not affect this in any way, this is an erroneous opinion

KpucTaJl

Posted

if this is all you see in your console, then you have not moved all the files from the archive to your server, there are not enough messages about several files, but that they were found and uploaded successfully

Paul H.

Posted

Thanks for your help,

here again the whole file.

I have downloaded the day before yesterday the plugin again from here and reinstalled. At the moment it is running again.
Possibly the file was indeed error....
I'll keep watching it.

oxide_2023-02-13.txt

KpucTaJl

Posted

if you get this again, do not reinstall the plugin, create a ticket in Discord Mad Mappers, but now everything looks good and should not cause problems

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