Jump to content

spamming console

Pending 1.0.8

pookins
pookins

Posted

I keep getting this error message after the server has been up for about 14-18hours,  I have been experimenting on reloading each plugin to see if it will stop and the only one (so far) that seems to stop it is this one ?. once i reload BotRespawn the message dissappears

KeyNotFoundExceeption: The given key was not present in the dictionary.

KeyNotFoundExceeption: The given key was not present in the dictionary.   etc, etc

 

  • Administrator
Steenamaroo

Posted

Hi Pookins,
Would you be able to paste a copy of the full error, please?
There should, hopefully, be more information, pointing to the code where the issue is.

pookins

Posted (edited)

44 minutes ago, Steenamaroo said:

Hi Pookins,
Would you be able to paste a copy of the full error, please?
There should, hopefully, be more information, pointing to the code where the issue is.

That is it actually . nothing seems to trigger it,  sometimes i get the "NullReferenceException" as well but not always,

Plugin is running very well and very crazy with how close a lot of monuments are, I am using RustIO map seed 411964463 and the bottom left corner for instance has 4 monuments and the artic biome bots running around,

(23:41:22) | [Timed Execute] ran CMD: oxide.reload ProximityAlert

(23:50:29) | KeyNotFoundException: The given key was not present in the dictionary.

(23:50:31) | NullReferenceException: Object reference not set to an instance of an object

(23:50:32) | KeyNotFoundException: The given key was not present in the dictionary.

(23:50:35) | KeyNotFoundException: The given key was not present in the dictionary.

(23:50:38) | KeyNotFoundException: The given key was not present in the dictionary.

(23:50:39) | NullReferenceException: Object reference not set to an instance of an object

(23:50:41) | KeyNotFoundException: The given key was not present in the dictionary.

(23:50:44) | KeyNotFoundException: The given key was not present in the dictionary.

(23:50:47) | KeyNotFoundException: The given key was not present in the dictionary.

(23:50:47) | NullReferenceException: Object reference not set to an instance of an object

(23:50:50) | KeyNotFoundException: The given key was not present in the dictionary.

(23:50:52) | KeyNotFoundException: The given key was not present in the dictionary.

(23:50:55) | NullReferenceException: Object reference not set to an instance of an object

(23:50:55) | KeyNotFoundException: The given key was not present in the dictionary.

(23:50:58) | KeyNotFoundException: The given key was not present in the dictionary.

(23:51:01) | KeyNotFoundException: The given key was not present in the dictionary.

(23:51:03) | NullReferenceException: Object reference not set to an instance of an object

(23:51:04) | KeyNotFoundException: The given key was not present in the dictionary.

(23:51:07) | KeyNotFoundException: The given key was not present in the dictionary.

(23:51:10) | KeyNotFoundException: The given key was not present in the dictionary.

(23:51:11) | NullReferenceException: Object reference not set to an instance of an object

(23:51:13) | KeyNotFoundException: The given key was not present in the dictionary.

(23:51:16) | KeyNotFoundException: The given key was not present in the dictionary.

(23:51:19) | KeyNotFoundException: The given key was not present in the dictionary.

(23:51:19) | Saved 70,189 ents, cache(0.28), write(0.06), disk(0.02).

(23:51:19) | Saving complete

(23:51:19) | NullReferenceException: Object reference not set to an instance of an object

(23:51:22) | KeyNotFoundException: The given key was not present in the dictionary.

(23:51:25) | KeyNotFoundException: The given key was not present in the dictionary.

(23:51:27) | NullReferenceException: Object reference not set to an instance of an object

(23:51:28) | KeyNotFoundException: The given key was not present in the dictionary.

(23:51:30) | KeyNotFoundException: The given key was not present in the dictionary.

(23:51:33) | KeyNotFoundException: The given key was not present in the dictionary.

(23:51:35) | NullReferenceException: Object reference not set to an instance of an object

(23:51:36) | KeyNotFoundException: The given key was not present in the dictionary.

(23:51:39) | KeyNotFoundException: The given key was not present in the dictionary.

(23:51:42) | KeyNotFoundException: The given key was not present in the dictionary.

(23:51:43) | NullReferenceException: Object reference not set to an instance of an object

