Wulf submitted a new resource:
Ping - Ping command and automatic kicking of players with high pings
Read more about this resource...
Ping
Moved
Total Downloads: 1,405 - First Release: May 19, 2016 - Last Update: Dec 10, 2016
- 5/5, 4 likes
-
Wulf Community Admin
-
When this plugin kicks players because of a high ping the below errors happen with these other plugins
Code:[05/21/2016 09:34:44] [Oxide] 09:34 [Error] Failed to call hook 'OnPlayerDisconnected' on plugin 'ServerRewards v0.2.29' (KeyNotFoundException: The given key was not present in the dictionary.) [05/21/2016 09:34:44] [Oxide] 09:34 [Error] Failed to call hook 'OnPlayerInit' on plugin 'RustCore v1.0.0' (NullReferenceException: Object reference not set to an instance of an object) [05/21/2016 09:34:44] [Oxide] 09:34 [Error] Failed to call hook 'OnPlayerInit' on plugin 'rankme v2.6.0' Traceback (most recent call last): File "rankme.py", line 355, in OnPlayerInit File "rankme.py", line 987, in store_player RuntimeError: Failed to call OnPlayerInit (MissingMemberException: 'NoneType' object has no attribute 'authLevel') at Microsoft.Scripting.Interpreter.ThrowInstruction.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in <filename unknown>:0 at Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in <filename unknown>:0[05/21/2016 09:34:44] [Oxide] 09:34 [Error] Failed to call hook 'OnPlayerInit' on plugin 'Notifier v3.0.8' (NullReferenceException: Object reference not set to an instance of an object) [05/21/2016 09:34:44] [Oxide] 09:34 [Error] Failed to call hook 'OnPlayerInit' on plugin 'PlayerInformations v1.0.5' (NullReferenceException: Object reference not set to an instance of an object) [05/21/2016 09:36:22] [Oxide] 09:36 [Error] Failed to call hook 'OnPlayerInit' on plugin 'RustCore v1.0.0' (NullReferenceException: Object reference not set to an instance of an object) [05/21/2016 09:36:22] [Oxide] 09:36 [Error] Failed to call hook 'OnPlayerInit' on plugin 'rankme v2.6.0' Traceback (most recent call last): File "rankme.py", line 355, in OnPlayerInit File "rankme.py", line 987, in store_player RuntimeError: Failed to call OnPlayerInit (MissingMemberException: 'NoneType' object has no attribute 'authLevel') at Microsoft.Scripting.Interpreter.ThrowInstruction.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in <filename unknown>:0 at Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in <filename unknown>:0[05/21/2016 09:36:22] [Oxide] 09:36 [Error] Failed to call hook 'OnPlayerInit' on plugin 'Notifier v3.0.8' (NullReferenceException: Object reference not set to an instance of an object) [05/21/2016 09:36:22] [Oxide] 09:36 [Error] Failed to call hook 'OnPlayerInit' on plugin 'PlayerInformations v1.0.5' (NullReferenceException: Object reference not set to an instance of an object)
-
Wulf Community Admin
I'm adding a timer to the hook though to delay checking for ping by 10 seconds though. -
Wulf Community Admin
-
Wulf Community Admin
-
-
Wulf Community Admin
-
Works fine on Rust but on Hurtworld it just post /ping in chat and even removes the BetterChat color from everyones name.
Code:[Info] Loaded plugin Ping v1.4.2 by Wulf/lukespragg 04:26 [Debug] ExType: TargetInvocationException 04:26 [Error] Failed to call hook 'IOnPlayerChat' on plugin 'HurtworldCore v1.0.0' (FormatException: Input string was not in a correct format.) 04:26 [Debug] at System.String.ParseFormatSpecifier (System.String str, System.Int32& ptr, System.Int32& n, System.Int32& width, System.Boolean& left_align, System.String& format) [0x00000] in <filename unknown>:0 at System.String.FormatHelper (System.Text.StringBuilder result, IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 at System.String.Format (IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 at System.String.Format (System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Ping.Lang (System.String key, System.String id, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Ping.ChatPing (IPlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
Code:[Oxide] 05:15 [Debug] ExType: TargetInvocationException [05/22/2016 05:15:35] [Oxide] 05:15 [Debug] at System.String.ParseFormatSpecifier (System.String str, System.Int32& ptr, System.Int32& n, System.Int32& width, System.Boolean& left_align, System.String& format) [0x00000] in <filename unknown>:0 at System.String.FormatHelper (System.Text.StringBuilder result, IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 at System.String.Format (IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 at System.String.Format (System.String format, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Ping.Lang (System.String key, System.String id, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Ping.ChatPing (IPlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
-
Wulf Community Admin
-
Wulf Community Admin
-
Wulf Community Admin
-
Rust is fine now awesome work it does work on Hurtworld but there is a small problem when the plugin kicks someone it spams the consol and chat before the player finally gets kicked. Looks like this:
Code:18:10 [Info] [Ping] HeadHunter kicked for high ping (1580ms) 18:10 [Info] [Ping] HeadHunter kicked for high ping (1580ms) 18:10 [Info] [Ping] HeadHunter kicked for high ping (1580ms) 18:10 [Info] [Ping] HeadHunter kicked for high ping (1580ms) 18:10 [Info] [Ping] HeadHunter kicked for high ping (1580ms) 18:10 [Info] [Ping] HeadHunter kicked for high ping (1580ms) 18:10 [Info] [Ping] HeadHunter kicked for high ping (1580ms) 18:10 [Info] [Ping] HeadHunter kicked for high ping (1580ms) 18:10 [Info] [Ping] HeadHunter kicked for high ping (1580ms) 18:10 [Info] [Ping] HeadHunter kicked for high ping (1580ms) 18:10 [Info] [Ping] HeadHunter kicked for high ping (1580ms)
-
Wulf Community Admin
-
Ok now its getting werid so i removed everthing that has to do with ping put it clean back on when i turn of the notice in Hurtworld it "looks" fine now to the really odd part both Rust and Hurtworld freeze in a werid way after some time when i remove the plugin it dosnt happen. And no oxide errors or anthing.
"CheckEvery": 300, for bothLast edited by a moderator: May 22, 2016 -
Wulf Community Admin
-
Wulf Community Admin
-
-
Wulf Community Admin
-
[DOUBLEPOST=1464030755,1464021871][/DOUBLEPOST]So tested some old versions on rust and hurtworld was all fine, then i tried to turn up the checking on the new version to 30min and well it looks like it all fine now. I should have checked that from the beginning, sorry for the trouble -
Wulf Community Admin