Jump to content

OnPlayerConnected hook error

Closed 2.1.12 2.1.13

Ondraasek
Ondraasek

Posted

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

Ondraasek

Posted (edited)

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
AhigaO

Posted (edited)

Try this version, if it works correctly let me know

 

Edited by AhigaO
  • Like 1
Ondraasek

Posted

works like a charm, thanks a lot

Ondraasek

Posted

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

AhigaO

Posted

do you use thje convoy plugin?

AhigaO

Posted

Can you try unloading Convoy and see if Hud will work and tell me

Ondraasek

Posted

yes, if I unload Convoy, HUD works like a charm, it must be some conflict

AhigaO

Posted

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

AhigaO

Posted

can you give me your config files of (Hud and Convoy)

AhigaO

Posted (edited)

try this one

Edited by AhigaO
AhigaO

Posted

And can you edit your message and remove Convoy plugin 

Ondraasek

Posted

this one works with convoy , thank you

AhigaO

Posted

Well, and please remove Convoy plugin from your message 

AhigaO

Posted

Changed Status from Pending to Closed

Changed Fixed In to Next Version

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.5k

Files Sold

Total number of files sold.

2.4m

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.