AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   SM Data Rates (https://forums.alliedmods.net/showthread.php?t=288326)

Bacardi 09-27-2016 00:10

SM Data Rates
 
3 Attachment(s)
SM Data Rates
- Show players current rates, not player rate settings.

cmds:
Code:

sm_dataratehelp - Display Help menu
sm_datarate - Show your data rates
sm_datarates - Print in your console all players data rates
sm_serverdatarates - Show server rate restriction  settings

https://forums.alliedmods.net/attach...1&d=1474949215



To do: Add loss and choke info from all players

Bacardi 09-27-2016 00:11

Re: SM Data Rates
 
-reserved-

xines 09-27-2016 11:16

Re: SM Data Rates
 
Looks good :),

This part is a bit weird tho:

Why all these new lines?
PHP Code:

    Format(buffersizeof(buffer), "\n \n \n \n \n \n \n%s"buffer); 

Instead of just:

PHP Code:

    Format(buffersizeof(buffer), "%s"buffer); 


Mitchell 09-27-2016 11:35

Re: SM Data Rates
 
This is a bit weird also
PHP Code:

FakeClientCommandEx(param1"say !datarate"); 

1st is the who making the client use the say command, instead of just issuing the sm_* command.
2nd why not just call the function instead where the command goes since it's within the same file:
PHP Code:

sm_datarate(client0);
sm_datarates(client0);
sm_serverdatarates(client0); 


Bacardi 09-27-2016 14:49

Re: SM Data Rates
 
@xines, in game, money/account display cover little bit that menu, I try set all text below it.

@Mitchell, I did purpose, so other players see that !chat command, and if they are curious, they follow :P

It's just me :)

*edit
If you wonder about CHOKE 50% on first post screenshot, it's not same what you see in net_graph.
It come from cmdrate side, it show something packet "choke" between player -> server.
Happens when player cmdrate is lower than server tickrate/FPS.
Example, in 128tick server, player use cl_cmdrate 64 (or player fps decrease low under 128 if I remember)
- It maybe not mean anything bad, just numbers

xines 09-28-2016 06:55

Re: SM Data Rates
 
Quote:

Originally Posted by Bacardi (Post 2457508)
@xines, in game, money/account display cover little bit that menu, I try set all text below it.

Ahh okay, i was testing in CS:S so that explains a lot.

Also just a wild idea that hit me, if you could make a "dataratelive" command and include a repeatable timer, for the menu to refresh whatever given time so it gains the effect of "live" updateing, that would be neat. :)
time is just preset into the code itself, no need to make useless cvars for that type of stuff. :)

Bacardi 09-28-2016 11:46

Re: SM Data Rates
 
I could add that. Someday :)

AeroAcrobat 10-01-2016 05:44

Re: SM Data Rates
 
Suggestion:
Would be nice if I could see the output in HLSW instead of launching the game.

Game: TF2
Does this look ok?
It's weird that some of the rates are the same as net_splitpacket_maxrate "1048576".

Server rates:
Spoiler
http://i.imgur.com/OeMMhe4.png

Bacardi 10-01-2016 09:11

Re: SM Data Rates
 
(cs:s)
1048576 seems be max. rate what can be.
Players just have set they rate bigger than this max rate. No problem.

And your net_splitpacket_maxrate is just coincidence value :)


However, interested was, when player set rate too huge, his/her cmd rate will drop low :)
Cmd rate start follow sv_minrate value.

Code:

] rate
"rate" = "3500" ( def. "80000" )
** NOTE: The real value is 10000000000.000 but the server has temporarily restricted it to 3500.000 **
archive
 - Max bytes/sec the host can receive data

When set sv_minrate bigger than 3500, example 80000, cmd rate get fixed.

*edit
how HLSW even work ? With plugins :/

Bacardi 10-01-2016 09:45

Re: SM Data Rates
 
There is mistake :D, in and out KB/s, one same info came from yourself
Code:

name                rate      update    cmd        in: KB/s  out: KB/s
Pena-ali            200000    64        99        46.35      21.50
Janette              200000    64        128        46.35      21.50
Bacardi              200000    64        128        46.35      21.50
Wodez                200000    64        128        46.35      21.50
-Toni Poni-          200000    64        128        46.35      21.50
tinhou              200000    64        128        46.35      21.50
Etsku168            786432    129        129        46.35      21.50
Embu                200000    64        129        46.35      21.50
KasettiÄijä        200000    64        127        46.35      21.50
Kahvingeitin        200000    64        128        46.35      21.50
TAREMO              200000    64        128        46.35      21.50

Soon Fixed
Code:

  name                rate    update cmd    in: KB/s  out: KB/s  in: ping ms  out: ping ms
Pena-ali            200000    64    100    31.14      16.03      47            1
Janette              200000    64    128    31.61      20.06      32            0
Mursu                200000    64    129    34.50      21.59      43            2
Bacardi              200000    64    129    46.56      17.85      31            0
Wodez                200000    64    127    30.05      20.59      32            0
-Toni Poni-          200000    64    129    29.76      20.87      39            0
tinhou              200000    64    128    30.40      18.89      62            1
Embu                200000    64    129    31.92      19.04      47            1
KasettiÄijä        200000    64    128    31.53      20.73      46            1
Kahvingeitin        200000    64    129    28.63      20.73      40            1
TAREMO              200000    64    129    36.89      20.06      70            0



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

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