(23:51:45) | KeyNotFoundException: The given key was not present in the dictionary.

(23:51:48) | KeyNotFoundException: The given key was not present in the dictionary.

(23:51:51) | KeyNotFoundException: The given key was not present in the dictionary.

(23:51:51) | NullReferenceException: Object reference not set to an instance of an object

(23:51:54) | KeyNotFoundException: The given key was not present in the dictionary.

(23:51:57) | KeyNotFoundException: The given key was not present in the dictionary.

(23:51:59) | NullReferenceException: Object reference not set to an instance of an object

(23:52:00) | KeyNotFoundException: The given key was not present in the dictionary.

(23:52:03) | KeyNotFoundException: The given key was not present in the dictionary.

(23:52:06) | KeyNotFoundException: The given key was not present in the dictionary.

(23:52:07) | NullReferenceException: Object reference not set to an instance of an object

(23:52:08) | KeyNotFoundException: The given key was not present in the dictionary.

(23:52:11) | KeyNotFoundException: The given key was not present in the dictionary.

(23:52:14) | KeyNotFoundException: The given key was not present in the dictionary.

(23:52:15) | NullReferenceException: Object reference not set to an instance of an object

(23:52:17) | KeyNotFoundException: The given key was not present in the dictionary.

(23:52:20) | KeyNotFoundException: The given key was not present in the dictionary.

(23:52:23) | KeyNotFoundException: The given key was not present in the dictionary.

(23:52:23) | NullReferenceException: Object reference not set to an instance of an object

(23:52:26) | KeyNotFoundException: The given key was not present in the dictionary.

(23:52:29) | KeyNotFoundException: The given key was not present in the dictionary.

(23:52:31) | NullReferenceException: Object reference not set to an instance of an object

(23:52:32) | KeyNotFoundException: The given key was not present in the dictionary.

(23:52:35) | KeyNotFoundException: The given key was not present in the dictionary.

(23:52:38) | KeyNotFoundException: The given key was not present in the dictionary.

(23:52:39) | NullReferenceException: Object reference not set to an instance of an object

(23:52:41) | KeyNotFoundException: The given key was not present in the dictionary.

(23:52:43) | KeyNotFoundException: The given key was not present in the dictionary.

(23:52:46) | KeyNotFoundException: The given key was not present in the dictionary.

(23:52:47) | NullReferenceException: Object reference not set to an instance of an object

(23:52:49) | KeyNotFoundException: The given key was not present in the dictionary.

(23:52:52) | KeyNotFoundException: The given key was not present in the dictionary.

(23:52:55) | NullReferenceException: Object reference not set to an instance of an object

(23:52:55) | KeyNotFoundException: The given key was not present in the dictionary.

(23:52:58) | KeyNotFoundException: The given key was not present in the dictionary.

(23:53:01) | KeyNotFoundException: The given key was not present in the dictionary.

(23:53:03) | NullReferenceException: Object reference not set to an instance of an object

(23:53:04) | KeyNotFoundException: The given key was not present in the dictionary.

(23:53:07) | KeyNotFoundException: The given key was not present in the dictionary.

(23:53:10) | KeyNotFoundException: The given key was not present in the dictionary.

(23:53:11) | NullReferenceException: Object reference not set to an instance of an object

(23:53:13) | KeyNotFoundException: The given key was not present in the dictionary.

(23:53:16) | KeyNotFoundException: The given key was not present in the dictionary.

(23:53:19) | KeyNotFoundException: The given key was not present in the dictionary.

(23:53:19) | NullReferenceException: Object reference not set to an instance of an object

(23:53:22) | KeyNotFoundException: The given key was not present in the dictionary.

(23:53:24) | KeyNotFoundException: The given key was not present in the dictionary.

(23:53:27) | NullReferenceException: Object reference not set to an instance of an object

(23:53:27) | KeyNotFoundException: The given key was not present in the dictionary.

(23:53:30) | KeyNotFoundException: The given key was not present in the dictionary.

(23:53:33) | KeyNotFoundException: The given key was not present in the dictionary.

(23:53:35) | NullReferenceException: Object reference not set to an instance of an object

(23:53:36) | KeyNotFoundException: The given key was not present in the dictionary.

