Jump to content

OnPlayerConnected hook error

Closed 2.1.12 2.1.13

Hi,

I am getting this error on all my servers where I have this HUD. Sometimes its just giving error below to the console and there are things missing on hud like number of players online etc. can you advise? thanks a lot

 

Failed to call hook 'OnPlayerConnected' on plugin 'Hud v2.1.12' (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.Hud.ShowUIBradleyState (BasePlayer player) [0x000b9] in <c4df524307c54318b35a06fda5354a49>:0
at Oxide.Plugins.Hud.ShowUIMain (BasePlayer player) [0x00b02] in <c4df524307c54318b35a06fda5354a49>:0
at Oxide.Plugins.Hud.OnPlayerConnected (BasePlayer player) [0x00053] in <c4df524307c54318b35a06fda5354a49>:0
at Oxide.Plugins.Hud.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00852] in <c4df524307c54318b35a06fda5354a49>: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

Share this comment


Link to comment

I reinstalled it - removed plugin, config and Hud folder at oxide data and now I am getting: and it doesnt work at all

01/08 10:55:26 | Failed to call hook 'OnServerInitialized' on plugin 'Hud v2.1.12' (InvalidCastException: Null object cannot be converted to a value type.)
at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00029] in <fb001e01371b4adca20013e0ac763896>:0
at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in <fb001e01371b4adca20013e0ac763896>:0
at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <d5f57e12edfe4fa0b5c5dbdd9b51eff8>:0
at Oxide.Plugins.Hud.EventsInit () [0x000ee] in <e6397665513244dd9f775e7ad56ac9f2>:0
at Oxide.Plugins.Hud.OnServerInitialized () [0x001b0] in <e6397665513244dd9f775e7ad56ac9f2>:0
at Oxide.Plugins.Hud.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00314] in <e6397665513244dd9f775e7ad56ac9f2>: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

Edited by Ondraasek

Share this comment


Link to comment

Hi, it happened again after reboot, do you have an idea whats wrong? can it be on my server side? Should I reinstall Rust core and umod/oxide? thanks a lot other plugins works without any issue

01/11 10:09:17 | Failed to call hook 'OnPlayerConnected' on plugin 'Hud v2.1.12' (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.Hud.ShowUIBradleyState (BasePlayer player) [0x000b9] in <abc7cbe4f10e46cabfc60431e391f94b>:0
at Oxide.Plugins.Hud.ShowUIMain (BasePlayer player) [0x00b02] in <abc7cbe4f10e46cabfc60431e391f94b>:0
at Oxide.Plugins.Hud.OnPlayerConnected (BasePlayer player) [0x00053] in <abc7cbe4f10e46cabfc60431e391f94b>:0
at Oxide.Plugins.Hud.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00852] in <abc7cbe4f10e46cabfc60431e391f94b>: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

 

and when I try to reload plugin:

01/11 10:09:37 | Failed to call hook 'OnServerInitialized' on plugin 'Hud v2.1.12' (InvalidCastException: Null object cannot be converted to a value type.)
at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00029] in <fb001e01371b4adca20013e0ac763896>:0
at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in <fb001e01371b4adca20013e0ac763896>:0
at Oxide.Core.Plugins.Plugin.Call[T] (System.String hook, System.Object[] args) [0x00008] in <d5f57e12edfe4fa0b5c5dbdd9b51eff8>:0
at Oxide.Plugins.Hud.EventsInit () [0x0010a] in <b97064a723a44c018a68171cefd1ef81>:0
at Oxide.Plugins.Hud.OnServerInitialized () [0x001b0] in <b97064a723a44c018a68171cefd1ef81>:0
at Oxide.Plugins.Hud.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00314] in <b97064a723a44c018a68171cefd1ef81>: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

Share this comment


Link to comment

Can you give the latest version of Convoy, I have an old version and it works fine with it apparently the developer has changed something without changing the description

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

80.7k

Files Sold

Total number of files sold.

1.6m

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.