Failed to call hook 'OnPlayerConnected' on plugin 'AntiNoobRaid v2.0.9' (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.AntiNoobRaid.SyncTeam (BasePlayer player) [0x00057] in :0
at Oxide.Plugins.AntiNoobRaid.OnPlayerConnected (BasePlayer player) [0x00015] in :0
at Oxide.Plugins.AntiNoobRaid.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0088a] in :0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :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
KeyNotFoundException at SyncTeamFixed
hey do you have logging enabled in the plugin? if so could you post "antinoobraid_playtimecollection" along side with your data file for the plugin and the log file of the server that has the error or send it to me it via PM.
from what I can tell the plugin failed to get the playtime of a player from playtime tracker probably because they left as soon as they joined but was able to join a team before leaving and the plugin failed to mark them as non-noob on 2nd attempt on getting the playtime.
If thats the case the log "antinoobraid_playtimecollection" from the plugin should show me if it failed the get the playtime of the player and then the data file should show me if he's in there or not and then the server log should show me when he connected and disconeccted from the server so I know how long the player was joined for.
[05/08/2022 10:02:12] - Successfully got playtime info for 76561############
[05/08/2022 10:02:12] - Successfully got playtime info for 76561############
[05/08/2022 10:02:12] - Successfully got playtime info for 76561############
[05/08/2022 10:02:12] - Successfully got playtime info for 76561############
[05/08/2022 10:02:12] - Successfully got playtime info for 76561############
[05/08/2022 10:02:12] - Successfully got playtime info for 76561############
[05/08/2022 10:02:13] - Successfully got playtime info for 76561############
[05/08/2022 10:02:13] - Successfully got playtime info for 76561############
[05/08/2022 10:02:13] - Successfully got playtime info for 76561############
[05/08/2022 10:02:13] - Successfully got playtime info for 76561############
[05/08/2022 10:07:10] - Successfully got playtime info for 76561############
Merged post
and this is from antinoob_inactive:
[05/08/2022 10:02:10] - 76561############ hasn't connected for 4 days so he lost his noob status
[05/08/2022 10:02:11] - 76561############ hasn't connected for 4 days so he lost his noob status
[05/08/2022 10:02:11] - 76561############ hasn't connected for 4 days so he lost his noob status
[05/08/2022 10:02:11] - 76561############ hasn't connected for 4 days so he lost his noob status
[05/08/2022 10:02:11] - 76561############ hasn't connected for 4 days so he lost his noob status
[05/08/2022 10:02:11] - 76561############ hasn't connected for 4 days so he lost his noob status
[05/08/2022 10:02:11] - 76561############ hasn't connected for 4 days so he lost his noob status
[05/08/2022 10:02:11] - 76561############ hasn't connected for 4 days so he lost his noob status
[05/08/2022 10:02:11] - 76561############ hasn't connected for 4 days so he lost his noob status
[05/08/2022 10:02:12] - 76561############ hasn't connected for 4 days so he lost his noob status
I have the same error can you install this debug version? it will help track down exactly what area I need to look at and send me what it says. some example on what i expect to show in console below. Download Link: AntiNoobRaid.cs V2.1.0 Debug 0.0.2
example when no error occurs
(00:59:52) | [AntiNoobRaid] OnPlayerConnected 0(00:59:52) | [AntiNoobRaid] OnPlayerConnected 1(00:59:52) | [AntiNoobRaid] SyncTeam 0(00:59:52) | [AntiNoobRaid] SyncTeam 1(00:59:52) | [AntiNoobRaid] SyncTeam 2(00:59:52) | [AntiNoobRaid] SyncTeam 3(00:59:52) | [AntiNoobRaid] SyncTeam 4(00:59:52) | 127.0.0.1:49549/76561############/RustPlayer joined [windows/76561############]
or
(00:59:52) | [AntiNoobRaid] OnPlayerConnected 0(00:59:52) | [AntiNoobRaid] OnPlayerConnected 1(00:59:52) | [AntiNoobRaid] SyncTeam 0(00:59:52) | [AntiNoobRaid] SyncTeam 1(00:59:52) | [AntiNoobRaid] SyncTeam 2(00:59:52) | [AntiNoobRaid] SyncTeam 6(00:59:52) | [AntiNoobRaid] SyncTeam 7(00:59:52) | 127.0.0.1:49549/76561############/RustPlayer joined [windows/76561############]
example when error occurs
(00:59:52) | [AntiNoobRaid] OnPlayerConnected 0
(00:59:52) | [AntiNoobRaid] OnPlayerConnected 1
(00:59:52) | [AntiNoobRaid] SyncTeam 0
(00:59:52) | [AntiNoobRaid] SyncTeam 1
(00:59:52) | [AntiNoobRaid] SyncTeam 2
(00:59:52) | Failed to call hook 'OnPlayerConnected' on plugin 'AntiNoobRaid v2.1.0' (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.AntiNoobRaid.SyncTeam (BasePlayer player) [0x0008a] in <113452d39abf4e6bac5ff6bd8ab2a68e>:0
at Oxide.Plugins.AntiNoobRaid.OnPlayerConnected (BasePlayer player) [0x00037] in <113452d39abf4e6bac5ff6bd8ab2a68e>:0
at Oxide.Plugins.AntiNoobRaid.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0088a] in <113452d39abf4e6bac5ff6bd8ab2a68e>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <e23ba2c0f246426296d81c842cbda3af>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <46ff2b534abb4b35952608167523b7ec>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <46ff2b534abb4b35952608167523b7ec>:0
(00:59:52) | 127.0.0.1:49549/76561############/RustPlayer joined [windows/76561############] okay i install the debug version 2.0.. where can i see more information what you need?
Merged post
i mean version 2.1
nonstopKRQokay i install the debug version 2.0.. where can i see more information what you need?
Merged post
i mean version 2.1
The infomation I need is what I mention before and gave example's of and it can be found in your console window or in the oxide log's under oxide\logs. I just need when it error's out like in the third example. Also when it error's out it would be great to know if the person was on a team and if so was any of there team mate online at the time.
[06/05/2022 00:52:19] - Structure at (1536.2, 4.0, 988.4) has no owner
[06/05/2022 00:55:36] - Structure at (1537.7, 1.0, 991.0) has no owner
[06/05/2022 01:01:44] - Structure at (-1083.5, 6.8, 1646.7) has no owner
[06/06/2022 16:51:59] - Structure at (-1065.9, 1.0, -1934.2) has no owner
[06/06/2022 16:52:00] - Structure at (-1059.9, 1.1, -1932.9) has no owner
this comes from the AntiNoobRaid Log from oxide/logs
Merged post
12:38 [Info] [AntiNoobRaid] OnPlayerConnected 0
12:38 [Info] [AntiNoobRaid] OnPlayerConnected 1
12:38 [Info] [AntiNoobRaid] SyncTeam 0
12:38 [Info] [AntiNoobRaid] SyncTeam 1
12:38 [Info] [AntiNoobRaid] SyncTeam 2
12:38 [Info] [AntiNoobRaid] SyncTeam 3
12:38 [Info] [AntiNoobRaid] SyncTeam 4
12:38 [Info] [AntiNoobRaid] SyncTeam 2
12:38 [Error] Failed to call hook 'OnPlayerConnected' on plugin 'AntiNoobRaid v2.1.0' (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.AntiNoobRaid.SyncTeam (BasePlayer player) [0x00095] in <bd93813efb85484e992557cee1630fb5>:0
at Oxide.Plugins.AntiNoobRaid.OnPlayerConnected (BasePlayer player) [0x00037] in <bd93813efb85484e992557cee1630fb5>:0
at Oxide.Plugins.AntiNoobRaid.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0088a] in <bd93813efb85484e992557cee1630fb5>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <e23ba2c0f246426296d81c842cbda3af>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <46ff2b534abb4b35952608167523b7ec>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <46ff2b534abb4b35952608167523b7ec>:0
and this from my console
Could you post a list of the plugins installed on ther server and also your config file for Anti Noob Raid?
This should fix this issue as it will now add the user on connect with 0.0 time to the data file as a safeguard. Only way for the error to happen now is if you have a plugin that auto add's a player to a team and that player hasn't joined yet. Let me know in a couple of days if it has worked for you or not. AntiNoobRaid.cs V2.1.0 Debug 0.0.7
MasterSplinter
Could you post a list of the plugins installed on ther server and also your config file for Anti Noob Raid?
Listing 110 plugins: 01 "AAlertRaidEN" (0.0.72) by fermens (0.03s) - AAlertRaidEN.cs 02 "AFDrops" (1.3.2) by ZTL/FastBurst (0.64s) - AFDrops.cs 03 "AdminMenu" (0.1.50) by k1lly0u (1.02s) - AdminMenu.cs 04 "Admin Radar" (5.1.9) by nivex (13.56s) - AdminRadar.cs 05 "Advert Messages" (3.0.2) by LaserHydra (0.02s) - AdvertMessages.cs 06 "Auto Commands" (2.0.1) by Wulf (0.00s) - AutoCommands.cs 07 "Auto Demo Record" (1.2.71) by Pho3niX90 (0.00s) - AutoDemoRecord.cs 08 "Auto Doors" (3.2.9) by Wulf/lukespragg/Arainrr (0.56s) - AutoDoors.cs 09 "Automatic Authorization" (1.3.0) by k1lly0u/Arainrr (0.33s) - AutomaticAuthorization.cs 10 "Backpacks" (3.7.2) by LaserHydra (0.59s) - Backpacks.cs 11 "Better Electricity" (1.2.3) by dbteku (2.91s) - BetterElectricity.cs 12 "BetterLoot" (3.5.8) by Tryhard & Khan (9.30s) - BetterLoot.cs 13 "Blueprint Share" (1.2.8) by c_creep (0.04s) - BlueprintShare.cs 14 "Building Grades" (1.0.5) by Default/Arainrr (0.00s) - BuildingGrades.cs 15 "Building Workbench" (1.3.2) by MJSU (2.81s) - BuildingWorkbench.cs 16 "CargoTrainEvent" (1.0.11) by Nikedemos (8.93s) - CargoTrainEvent.cs 17 "ChatNations" (1.1.1) by ThePitereq (0.32s) - ChatNations.cs 18 "Chest Stacks" (1.3.1) by supreme (0.23s) - ChestStacks.cs 19 "Clans" (1.0.23) by Mevent (59.15s) - Clans.cs 20 "Clear Night" (2.3.5) by Clearshot (2.10s) - ClearNight.cs 21 "Convoy" (2.0.8) by Adem (0.01s) - Convoy.cs 22 "Copy Paste" (4.1.31) by misticos (0.90s) - CopyPaste.cs 23 "CustomNPC" (2.0.5) by k1lly0u (0.45s) - CustomNPC.cs 24 "PlaneCrash" (0.3.3) by k1lly0u (0.03s) - PlaneCrash.cs 25 "DeathMessages" (1.4.4) by VooDoo (2.53s) - DeathMessages.cs 26 "Discord Call Admin" (1.0.0) by evlad (0.04s) - DiscordCallAdmin.cs 27 "Discord Chat" (2.1.2) by MJSU (0.01s) - DiscordChat.cs 28 "Discord Core" (2.1.0) by MJSU (0.03s) - DiscordCore.cs 29 "Discord Messages Chat" (1.0.4) by Slut (0.00s) - DiscordMessagesChat.cs 30 "Discord Report" (1.2.0) by misticos (0.01s) - DiscordReport.cs 31 "Discord Rewards" (1.4.0) by birthdates (0.01s) - DiscordRewards.cs 32 "EasyCommands" (1.0.1) by Lockdown (0.00s) - EasyCommands.cs 33 "EasyDiscord" (1.0.1) by Lockdown (0.00s) - EasyDiscord.cs 34 "EasyJoin" (1.0.1) by Lockdown (0.03s) - EasyJoin.cs 35 "EasyRules" (1.0.1) by Lockdown (0.00s) - EasyRules.cs 36 "Economics" (3.9.1) by Wulf (0.05s) - Economics.cs 37 "ESP Detection" (1.0.16) by Pho3niX90 (0.03s) - EspDetection.cs 38 "FancyDrop" (3.2.2) by FastBurst (9.26s) - FancyDrop.cs 39 "Furnace Splitter" (2.4.1) by FastBurst (4.97s) - FurnaceSplitter.cs 40 "GUIAnnouncements" (2.0.3) by JoeSheep (5.20s) - GUIAnnouncements.cs 41 "Gathering Manager" (2.2.75) by Mughisi (0.24s) - GatherManager.cs 42 "Godmode" (4.2.10) by Wulf/lukespragg/Arainrr (0.04s) - Godmode.cs 43 "Guarded Crate" (1.6.3) by Bazz3l (0.37s) - GuardedCrate.cs 44 "GuessNumber" (1.0.4) by LAGZYA (0.02s) - GuessNumber.cs 45 "HarborEvent" (2.0.4) by KpucTaJl (0.00s) - HarborEvent.cs 46 "Hit Markers" (1.2.0) by Mevent (0.44s) - HitMarkers.cs 47 "Hotbars" (1.0.3) by Death (0.30s) - Hotbars.cs 48 "IQParachute" (1.2.6) by Mercury (10.36s) - IQParachute.cs 49 "Image Library" (2.0.60) by Absolut & K1lly0u (1.92s) - ImageLibrary.cs 50 "Raid Limit" (2.2.3) by noname (2.59s) - RaidLimit.cs 51 "Instant Craft" (2.2.1) by Vlad-0003 / Orange / rostov114 (0.10s) - InstantCraft.cs 52 "Inventory Viewer" (4.0.4) by Whispers88 (0.01s) - InventoryViewer.cs 53 "JunkyardEvent" (2.0.3) by KpucTaJl (0.00s) - JunkyardEvent.cs 54 "Kits" (4.0.14) by k1lly0u (0.78s) - Kits.cs 55 "Loading Messages" (1.0.6) by CosaNostra/Def (0.55s) - LoadingMessages.cs 56 "Lone.Design Update Checker" (1.2.3) by Nikedemos / DezLife / nivex (0.02s) - LoneUpdateChecker.cs 57 "Loot Bouncer" (1.0.7) by Sorrow/Arainrr (0.35s) - LootBouncer.cs 58 "Magic Panel" (1.0.8) by MJSU (0.01s) - MagicPanel.cs 59 "My Mini Copter" (0.4.1) by RFC1920 (1.94s) - MyMiniCopter.cs 60 "NTeleportation" (1.6.8) by nivex (0.79s) - NTeleportation.cs 61 "No Craft" (1.0.0) by Ryan (0.01s) - NoCraft.cs 62 "No Escape" (2.1.35) by Calytic (2.29s) - NoEscape.cs 63 "No Give Notices" (0.3.0) by Wulf (0.00s) - NoGiveNotices.cs 64 "No MLRS Mount" (1.0.4) by Lincoln (0.00s) - NoMLRSMount.cs 65 "Notify" (1.0.8) by Mevent (0.03s) - Notify.cs 66 "NpcSpawn" (2.2.7) by KpucTaJl (2.11s) - NpcSpawn.cs 67 "Performance Monitor" (1.2.4) by Orange (0.01s) - PerformanceMonitor.cs 68 "Personal Marketplace" (1.1.9) by ZEODE (1.97s) - PersonalMarketplace.cs 69 "Placeholder API" (2.2.1) by misticos (0.03s) - PlaceholderAPI.cs 70 "Player Challenges" (2.0.47) by k1lly0u (2.90s) - PlayerChallenges.cs 71 "Playtime Tracker" (0.2.2) by k1lly0u (0.63s) - PlaytimeTracker.cs 72 "Plugin Update Notifications" (1.1.0) by Whispers88 (0.00s) - PluginUpdateNotifications.cs 73 "PowerPlantEvent" (2.0.1) by KpucTaJl (0.00s) - PowerPlantEvent.cs 74 "QuarryLevels" (1.3.3) by ninco90 (0.29s) - QuarryLevels.cs 75 "Quick Smelt" (5.1.3) by Iv Misticos (1.39s) - QuickSmelt.cs 76 "Radio Station Manager" (1.0.2) by Whispers88 (0.01s) - RadioStationManager.cs 77 "Raid Protection" (2.1.7) by mr01sam (7.22s) - RaidProtection.cs 78 "Raidable Bases" (2.4.7) by nivex (75.05s) - RaidableBases.cs 79 "Recycler Speed" (2.0.2) by Ryz0r/yetzt (0.00s) - RecyclerSpeed.cs 80 "Remove Animals AI" (1.0.3) by Orange (0.35s) - RemoveAnimalsAI.cs 81 "Remover Tool" (4.3.31) by Reneb/Fuji/Arainrr (0.02s) - RemoverTool.cs 82 "Rename" (1.1.0) by Wulf (0.03s) - Rename.cs 83 "SAMSiteAuth" (2.4.1) by haggbart (0.01s) - SAMSiteAuth.cs 84 "Safe Kick" (1.1.0) by supreme (0.01s) - SafeKick.cs 85 "Shop" (1.1.2) by Mevent (0.48s) - Shop.cs 86 "Simple Sort" (1.0.7) by birthdates (0.16s) - SimpleSort.cs 87 "Skinner" (1.1.7) by Whispers88 (0.08s) - Skinner.cs 88 "SkipNightUI" (0.1.2) by k1lly0u (1.46s) - SkipNightUI.cs 89 "Stack Size Controller" (4.1.1) by AnExiledDev (1.30s) - StackSizeController.cs 90 "Stash warning system" (1.2.85) by Pho3niX90 (0.43s) - StashWarning.cs 91 "StaticTrader" (1.2.6) by Raul-Sorin Sorban (0.13s) - StaticTrader.cs 92 "Statistics" (1.0.13) by Mevent (2.80s) - Statistics.cs 93 "Team Fix" (1.0.6) by Khan (0.06s) - TeamFix.cs 94 "TeamVoiceChat" (1.0.1) by Cameron (0.00s) - TeamVoiceChat.cs 95 "Tebex Donate" (1.7.0) by Tebex (0.05s) - TebexDonate.cs 96 "TimeOfDay" (2.3.4) by FuJiCuRa (0.00s) - TimeOfDay.cs 97 "UpdateChecker" (1.0.6) by AhigaO#4485 (0.01s) - UpdateChecker.cs 98 "Vanish" (1.6.6) by Whispers88 (0.11s) - Vanish.cs 99 "Vehicle Decay Protection" (1.6.0) by WhiteThunder (1.57s) - VehicleDecayProtection.cs 100 "VoteMap" (1.1.4) by David (0.00s) - VoteMap.cs 101 "VoteRewards" (2.1.1) by k1lly0u (0.03s) - Voter.cs 102 "WPKits" (1.1.4) by David (0.03s) - WPKits.cs 103 "WPSocialLinks" (1.1.4) by David (0.00s) - WPSocialLinks.cs 104 "WPVipRanks" (1.1.4) by David (0.00s) - WPVipRanks.cs 105 "WPWipeCycle" (1.1.4) by David (0.00s) - WPWipeCycle.cs 106 "WelcomePanel" (3.0.7) by David (11.14s) - WelcomePanel.cs 107 "WipeCountdown" (1.0.2) by David (0.01s) - WipeCountdown.cs 108 "WipeProtection" (2.1.3) by FastBurst (1.59s) - WipeProtection.cs 109 "XMenu" (1.0.804) by Monster (2.49s) - XMenu.cs 110 "XSkinMenu" (1.0.502) by Moster (1.35s) - XSkinMenu.cs
MasterSplinter
This should fix this issue as it will now add the user on connect with 0.0 time to the data file as a safeguard. Only way for the error to happen now is if you have a plugin that auto add's a player to a team and that player hasn't joined yet. Let me know in a couple of days if it has worked for you or not. AntiNoobRaid.cs V2.1.0 Debug 0.0.7
clans plugin create automaticly a team for a new clan.. if someone create a clan.. he create automaticly a team
nonstopKRQclans plugin create automaticly a team for a new clan.. if someone create a clan.. he create automaticly a team
That could be the issue if it acts anything like the one by k1lly0u, won't wipe clans on new wipe so therefore doing what I said earlier. I just made a failsafe that will check every team on the server X amount of seconds and if it finds a player not in the data file it will add them with 0 like my other safegaurd. Since your Clans plugin is a paid plugin I can't completely say this will work but I tested it with ClanTeam and TeamFix by manually adding/removing players or teams in its datafile.
I've been totally reworking the teamsync feature and how it works as i found a major issue that I missed originally. I forgot about playtime tracker and how it continuously checking times. So after the teamsync feature synced the teams playtime, playtime tracker would come along after in about 30 seconds and overwrite the times that just got synced so now the team's playtime won't be synced. This version should fix everything hopefully, Been working on it for the last 6 days so hope so lmao. also this version does not have any debugging in it like the last ones as it would spam your console every 30 seconds or so. Like last time let me know if this give's you any issue's or not AntiNoobRaid.cs V2.1.0 Debug 0.2.7
i will try it
Merged post
[AntiNoobRaid] 76561############ hasn't connected for 3 days so he lost his noob status (can be raided)
Failed to run a 30.00 timer in 'AntiNoobRaid v2.1.0' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.AntiNoobRaid.SyncTeam (RelationshipManager+PlayerTeam team, System.Boolean APISync) [0x0002a] in :0
at Oxide.Plugins.AntiNoobRaid.RemoveInactive () [0x001b1] in :0
at Oxide.Plugins.AntiNoobRaid.m__B () [0x00000] in :0
at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <46ff2b534abb4b35952608167523b7ec>:0
nonstopKRQi will try it
Merged post[AntiNoobRaid] 76561############ hasn't connected for 3 days so he lost his noob status (can be raided)
Failed to run a 30.00 timer in 'AntiNoobRaid v2.1.0' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.AntiNoobRaid.SyncTeam (RelationshipManager+PlayerTeam team, System.Boolean APISync) [0x0002a] in :0
at Oxide.Plugins.AntiNoobRaid.RemoveInactive () [0x001b1] in :0
at Oxide.Plugins.AntiNoobRaid.m__B () [0x00000] in :0
at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <46ff2b534abb4b35952608167523b7ec>:0
ahh thank god it's only that and not the KeyNotFoundException error. So hopefully that mean's I'm on the right track and I just forgot to null check something so I can upload another one for you soon.
- 1
- 2