(23:53:39) | KeyNotFoundException: The given key was not present in the dictionary.

(23:53:42) | KeyNotFoundException: The given key was not present in the dictionary.

(23:53:43) | NullReferenceException: Object reference not set to an instance of an object

(23:53:45) | KeyNotFoundException: The given key was not present in the dictionary.

(23:53:48) | KeyNotFoundException: The given key was not present in the dictionary.

(23:53:48) | Invalid Position: chicken.corpse[5710533] (-1029.4, -501.5, 1454.2) (destroying)

(23:53:51) | KeyNotFoundException: The given key was not present in the dictionary.

(23:53:51) | NullReferenceException: Object reference not set to an instance of an object

(23:53:54) | KeyNotFoundException: The given key was not present in the dictionary.

(23:53:57) | KeyNotFoundException: The given key was not present in the dictionary.

(23:53:59) | NullReferenceException: Object reference not set to an instance of an object

(23:54:00) | KeyNotFoundException: The given key was not present in the dictionary.

(23:54:02) | KeyNotFoundException: The given key was not present in the dictionary.

(23:54:05) | KeyNotFoundException: The given key was not present in the dictionary.

(23:54:07) | NullReferenceException: Object reference not set to an instance of an object

(23:54:08) | KeyNotFoundException: The given key was not present in the dictionary.

(23:54:11) | KeyNotFoundException: The given key was not present in the dictionary.

(23:54:14) | KeyNotFoundException: The given key was not present in the dictionary.

(23:54:15) | NullReferenceException: Object reference not set to an instance of an object

(23:54:17) | KeyNotFoundException: The given key was not present in the dictionary.

(23:54:20) | KeyNotFoundException: The given key was not present in the dictionary.

(23:54:23) | KeyNotFoundException: The given key was not present in the dictionary.

(23:54:23) | NullReferenceException: Object reference not set to an instance of an object

(23:54:26) | KeyNotFoundException: The given key was not present in the dictionary.

(23:54:29) | KeyNotFoundException: The given key was not present in the dictionary.

(23:54:31) | NullReferenceException: Object reference not set to an instance of an object

(23:54:32) | KeyNotFoundException: The given key was not present in the dictionary.

Edited by pookins
misspelling
  • Administrator
Steenamaroo

Posted

Ok, thanks.
Do you have -logfile set in your server startup script?
If you have that (or do that), the server should log more detailed information to file, which would be very helpful.

Also, are you on the most recent version of BotReSpawn - V1.0.8 ?

pookins

Posted

24 minutes ago, Steenamaroo said:

Ok, thanks.
Do you have -logfile set in your server startup script?
If you have that (or do that), the server should log more detailed information to file, which would be very helpful.

Also, are you on the most recent version of BotReSpawn - V1.0.8 ?

Yes I am. I found this log file which encompassed the same time frame as my post but the error message does not appear ? it seems to only output to console ?oxide_2022-04-12.txtoxide_2022-04-12.txt

pookins

Posted (edited)

27 minutes ago, Steenamaroo said:

Ok, thanks.
Do you have -logfile set in your server startup script?
If you have that (or do that), the server should log more detailed information to file, which would be very helpful.

Also, are you on the most recent version of BotReSpawn - V1.0.8 ?

I keep trying to show an earlier spam event but for some reason it wont let me so i have attached a text filebotrespawn spam.txt

I will see if i can find which log file it would be saved in. (these posts are out of order)

Edited by pookins
  • Administrator
Steenamaroo

Posted

If -logfile is set in your startup script then the file name would be specified there.
For example, I have RustDedicated.exe -batchmode -nographics -logfile "log.txt"

log.txt then appears in the /server folder and is wiped every time the server starts up

  • Moderator
Mals

Posted

I did some testing.  I am getting something like that on the call to kits, but all the kits exist:

