[MOD] BasilMod::PingLimit - limit maximum allowed latency.

Place for sharing your game modifications for Life is Feudal: Your Own
User avatar
Custodian
Mod Developer
 
Posts: 655
Joined: 08 Jun 2015, 14:58
Location: Lisbon

Re: [MOD] BasilMod::PingLimit - limit maximum allowed latency.

Post by Custodian » 19 Apr 2017, 20:48

BasilMod::PingLimit has been updated to v4.

New configuration option added:
Code: Select all
//Initial delay before ping check starts
$BasilMod::pinglimit::monitorDelay = 10000; //Value in ms


Satis wrote:I have a 4 things for you. 2 which I believe might be bugs and 2 suggestions.

Thank you for the nice and clean feedback.

Satis wrote:First bug:

Fixed. It is intended, that mod would send GM personal stats via system message, if BasilMod::MotD is installed and running.
Proper check added.

Satis wrote:Second bug:

Fixed.

Satis wrote:but while entering the world, the ping some times gets really high, while it's loading and rendering the map, so I had a couple of times that that I got an ping on 3-4000 ms and is kicked based on that.

New configuration option added. See above.

Satis wrote:Maybe let it be disabled by default and add it as an debug mode for the mod instead.

Debug output is now ruled by variable.
Code: Select all
$BasilMod::pinglimit::debug = true;

Set following variable for that mod to enable debug (periodic) output.

User avatar
Satis
 
Posts: 5
Joined: 08 Apr 2016, 09:15

Re: [MOD] BasilMod::PingLimit - limit maximum allowed latency.

Post by Satis » 23 Apr 2017, 11:14

Sweet :) Thanks for the quick update!

Custodian wrote:Fixed. It is intended, that mod would send GM personal stats via system message, if BasilMod::MotD is installed and running.
Proper check added.


Yead that's what I thought as well and then installed MotD, but I still got the message and didn't get any messages from MotD as well.

I'll retest if that's still the case.
ABC Game Servers
Satis - Engineer

User avatar
Satis
 
Posts: 5
Joined: 08 Apr 2016, 09:15

Re: [MOD] BasilMod::PingLimit - limit maximum allowed latency.

Post by Satis » 23 Apr 2017, 22:35

Alright, here is my test result:

The prints are gone when the debug is turned off :good:

Once using the Basilmod::pinglimit_stats(); function, I get this:
Code: Select all
WARN 2017-04-23 23:30:02.049 {} <<Thread>> [83375] AccountId: 2 Player charId: 3 current ping is 50 [T:ThreadConsole:0x8DF0]

WARN 2017-04-23 23:30:02.049 {} <<Thread>> [83375] BasilMod/pinglimit/pinglimit.cs (0): Unable to find object: '' attempting to call function 'isMethod' [T:ThreadConsole:0x8DF0]


I have the MotD installed and I'm in GM mode, but I don't get any messages from it, might be due to the above warning.
ABC Game Servers
Satis - Engineer

Return to Game mods