Raised This Month: $106 Target: $400
 26% 

SM Data Rates


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Plugin ID:
5367
Plugin Version:
0.2
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Show player current rates
    Old 09-27-2016 , 01:10   SM Data Rates
    Reply With Quote #1

    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




    To do: Add loss and choke info from all players
    Attached Images
    File Type: jpg smdatarates.jpg (92.9 KB, 1488 views)
    Attached Files
    File Type: sp Get Plugin or Get Source (smdatarates.sp - 273 views - 7.5 KB)
    __________________

    Last edited by Bacardi; 10-01-2016 at 10:46.
    Bacardi is online now
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 09-27-2016 , 01:11   Re: SM Data Rates
    Reply With Quote #2

    -reserved-
    Bacardi is online now
    xines
    Veteran Member
    Join Date: Aug 2013
    Location: Denmark
    Old 09-27-2016 , 12:16   Re: SM Data Rates
    Reply With Quote #3

    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); 
    __________________
    xines is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 09-27-2016 , 12:35   Re: SM Data Rates
    Reply With Quote #4

    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); 
    __________________
    Mitchell is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 09-27-2016 , 15:49   Re: SM Data Rates
    Reply With Quote #5

    @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

    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
    __________________

    Last edited by Bacardi; 09-27-2016 at 16:05.
    Bacardi is online now
    xines
    Veteran Member
    Join Date: Aug 2013
    Location: Denmark
    Old 09-28-2016 , 07:55   Re: SM Data Rates
    Reply With Quote #6

    Quote:
    Originally Posted by Bacardi View Post
    @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.
    __________________
    xines is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 09-28-2016 , 12:46   Re: SM Data Rates
    Reply With Quote #7

    I could add that. Someday
    Bacardi is online now
    AeroAcrobat
    AlliedModders Donor
    Join Date: Apr 2011
    Location: lives in a circus
    Old 10-01-2016 , 06:44   Re: SM Data Rates
    Reply With Quote #8

    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
    __________________
    AeroAcrobat is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 10-01-2016 , 10:11   Re: SM Data Rates
    Reply With Quote #9

    (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 :/
    __________________

    Last edited by Bacardi; 10-01-2016 at 10:17.
    Bacardi is online now
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 10-01-2016 , 10:45   Re: SM Data Rates
    Reply With Quote #10

    There is mistake , 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
    __________________
    Bacardi is online now
    Reply


    Thread Tools
    Display Modes

    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:34.


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