(06:46:36) | Unloaded plugin BotReSpawn v1.0.9 by Steenamaroo
(06:46:36) | Loaded plugin BotReSpawn v1.0.9 by Steenamaroo
(06:46:37) | [BotReSpawn] NoSash plugin is installed
(06:46:37) | [BotReSpawn] Target_Noobs option is now disabled.
(06:46:37) | [BotReSpawn] BotReSpawn NPCs will target noob players.
(06:46:37) | Failed to call hook 'GetKitInfo' on plugin 'Kits v4.0.14' (KeyNotFoundException: The given key was not present in the dictionary.)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at Oxide.Plugins.Kits+ItemData.get_ItemID () [0x00017] in <4d1350a537ef4fe399507800c30ac2fe>:0 
  at Oxide.Plugins.Kits.GetItemObject_Old (Newtonsoft.Json.Linq.JArray& array, Oxide.Plugins.Kits+ItemData[] items, System.String container) [0x00038] in <4d1350a537ef4fe399507800c30ac2fe>:0 
  at Oxide.Plugins.Kits.GetKitInfo (System.String name) [0x00103] in <4d1350a537ef4fe399507800c30ac2fe>:0 
  at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00f31] in <4d1350a537ef4fe399507800c30ac2fe>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <50629aa0e75d4126b345d8d9d64da28d>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <50629aa0e75d4126b345d8d9d64da28d>:0

 

  • Administrator
Steenamaroo

Posted

Hey Mals,
That error's coming from Kits plugin, so I guess there's something about one of the kits which isn't working well.
If you're happy to share your Kits data file with me and I can find out what, and why. 

  • Love 1
pookins

Posted (edited)

3 hours ago, Mals said:

I added a try and a puts.  It is looking for and not finding an Easter kit.  Oddly BotReSpawn has no reference to that kit.  And that kit exists... very confusing.

normal-CustomProfiles.json 55 B · 0 downloads normal-DefaultProfiles.json 225.37 kB · 0 downloads normal-SpawnsData.json 3.55 kB · 0 downloads

post your kits data config , did you redeem the Easter kit to make sure that it was created ?

and to save time going through the whole default botspawn file (where you have to open each file and each spawn file) which monument bots have the Easter kit ?

Edited by pookins
saaving time
  • Like 1
pookins

Posted (edited)

20 hours ago, Steenamaroo said:

Hi Pookins,
Would you be able to paste a copy of the full error, please?
There should, hopefully, be more information, pointing to the code where the issue is.

found the file (from today)

-logfile "RuustDedicated_Data\output_log.txt

 

(Filename: <eae584ce26bc40229c1b1aa476bfa589> Line: 0)

KeyNotFoundException: The given key was not present in the dictionary.

KeyNotFoundException: The given key was not present in the dictionary.

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

  at Oxide.Plugins.BotReSpawn.BestRange (Oxide.Plugins.BotReSpawn+BotData bdata, Oxide.Plugins.BotReSpawn+Range targetrange) [0x00133] in <ecac58c34d324f47828d0423fcb3032f>:0

  at Oxide.Plugins.BotReSpawn.SelectWeapon (ScientistNPC npc, Oxide.Plugins.BotReSpawn+BotData bData, BaseAIBrain`1[T] brain) [0x000eb] in <ecac58c34d324f47828d0423fcb3032f>:0

  at Oxide.Plugins.BotReSpawn+BotData.SelectWeapon () [0x00000] in <ecac58c34d324f47828d0423fcb3032f>:0

 

(Filename: <eae584ce26bc40229c1b1aa476bfa589> Line: 0)

NullReferenceException: Object reference not set to an instance of an object

NullReferenceException: Object reference not set to an instance of an object

  at Oxide.Plugins.BotReSpawn+BotData.KILL () [0x00000] in <ecac58c34d324f47828d0423fcb3032f>:0

 

 

Edited by Steenamaroo
pookins

Posted (edited)

4 hours ago, Mals said:

I added a try and a puts.  It is looking for and not finding an Easter kit.  Oddly BotReSpawn has no reference to that kit.  And that kit exists... very confusing.

normal-CustomProfiles.json 55 B · 1 download normal-DefaultProfiles.json 225.37 kB · 3 downloads normal-SpawnsData.json 3.55 kB · 0 downloads

Just went through your normal default file with notepad++ and it could not find the word "Easter" or "easter"  ?   make sure when you assign a kit that the spelling is EXACTLY the same , if you create a kit with a capital letter the assigned kit must also have the capitol letter, I had the same problem a little while ago and had to go through 40+ kits and BotRespawn to correct the problem

Edited by pookins
pookins

Posted (edited)

Still getting the spam BUT now it starts as soon as i updated BotRespawn V1.0.9  and does not stop when i reload it again (as it did with previous version)  ??

I have just restarted the server at 5pm (Aest) and will see how long before the spam starts,

 

(Filename: <eae584ce26bc40229c1b1aa476bfa589> Line: 0)

KeyNotFoundException: The given key was not present in the dictionary.

KeyNotFoundException: The given key was not present in the dictionary.

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

at Oxide.Plugins.BotReSpawn.BestRange (Oxide.Plugins.BotReSpawn+BotData bdata, Oxide.Plugins.BotReSpawn+Range targetrange) [0x00133] in <37066cd03fd046f3866a81d191e6863c>:0

at Oxide.Plugins.BotReSpawn.SelectWeapon (ScientistNPC npc, Oxide.Plugins.BotReSpawn+BotData bData, BaseAIBrain`1[T] brain) [0x000eb] in <37066cd03fd046f3866a81d191e6863c>:0

