Raised This Month: $51 Target: $400
 12% 

Lame Connection Punisher: Source


Post New Thread Reply   
 
Thread Tools Display Modes
shustas
SourceMod Donor
Join Date: May 2007
Location: London
Old 03-27-2010 , 15:52   Re: Lame Connection Punisher: Source
Reply With Quote #21

sorry I missed the answer to my question, has it got delay after map change?
__________________
shustas is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-27-2010 , 17:52   Re: Lame Connection Punisher: Source
Reply With Quote #22

Quote:
Originally Posted by shustas View Post
sorry I missed the answer to my question, has it got delay after map change?
There is cvars that you can set how quick it will kick/ban player for bad connection.
You can "delay after map change" about these..

I tested again... downloading map. Not kick from server during that.

Another test... change
lcp_check_freq <5> - How often the plugin checks flux & loss.
-What purpose exactly is with this ?
-I try change between 1 to 1000
but not change time (decrease or increase) before it kick players...
-It kick player always about in 50 - 60 seconds after "bad connection" start

But change these I get "fixed"
lcp_flux_tests <12> - Max flux tests before punishment process starts.
lcp_loss_tests <12> - Max loss tests before punishment process starts.

-I change them 20 and it kick player after 1 min 23 seconds

*Edit/correcting previous post
I try again only increase latency/high ping
with server sv_cheats 1 and net_fakelag 100 and more
And plugin will not kick even I had over 100ms ping...
lcp_flux_limit <100> - Ping fluctuation limit (in ms.)
lcp_flux_tests <12> - Max flux tests before punishment process starts.


This plugin kick/ban only "loss"

But I have tested only using cheat commands get higher ping. Some one could do "normal" way...
Actually add this plugin on server and try example download/upload files same time when connected/play on server.

*Second edit
I'm not coder but I looked *.sp file and try compare about those two "loss" and "ping"
I get work somehow when I change line 178
Code:
if ( ( iActualPing - g_iLastPing[ i ] ) > GetConVarInt( g_hCvarFlux ) )
Code:
if ( (g_iLastPing[ i ] ) >= GetConVarInt( g_hCvarFlux ) )

Last edited by Bacardi; 03-28-2010 at 09:03. Reason: mis understand flux
Bacardi is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 03-28-2010 , 06:24   Re: Lame Connection Punisher: Source
Reply With Quote #23

Quote:
Originally Posted by Bacardi View Post
I tested again... downloading map. Not kick from server during that.
Glad to read.

Quote:
Originally Posted by Bacardi View Post
Another test... change
lcp_check_freq <5> - How often the plugin checks flux & loss.
-What purpose exactly is with this ?
-I try change between 1 to 1000
but not change time (decrease or increase) before it kick players...
-It kick player always about in 50 - 60 seconds after "bad connection" start
The check frequency means how often this plugin checks the ping of everyone, set as seconds. If, for example, the loss of the player is 11 and you set the freq cvar as 6 and tests cvar as 15 and assuming the player has the same amount of loss in this time, he will get kicked after 90 seconds, i.e. 1 min 30 secs.

Quote:
Originally Posted by Bacardi View Post
But change these I get "fixed"
lcp_flux_tests <12> - Max flux tests before punishment process starts.
lcp_loss_tests <12> - Max loss tests before punishment process starts.

-I change them 20 and it kick player after 1 min 23 seconds
Before doing anything this plugin does "checks" (which time you set with lcp_check_freq) and with the purpose of not getting weird results the cvar value shouldn't be above default. Not sure that cvar could help you.

Quote:
Originally Posted by Bacardi View Post
*Edit/correcting previous post
I try again only increase latency/high ping
with server sv_cheats 1 and net_fakelag 100 and more
And plugin will not kick even I had over 100ms ping...
lcp_flux_limit <100> - Ping fluctuation limit (in ms.)
lcp_flux_tests <12> - Max flux tests before punishment process starts.


This plugin kick/ban only "loss"
You know, this is not a "High Ping Kicker". With "flux" I mean the DIFFERENCE between player's ping values. Remember that this kicks bad connections, not high pings as I stated previously in this post and this thread. This is what the plugin EXACTLY does:
First checks player's ping, e.g. he has 210, and after this plugin checks again, but now he has 110. Note that the difference between first and second is 100, so if this fluctuation (or difference) continues he will get kicked.

Hope you understood everything, I'm a bit tired to write in english.
__________________
"There is no knowledge, that is not power"
fezh is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-28-2010 , 06:30   Re: Lame Connection Punisher: Source
Reply With Quote #24

Ok... I try test about that "flux" unstable ping.
I write in here same post results

Quote:
The check frequency means how often this plugin checks the ping of everyone, set as seconds. If, for example, the loss of the player is 11 and you set the freq cvar as 6 and tests cvar as 15 and assuming the player has the same amount of loss in this time, he will get kicked after 90 seconds, i.e. 1 min 30 secs.
I tried again... when change tests cvars as 15 yes, this increase time before player get "punishment".

Again I tried also change freq cvar as 6 or 10 even 50... it not have effect
(even I change map after I change cvar value...)
But when I dropped value below 5 (3 and 1), freq cvar take effect and kick player more faster.

Problem is when try change cvar value back to default 5 it not work and stay smallest value what you have added.
(Even cvar value show your right value lcp_check_freq 5)
Reboot server fix freq cvar to default.
What is horrible if accidentally add lcp_check_freq 0 it will kick player immediately when joined server. Should be add min. value 1 ??

