Raised This Month: $ Target: $400
 0% 

Server Rate Distributor


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management       
silentt
Member
Join Date: Feb 2006
Location: Toronto, Ontario, Canada
Old 08-26-2009 , 13:16   Server Rate Distributor
Reply With Quote #1

Server Rate Distributor

Version 1.0

Last Updated: Wednesday, August 26, 2009


Description
We all know the client rates and everyone will tell clients to set their rates(to recommended client rates) to try and 'fix' their lag.
  • fps_max 101
  • cl_cmdrate 101
  • cl_updaterate 101
  • rate 25000
Nobody really stresses how important it is that the server sets server rates. However what a lot of people don't know is that client rates are based off server rates, and server rates will limit the client rates and help assure that clients are not getting too much or too little bytes out of the available amount the server can distribute. So if there is problems with the server rates then client rates in that server are COMPLETELY useless to have set as it won't make a difference. This plugin goes further than just setting the servers rates it will update the servers rates for the exact amount of players on the server every time players join and leave.

Cvars/Server Settings(server.cfg)
sv_rates_upload (default=1000) - Servers upload speed in kb(Click HERE to run a speed test to find out your upload speed)
sv_rates_maxrate (default=1) [1 = On, 0 - Off] - If this is on you are allowing this script to adjust your servers sv_maxrate cvar
sv_rates_maxupdaterate (default=1) [1 = On, 0 - Off] - If this is on you are allowing this script to adjust your servers sv_maxupdaterate cvar
sv_rates_staticrate (default=0) [1 = Static, 0 - Dynamic] - If this is set to static the script will just set your server rates to a general number that based on max players allowed in server. Dynamic will set your server rates to a number based on the current amount of players every time players come or go

Features
  • Updates your server rates to recommended rates based on the amount of players in the server
  • For calculations you can set it to be dynamic to the amount of players currently in your server or static to the maxplayers. so basically with the formula for sv_maxrate being sv_maxrate = bandwidth X 125 / server size, the server size variable can either be the general maxplayers or it can be the current amount of players each time players come and go

Changelog
Version 1.0[Wednesday, August 26, 2009] - First version, basic drek formula to calculate your server rates for the current amount of players. Click HERE to link to drek's post on server rates

To Do
  • Add a cvar for user to create their own formula
  • Add cvars to control minrates
  • Add options for those who don't know the servers upload speed(i.e those without dedicated servers) to be able to use this
  • Add an automatic ping stabalizer that will try and find the best ping rates, because even using this recommended system or even your own formula later you still may need to manually find good rates(which this will try and do automatically when this is added)
  • Add something to take care of clients using less rate than the max rate provided to them and redistribute their extra amount to the rest of the server
Attached Files
File Type: sma Get Plugin or Get Source (serverRates.sma - 2691 views - 4.9 KB)

Last edited by silentt; 08-30-2009 at 12:07. Reason: Formatting
silentt is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 08-26-2009 , 15:35   Re: Server Rate Distributor
Reply With Quote #2

Interesting Plugin
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
BeasT
Senior Member
Join Date: Apr 2007
Location: Lithuania
Old 08-26-2009 , 16:51   Re: Server Rate Distributor
Reply With Quote #3

nice
BeasT is offline
Send a message via Skype™ to BeasT
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 08-26-2009 , 17:13   Re: Server Rate Distributor
Reply With Quote #4

Good
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Old 08-26-2009, 17:30
Asd'
This message has been deleted by Asd'.
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 08-29-2009 , 03:51   Re: Server Rate Distributor
Reply With Quote #5

Sorry i don't understand does this plugin make your server not so lag ?
Mr.Noobie is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 08-29-2009 , 08:12   Re: Server Rate Distributor
Reply With Quote #6

Quote:
Originally Posted by Mr.Noobie View Post
Sorry i don't understand does this plugin make your server not so lag ?
Emm... not exactly... This plugin put the server rates automaticaly, depends of the players in the servers... Sry if you don't understand me, my english isn't perfect.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
silentt
Member
Join Date: Feb 2006
Location: Toronto, Ontario, Canada
Old 08-29-2009 , 08:51   Re: Server Rate Distributor
Reply With Quote #7