at Oxide.Plugins.BotReSpawn+BotData.SelectWeapon () [0x00000] in <37066cd03fd046f3866a81d191e6863c>:0

Edited by Steenamaroo
restarted server
  • Administrator
Steenamaroo

Posted

@Mals- That makes sense. BotReSpawn displays all kit names to you in the UI.
Prior to that it checks each kit to ensure there's a weapon in the belt, so that it's not showing the BotReSpawn user kits which won't work.

BotReSpawn.cs is checking all Kits and, based on the Kits.cs error message, that Easter kit has some item in it that's causing Kits.cs an issue.

  • Administrator
Steenamaroo

Posted

@pookins- Thanks for taking the time to get those proper logs.
That's really helpful. I'll get back to you today.

  • Moderator
Mals

Posted

6 hours ago, Steenamaroo said:

@Mals- That makes sense. BotReSpawn displays all kit names to you in the UI.
Prior to that it checks each kit to ensure there's a weapon in the belt, so that it's not showing the BotReSpawn user kits which won't work.

BotReSpawn.cs is checking all Kits and, based on the Kits.cs error message, that Easter kit has some item in it that's causing Kits.cs an issue.

Egg.suit  they added, then removed it.  I had added it in the kit, then they stealth removed it.

  • Administrator
Steenamaroo

Posted

Perfect! Good one to know. Thanks, @Mals

JessieJane

Posted

ME TOO:

 

Failed to call hook 'OnEntitySpawned' on plugin 'BotReSpawn v1.0.6' (KeyNotFoundException: The given key was not present in the dictionary.)

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

at Oxide.Plugins.BotReSpawn.DoEvent (System.String name, UnityEngine.Vector3 pos) [0x00000] in <6732c076978647a9b4539d59c31d71ab>:0

at Oxide.Plugins.BotReSpawn.OnEntitySpawned (HackableLockedCrate crate) [0x0003d] in <6732c076978647a9b4539d59c31d71ab>:0

at Oxide.Plugins.BotReSpawn.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00763] in <6732c076978647a9b4539d59c31d71ab>:0

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

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

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

  • Administrator
Steenamaroo

Posted

Hi @JessieJane,
That's not quite the same error, although I know exactly what it is.
It's totally harmless and was fixed in V1.0.7. 👍

  • Like 1
pookins

Posted

3 hours ago, Steenamaroo said:

Hi @JessieJane,
That's not quite the same error, although I know exactly what it is.
It's totally harmless and was fixed in V1.0.7. 👍

Server been running since 1pm yesterday and no spamming (so far) , will check after oxide update tomorrow

  • Administrator
Steenamaroo

Posted

Ok, thank you for the update Pookins.
I've been looking, and trying various things, but haven't replicated it yet.
Don't want you think think I've forgotten or ignored, though. 👍

  • Like 1
pookins

Posted

22 hours ago, Mals said:

Egg.suit  they added, then removed it.  I had added it in the kit, then they stealth removed it.

Just restarting my server and noticed this come up in console while loading

Stack Size Controller] Adding new item attire.egg.suit to IndividualItemStackSize in configuration.

[Stack Size Controller] Adding new item attire.egg.suit to IndividualItemStackSize in configuration.

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