*edit I had loss_test 1 what cause it... but still cvar check_freq not change freq time (seconds)


Quote:
You know, this is not a "High Ping Kicker". With "flux" I mean the DIFFERENCE between player's ping values. Remember that this kicks bad connections, not high pings as I stated previously in this post and this thread. This is what the plugin EXACTLY does:
First checks player's ping, e.g. he has 210, and after this plugin checks again, but now he has 110. Note that the difference between first and second is 100, so if this fluctuation (or difference) continues he will get kicked.
I tested, unstable ping between 110 - 999ms
Notice this when I change to high ping, it raise latency +120ms per second

Testing with default flux cvars, test 12 limit 100 and freq 5
This why it will not kick player about unstable ping so quick.
Now I realize how this work
ok limit 100 and tests 12, player have ping raise example:
0 sec = ping 50ms / 1 test
5 sec = 160ms / 2
10 sec = 270ms / 3
15 sec = 380ms / 4
... skip...
180 sec = 1370 / 12

This take forever... too many test every 5 seconds
problem is if player latency raise too quick up-and-down..
The get improved this is decrease about flux_tests 2 or 3 and flux_limit 40
And yep, flux work.
Of cource have to add another plugin what look "high ping" if player ping stay long time too high...



One question is, will ping_counter reset if latency drop in between times when player ping raise ?
example player ping 50ms 250ms 150ms 250ms 360ms etc. etc.
or if start "wave" 50ms 200ms 50ms 200ms etc. etc. ?

Pointless question, as set good limit and tests this works great.

Last edited by Bacardi; 03-29-2010 at 08:13.
Bacardi is offline
shustas
SourceMod Donor
Join Date: May 2007
Location: London
Old 03-28-2010 , 13:00   Re: Lame Connection Punisher: Source
Reply With Quote #25

^^ omg, can we get the best default values without having to read the whole book of how net packets works... ?
__________________
shustas is offline
eXacT
Veteran Member
Join Date: Apr 2009
Location: Buenos Aires
Old 04-02-2010 , 00:13   Re: Lame Connection Punisher: Source
Reply With Quote #26

Quote:
Originally Posted by LTR.2 View Post
Location: Argentina, BSAS
FTW.
@OFF:
He Lives in Argentina, Buenos Aires

@ON:
nice work fezh ;)
__________________

"There is no knowledge, that is not power"
eXacT is offline
Send a message via MSN to eXacT Send a message via Skype™ to eXacT
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 04-02-2010 , 08:38   Re: Lame Connection Punisher: Source
Reply With Quote #27

Quote:
Originally Posted by eXacT View Post
@OFF:
He Lives in Argentina, Buenos Aires
I think he already knew that FTW means For The Win, you know.
__________________
"There is no knowledge, that is not power"
fezh is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 04-07-2010 , 17:05   Re: Lame Connection Punisher: Source
Reply With Quote #28

Plugin updated. If you notice bugs let me know.
__________________
"There is no knowledge, that is not power"
fezh is offline
shustas
SourceMod Donor
Join Date: May 2007
Location: London
Old 04-16-2010 , 11:22   Re: Lame Connection Punisher: Source
Reply With Quote #29

you still need to add delay timer mate
__________________
shustas is offline
shustas
SourceMod Donor
Join Date: May 2007
Location: London
Old 05-12-2010 , 10:07   Re: Lame Connection Punisher: Source
Reply With Quote #30

And this is why:


Code:
 
L 05/11/2010 - 04:39:06: -------- Mapchange to de_dust2 --------
L 05/11/2010 - 04:39:07: [radio.smx] [SM-RADIO] Loading the radio stations from "cfg/sourcemod/radiostations.ini"
L 05/11/2010 - 04:39:07: [radio.smx] [SM-RADIO] Finishing parsing "cfg/sourcemod/radiostations.ini" - Found 69 radio stations
L 05/11/2010 - 05:06:07: [lame_connection_punisher.smx] [SM] DJ Postka was kicked for his/her lame connection.
L 05/11/2010 - 05:15:09: [lame_connection_punisher.smx] [SM] .!.KRIT.!. was kicked for his/her lame connection.
L 05/11/2010 - 05:32:25: [lame_connection_punisher.smx] [SM] sSsaRAsSss was kicked for his/her lame connection.
L 05/11/2010 - 05:38:00: [lame_connection_punisher.smx] [SM] Kenpow was kicked for his/her lame connection.
L 05/11/2010 - 05:54:08: [lame_connection_punisher.smx] [SM] unnamed was kicked for his/her lame connection.
L 05/11/2010 - 06:18:52: [lame_connection_punisher.smx] [SM] <<<<CEMEH>>>> was kicked for his/her lame connection.
L 05/11/2010 - 06:19:27: [lame_connection_punisher.smx] [SM] IrK_38 \ .N-L.\ was kicked for his/her lame connection.
L 05/11/2010 - 06:19:45: [lame_connection_punisher.smx] [SM] IrK_38 \ .N-L.\ was kicked for his/her lame connection.
L 05/11/2010 - 06:27:21: [lame_connection_punisher.smx] [SM] NEVADA SMITH was kicked for his/her lame connection.
__________________
shustas is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:04.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode