AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Server Rate Distributor (https://forums.alliedmods.net/showthread.php?t=101724)

silentt 08-26-2009 13:16

Server Rate Distributor
 
1 Attachment(s)
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

DruGzOG 08-26-2009 15:35

Re: Server Rate Distributor
 
Interesting Plugin

BeasT 08-26-2009 16:51

Re: Server Rate Distributor
 
nice

crazyeffect 08-26-2009 17:13

Re: Server Rate Distributor
 
Good

Mr.Noobie 08-29-2009 03:51

Re: Server Rate Distributor
 
Sorry i don't understand does this plugin make your server not so lag ?

Alucard^ 08-29-2009 08:12

Re: Server Rate Distributor
 
Quote:

Originally Posted by Mr.Noobie (Post 916352)
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.

silentt 08-29-2009 08:51

Re: Server Rate Distributor
 
Mr.Noobie: Yeah like alucard was saying it doesnt really make your server not lag. That wouldnt be possible for anyone to do :P 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 :P 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 :D

Mr.Noobie 08-29-2009 08:54

Re: Server Rate Distributor
 
Quote:

Originally Posted by silentt (Post 916514)
Mr.Noobie: Yeah like alucard was saying it doesnt really make your server not lag. That wouldnt be possible for anyone to do :P 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 :P 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 :D

Thanks so much for your information. :)

silentt 08-29-2009 08:58

Re: Server Rate Distributor
 
no problem :P

meigyoku 08-30-2009 13:28

Re: Server Rate Distributor
 
http://upanh.com/uploads/30-Aug-2009...tn_640x480.jpg
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!

Alucard^ 08-30-2009 21:29

Re: Server Rate Distributor
 
@meigyoku

Where can i get that program? or is private?

Sry for the offtopic.

silentt 08-30-2009 21:47

Re: Server Rate Distributor
 
meigyoku: Srry didnt understand that last part

Quote:

Originally Posted by meigyoku (Post 918049)
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!

But I can tell you that it won't help with that from now because you mentioned that you do have your server rates set and you used the program. Using the rates that program tells you to will do the same as this essentially without updating your rates, it gives you one general number to use. But re-explain your problem because I might be able to help you with that or someone else on this forum.

Alucard: Its public you can get it here or direct download link here. However that program uses dreks recommended rates which atm for version 1.0 that is all this plugin will use. But those are the links it is a useful tool.

Alucard^ 08-30-2009 21:50

Re: Server Rate Distributor
 
Thx to much for the link ;)

meigyoku 08-31-2009 12:58

Re: Server Rate Distributor
 
Thank silentt
But can you advise me that should I use your plugin or the program I said above? (Of couse when I use your plugin I will remove rate I seted)
=============================================
My problem here (sorry for my poor English)
I set my server is 13 slots (13 player is full, can not log in)
When have about 9 or 10 player to play, server is OK (player latency is 90 and below)
But when have about 12 or 13 player to play, player latency is about 1000 and above, server is lag, all player can not move. After 2 minutes, player latency is back to normal (90 and below)
I seted this in server.cfg file:
sv_minrate 0
sv_maxrate 5714.28571428571
sv_minrateupdate 13
sv_maxrateupdate 19.047619047619

I used Higher Ping Kicker but no effect.

AntiBots 08-31-2009 13:21

Re: Server Rate Distributor
 
mmm, I think that the best way to do is creating a plugin with sockets that connect to a host, and calculate the lag.

But...

Alucard^ 08-31-2009 21:56

Re: Server Rate Distributor
 
Quote:

Originally Posted by meigyoku (Post 919036)
I used Higher Ping Kicker but no effect.

High Ping Kicker? What is this? Bleh, Search for Lame Connection Punisher ;) is the best ""High Ping Kicker"" plugin.

silentt 09-01-2009 03:01

Re: Server Rate Distributor
 
Quote:

Originally Posted by meigyoku (Post 919036)
Thank silentt
But can you advise me that should I use your plugin or the program I said above? (Of couse when I use your plugin I will remove rate I seted)
=============================================
My problem here (sorry for my poor English)
I set my server is 13 slots (13 player is full, can not log in)
When have about 9 or 10 player to play, server is OK (player latency is 90 and below)
But when have about 12 or 13 player to play, player latency is about 1000 and above, server is lag, all player can not move. After 2 minutes, player latency is back to normal (90 and below)
I seted this in server.cfg file:
sv_minrate 0
sv_maxrate 5714.28571428571
sv_minrateupdate 13
sv_maxrateupdate 19.047619047619

I used Higher Ping Kicker but no effect.

Hmm I dont know, if its going back to normal after it spikes up to 1000 then thaats something different. I don't know check cpu and memory usage when that happens. It could possibly be because people are connecting to your server and have to download things from your server, if that is the case trying hooking up a fast dl with sv_downloadurl and see if that helps that problem

Quote:

Originally Posted by AntiBots (Post 919071)
mmm, I think that the best way to do is creating a plugin with sockets that connect to a host, and calculate the lag.

But...

Good idea, maybe make something like that. Because I havnt worked with sockets yet first and second a question how would that work cause after the script connects to the server and figures out the lag what will it do from there?

BeasT 09-01-2009 04:55

Re: Server Rate Distributor
 
meigyoku, what is your sys_ticrate value? Those lag spikes happend to me too when sys_ticrate was set too high (1000) and cpu couldn't handle it. Try lowering to 300, that worked for me. Or it's just your upload speed can't handle 13 slots.