Mr.Noobie: Yeah like alucard was saying it doesnt really make your server not lag. That wouldnt be possible for anyone to do and definatly not through scripting. Hopefully you got it more from alucards re-explaining but if not I guess you can think of it as an optimizer where rather than making it not lag it tries to optimize your servers internet settings to better distribute internet to all the players connected so they each evenly get a portion out of the maximum bandwidth pool from the server they are connected to(your server that is running this plugin).

Not sure how technical you are or how familiar you are with those server settings but basically sv_maxrate and sv_maxupdaterate control 2 things. One of them is how much kilabytes a player can upload(or send) to the server, the other controls how much kilabytes a player can download(retrieve) from the server per second I think it goes by.

With that said most players will need to download to retrieve information from your server, as they are all connected to your server that is what they are constantly doing pulling information from the server for the game to use and from time to time they do need to send it back for server to use then send right back and its a whole process. So with that said for all clients to be downloading that means the other end will be uploading which is your server uploading to all the players. So depending on your upload speed will determine things like how laggy your server is and how many players it can hold without be a lagbox. So once you put your upload speed into this it will do some math and figure out how much bytes to limit each player to maximum. Why? Well thats a whole other thing but in short it balances the bandwith players can have so that with all your players having different internet types and qualities you dont have players taking all the servers bandwith leaving the rest of the server with very little lagging around while they are have more than enough

To everyone else: thanks for the positive posting I appreciate it and am taking it right now in a really good way because not only are they positive but so far nothing needs fixing

Last edited by silentt; 08-29-2009 at 08:56.
silentt is offline
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 08-29-2009 , 08:54   Re: Server Rate Distributor
Reply With Quote #8

Quote:
Originally Posted by silentt View Post
Mr.Noobie: Yeah like alucard was saying it doesnt really make your server not lag. That wouldnt be possible for anyone to do and definatly not through scripting. Hopefully you got it more from alucards re-explaining but if not I guess you can think of it as an optimizer where rather than making it not lag it tries to optimize your servers internet settings to better distribute internet to all the players connected so they each evenly get a portion out of the maximum bandwidth pool from the server they are connected to(your server that is running this plugin).

Not sure how technical you are or how familiar you are with those server settings but basically sv_maxrate and sv_maxupdaterate control 2 things. One of them is how much bytes a player can upload(or send) to the server, the other controls how much bytes a player can download(retrieve) from the server per second I think it goes by.

With that said most players will need to download to retrieve information from your server, as they are all connected to your server that is what they are constantly doing pulling information from the server for the game to use and from time to time they do need to send it back for server to use then send right back and its a whole process. So with that said for all clients to be downloading that means the other end will be uploading which is your server uploading to all the players. So depending on your upload speed will determine things like how laggy your server is and how many players it can hold without be a lagbox. So once you put your upload speed into this it will do some math and figure out how much bytes to limit each player to maximum. Why? Well thats a whole other thing but in short it balances the bandwith players can have so that with all your players having different internet types and qualities you dont have players taking all the servers bandwith leaving the rest of the server with very little lagging around while they are have more than enough

To everyone else: thanks for the positive posting I appreciate it and am taking it right now in a really good way because not only are they positive but so far nothing needs fixing
Thanks so much for your information.
Mr.Noobie is offline
silentt
Member
Join Date: Feb 2006
Location: Toronto, Ontario, Canada
Old 08-29-2009 , 08:58   Re: Server Rate Distributor
Reply With Quote #9

no problem
silentt is offline
meigyoku
BANNED
Join Date: Apr 2009
Old 08-30-2009 , 13:28   Re: Server Rate Distributor
Reply With Quote #10


I know that tiny program help me make ...rate for my server: (simple enter some items ..) and I set this for my server:
sv_minrate 0
sv_maxrate 5714.28571428571
sv_minrateupdate 13
sv_maxrateupdate 19.047619047619

But some time when my server is 13 full slots, ping of one player will 1000, server so lag about 3 minute and normal again!
Can your plugin help me avoid this status?
Thanks!
meigyoku 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 08:18.


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