meigyoku 09-01-2009 15:27

Re: Server Rate Distributor
 
@silentt: I used Lame Connection Punisher , hooking up a fast dl with sv_downloadurl, and your plugins. I will tell you the result in next days
@BeasT: my sys_ticrate 100, thank you!

superang 09-01-2009 20:32

Re: Server Rate Distributor
 
Hold it , used it , love it
Dont change this
This is PREFECT

silentt 09-01-2009 23:07

Re: Server Rate Distributor
 
superang - :D thats always sounds nice to hear

liryck 09-02-2009 00:56

Re: Server Rate Distributor
 
awasome the plugin is perfect unique and works like a charms a big GJ

ot_207 09-02-2009 07:40

Re: Server Rate Distributor
 
Quote:

Originally Posted by AntiBots (Post 919071)
mmm, I think that the best way to do is creating a plugin with sockets that connect to a host, and calculate the lag.

But...

That would be a good idea but you need to choose a good host from where you can get all the info that you need.
Edit: About the plugin, nice :wink:.

Javivi 09-02-2009 16:41

Re: Server Rate Distributor
 
Awesome!

xjavo 09-02-2009 23:54

Re: Server Rate Distributor
 
http://www.reece-eu.net/drekrates.php Here's an online version of that calculator if anyone is interested still someone in this thread asked about it.

AntiBots 09-03-2009 07:52

Re: Server Rate Distributor
 
Someone post the code that calculate well the Rate. With the server speed and Slots and all that. So I can create it with sockets.

neogeo 09-03-2009 08:02

Re: Server Rate Distributor
 
Quote:

Originally Posted by AntiBots (Post 921670)
Someone post the code that calculate well the Rate. With the server speed and Slots and all that. So I can create it with sockets.

here is : http://forums.steampowered.com/forum...d.php?t=944512

AntiBots 09-03-2009 08:49

Re: Server Rate Distributor
 
Quote:

Originally Posted by neogeo (Post 921680)

Thanks, Now I am traing to contact speedtest. If they have API. To find more easy Servers, to check the speed.

xjavo 09-04-2009 06:48

Re: Server Rate Distributor
 
Quote:

Originally Posted by BeasT (Post 919783)
meigyoku, what is your sys_ticrate value? Those lag spikes happend to me too when sys_ticrate was set too high (1000) and cpu couldn't handle it. Try lowering to 300, that worked for me. Or it's just your upload speed can't handle 13 slots.

Ticrate should never really be changed causes more problems then it does help, try setting your ticrate back to defualt sys_tickrate "100.0"

avril-lavigne 09-04-2009 13:30

Re: Server Rate Distributor
 
uselessss plugin for me
with "ultimate executor" i can set any cvars depending on max players
ticrate
rates
etc

orange 09-05-2009 20:42

Re: Server Rate Distributor
 
i like this idea good work

vittu 09-07-2009 00:59

Re: Server Rate Distributor
 
Why client_authorized and not client_putinserver or client_connect?

Why server_cmd and not just set the cvars with set_pcvar_num or set_cvar_num?

Hawk552 09-07-2009 14:14

Re: Server Rate Distributor
 
This is redundant and cannot be approved. There are other plugins which do the job equally or better.

If you would like any information regarding possible adjustments you could make or things you could do to make this better, please feel free to post here or PM me.

Unapproved.

joropito 09-07-2009 18:09

Re: Server Rate Distributor
 
Awesome!

I have over 200 slots in 11 servers.
Before use this plugin, my BW was about 13Mbps.
After that, my BW goes to 9Mbps and there's no seems to be lagged.

+k

crazyeffect 09-08-2009 11:18

Re: Server Rate Distributor
 
Should this change Hawk's vision on this plugin? Should it needs to be approved?

You'll see it when Hawk reads this post!

vittu 09-08-2009 13:23

Re: Server Rate Distributor
 
Hey Hawk can you post a link or gimme a clue what to search for that makes this plugin redundant. Cause I don't remember seeing anything that makes cvar adjustments according to player count dynamically.

8088 09-08-2009 13:23

Re: Server Rate Distributor
 
Quote:

Originally Posted by crazyeffect (Post 926791)
Should this change Hawk's vision on this plugin? Should it needs to be approved?

You'll see it when Hawk reads this post!

Who says it's a reply to Hawk552? Is giving feedback forbidden for unapproved plugins?

crazyeffect 09-08-2009 13:25

Re: Server Rate Distributor
 
Quote:

Originally Posted by 8088 (Post 926935)
Who says it's a reply to Hawk552? Is giving feedback forbidden for unapproved plugins?

Don't try to be the smartass :P

Also, read the post of the superhero guy.

joaquimandrade 09-08-2009 13:30

Re: Server Rate Distributor
 
This a plugin that since its release I've been wondering if is valuable or not. I think that the most qualified person to give an opinion is 8088. If you don't mind, I would like to know it.

8088 09-08-2009 13:34

Re: Server Rate Distributor
 
Quote:

Originally Posted by joaquimandrade (Post 926942)
I think that the most qualified person to give an opinion is 8088.

Thanks, but I'm afraid I'm not ;)
Anyway, I haven't tried this plugin yet, but I sure will.
Quote:

Originally Posted by crazyeffect (Post 926938)
Don't try to be the smartass :P

Also, read the post of the superhero guy.

Maybe you should try to see things in their context a bit more?


All times are GMT -4. The time now is 08:15.

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