AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   H-Balance (Team balancer) (https://forums.alliedmods.net/showthread.php?t=205163)

red! 01-07-2013 15:53

H-Balance (Team balancer)
 
9 Attachment(s)
Feature list:

* automatic teambalance on round end (round based mode) / player death (continous mode)
* adjusts team sizes on imbalance and swaps players on team strengh difference
* team balance is calculated based on team score and players kill/death ratio
* designed NOT to anoy single players by repeatedly swapping them around
* supports CS:GO
* NEW: supports games with respawning like TF2 or DOD


Reference server:
If you want to have a look at it before installing:46.228.195.116:27015 (CS:GO),

CVARS:

sm_teambalance [1/0]: Activate/Disable team balancer (default 1)
sm_balance_log_level [0-2]: Verbosity of chat logging (0=off, 1=on balance, 2=always)
sm_balanceDamping: increase to slow down balancing (default 2), recommendation: just do not touch ;)
sm_adminProtection [0/1/2]: protects admins from beeing balanced (0=no protection, 1=moderate protection, 2=full protection [BALANCE PERFORMANCE MAY BE REDUCED MASIVELY], default=0)
sm_balance_min_players [>=2]: Minimum players in game to start balancing
sm_balance_mode [1/0]: !EXPERIMENTAL! Balancing mode (0=continous/respawn, 1=round based)
  • Round based mode: intended for games like "Counter Strike". This is the mode known from plugin version <= 1.5
  • Continous Mode: intended for Games like TF2 or DOD with long round times and respawning. This is not tested that much and the algorithm may need some fine tuning. It will balance dead players only, so rethink twice if you intend to use it along with admin immunity ...

CMDS:

sm_force_balance: trigger a balance operation exactly now (note: players will be slayed on swap)

Changelog:


1.6.2: added some secure coding and debug output
1.6: added config variables sm_balance_min_players and sm_balance_mode [EXPERIMENTAL STATE]
1.5.1 crash fix
1.5: admin protection
1.4: balancing disabled during warmup
1.3: added sm_force_balance command , added translation-support, switch is triggered at the end of round restart delay to avoid kills after switch, chat output verbosity
1.0: first public release

Installation instructions:

Just copy the .smx to your plugins directory and hbalance.phrases.txt to your translations file

Supported languages:

* English
* German
* French (thx Avo)
* Polish (thx SanKen/dzej dzej)

Future plans:

* none

SanKen 01-08-2013 09:41

Re: H-Balance (Team balancer)
 
I'll see how it works, thanks.

Powerlord 01-08-2013 09:50

Re: H-Balance (Team balancer)
 
I've only glanced at it, but this seems to be more of a team scrambler rather than a team balancer, at least by Valve's terminology (mp_autoteambalance and mp_teams_unbalance_limit cvars just make sure one team doesn't have more people than the other, while TF2's mp_scrambleteams_auto cvar and mp_scrambleteams cmd swap players around when one team wins too many rounds)

dzej dzej 01-08-2013 10:02

Re: H-Balance (Team balancer)
 
What is the difference about other teambalancers? Hope this plugin won't swap only one player all the time.

red! 01-08-2013 10:45

Re: H-Balance (Team balancer)
 
* Yes, I will add translations on future releases, but no, not in the next days
* It does not scramble by random but on team strength difference (score of the last 3 rounds), it swaps players based on their d:d ratio
* no, it avoids swapping single players repeatedly

spumer 01-08-2013 11:30

Re: H-Balance (Team balancer)
 
Why you use GetMaxClients() instead MaxClients var ?

dzej dzej 01-08-2013 12:06

Re: H-Balance (Team balancer)
 
Quote:

Originally Posted by spumer (Post 1869645)
Why you use GetMaxClients() instead MaxClients var ?

Right. Is it any difference using function instead of var?

spumer 01-08-2013 12:19

Re: H-Balance (Team balancer)
 
I think, using of var give more performance. Because you don't call function for got address where value located, instead this you use direct access.
It give more performance in the loops.

for ( new i = 1; i <= GetMaxClients(); i++ )

for(new i = 1; i <= MaxClients; i++)

dzej dzej 01-10-2013 03:33

Re: H-Balance (Team balancer)
 
ok. I tested it. Just one thing. Add option to turn off announcements. Its annoying when it appears every round.

raiden_it 01-10-2013 09:07

Re: H-Balance (Team balancer)
 
Pls add cvar to admin immune with custom flag.

IcEWoLF 01-10-2013 19:15

Re: H-Balance (Team balancer)
 
Very nice plugin, I also agree that there should be an option to disable announcements. Spam turns people off.

SanKen 01-11-2013 10:45

Re: H-Balance (Team balancer)
 
Please add information to a person who has moved "You have been moved"

Plugin work great thx...

PlasteR 01-14-2013 12:28

Re: H-Balance (Team balancer)
 
-The team quickly changed .. Because as players live and move players to the other team living the rest can kill him .. (former partners of the team)
-Imunitet for players (Donators)
-lack of information about changing teams (for a player transferred)

General very good team evens! Good job!

joexxxx 01-16-2013 12:16

Re: H-Balance (Team balancer)
 
Could you make an option in the .cfg to change when the team balance works? On my current server, it's really bad because It auto balances at the end of the round. When there are bots on, it thinks they are losing hard so it's 1v5 at the end of the match, and players can farm them really hard. If you could make it so the teams get swapped the next round that'd be awesome.

tl;dr make an option to swap teams at round start instead of round end.

red! 01-19-2013 11:56

Re: H-Balance (Team balancer)
 
There will be an update, it will include configuration of verbosity and translation support.
Round start balancing is a bad idea, you do not want to be switched in the spawn zone of the opposing team.

ph 01-19-2013 23:11

Re: H-Balance (Team balancer)
 
Quote:

Originally Posted by raiden_it (Post 1870826)
Pls add cvar to admin immune with custom flag.


I need this to be implemented before I can add this plugin.

Lucky_luck 01-20-2013 08:50

Re: H-Balance (Team balancer)
 
Nice Plugin, Work Very Good Waiting for Update :)

ph 01-21-2013 20:55

Re: H-Balance (Team balancer)
 
MAJOR BUG ISSUE!!

Feedback can be found here:
http://www.fragmasters.co.uk/threads/46530-Team-Balance


Basically players are getting killed by ex-team mates, when swapped before round ends.

micazoid 01-23-2013 12:39

Re: H-Balance (Team balancer)
 
Nice one!!!
This is EXACTLY what it was looking for soooo long for DODS!!!!

One suggestion I have to make though. Please add a command like sm_balance or sm_even or sm_yourchoice to start balancing Teams instant.

Why?
Because in games like DODS it can happen, that no one wins for a whole map. In this case teams will stay unbalanced till mapchange and no Admin can controll this =(

ph 01-23-2013 20:29

Re: H-Balance (Team balancer)
 
BUG

Let me explain.

Your team rushes and win the round.
You are swapped before round ends.
Your ex-team mates kill you before the round ends.


Can you please fix this, give them a protection when getting swapped before round end.

Avo 01-24-2013 06:44

Re: H-Balance (Team balancer)
 
Quote:

Originally Posted by red! (Post 1876269)
Round start balancing is a bad idea, you do not want to be switched in the spawn zone of the opposing team.

Changing team at start implies changing spawn too so no problem (See how works CS:S Team Balance).
The real problem here is the dropped bomb, that's why I would prefer a end round swap like in yours.

But add a kill protection then. And/or delay your swap at the real round end. You can check mp_round_restart_delay for that.

Also, I think your plugin would need some extra Cvar :
  • Maintain Size (0/1) : keep the same number of players in each team (like mp_autoteambalance)
  • Control Join (0/1) : new player is automatically affected in the worst team
  • Lock Teams (0/1) : players can't change team manually
  • Min Players (0+) : minimum number of players to enable Team Balance

Thanks a lot for your plugin

IcEWoLF 01-28-2013 02:55

Re: H-Balance (Team balancer)
 
So, is there a way to disable the announcement it makes when it switches people?

dzej dzej 01-28-2013 15:03

Re: H-Balance (Team balancer)
 
Quote:

Originally Posted by IcEWoLF (Post 1882142)
So, is there a way to disable the announcement it makes when it switches people?

I disabled that recompiling the plugin.

red! 01-28-2013 19:09

Re: H-Balance (Team balancer)
 
Plugin updated.

SanKen 01-29-2013 06:09

Re: H-Balance (Team balancer)
 
1 Attachment(s)
nice,
polish translation

Avo 01-29-2013 07:03

Re: H-Balance (Team balancer)
 
1 Attachment(s)
Great work !
Maybe just put one modification by line in your changelog, easier to read.

French translation attached

dzej dzej 02-01-2013 04:31

Re: H-Balance (Team balancer)
 
1 Attachment(s)
Quote:

Originally Posted by SanKen (Post 1882822)
nice,
polish translation

Polish translation without Polish characters. Sourcemod has problems with some

red! 02-01-2013 14:54

Re: H-Balance (Team balancer)
 
thanks for translations ...

ss2miraitrunks 02-01-2013 15:08

Re: H-Balance (Team balancer)
 
Can you add a cvar of minmum ammount of ppl before it starts balancing.

when im in my server 1 v 1 or 1 v 2, it switches us back and forth all the time, with the dampening at 2

red! 02-02-2013 06:14

Re: H-Balance (Team balancer)
 
that's not exactly right. It doesn't balance you on a 1:1, but, yes, on 2:1 it starts balancing, but why not? One team being double the size that the other seems to be a good reason for scambling the teams occasionately.

But of course, yes, I could implement such a variable, but that will be no be in the next 1 or 2 weeks.

Avo 02-07-2013 08:24

Re: H-Balance (Team balancer)
 
A bug we found is that your balancer swap players during warmup, and it doesn't go well with this mode. A CT is sometime placed on T spawn and vice versa, to his greatest dismay.

Please disable balance during warmup

PlasteR 02-09-2013 04:01

Re: H-Balance (Team balancer)
 
When you will be added immunity for admins? Next update?

ph 02-10-2013 15:10

Re: H-Balance (Team balancer)
 
Quote:

Originally Posted by PlasteR (Post 1890682)
When you will be added immunity for admins? Next update?

I was just about to make a post about this.

Please can you add a admin immunity cvar.

DoPe^ 02-11-2013 11:52

Re: H-Balance (Team balancer)
 
yeah same :p would also like a immunity cvar, won't start using this plugin before it's there ^^

red! 02-11-2013 17:48

Re: H-Balance (Team balancer)
 
I can not imagine one single reason not to balance admins...

@avo: implemented that, will upload the last version after some further testing

Avo 02-11-2013 18:10

Re: H-Balance (Team balancer)
 
Quote:

Originally Posted by red! (Post 1892699)
I can not imagine one single reason not to balance admins...

Yeah, but you cannot either imagine every game mode deployed by some community server. So why not.
Just a quick example (even if we don't use it), on our Rush server, it would be useful to immune admins so they can watch that their team-mate follow server rules.

Quote:

Originally Posted by red! (Post 1892699)
@avo: implemented that, will upload the last version after some further testing

Ok impec, thx a lot !

And if you can think to my other requests some time (cvars) ;)

DoPe^ 02-12-2013 08:40

Re: H-Balance (Team balancer)
 
Quote:

Originally Posted by red! (Post 1892699)
I can not imagine one single reason not to balance admins...

well like me, alot of other servers got vips donating to help the server running, one of the benefits by donating is then by getting immune to swapping...

and even if you can not imagine it.. try look at the posts here, alot of people is requesting it.

joexxxx 02-25-2013 13:12

Re: H-Balance (Team balancer)
 
Do you need to change to mp_autoteambalance 0 to disable. I run a WoW mod on my server. and when we have boss fights it disabled autoteambalance. Would it disable this too? If mp_autoteambalance is set to 0 would it disable this mod?

DoPe^ 03-01-2013 05:29

Re: H-Balance (Team balancer)
 
Any news if you are going to add immunity? :)
would be really awesome if you did.

red! 03-04-2013 17:07

Re: H-Balance (Team balancer)
 
WOW: hmm, does not know anything about WoW or boss fights. I'll ask google, if there is an easy way to support that.

Admin immunity: I hate that. I always leave these shity "donator"-servers immediately.
Nevertheless it would be easy to do a quick implementation that would work in most of the cases. But that would lead to really bad behaviour when the amount of protected admins makes fair balancing impossible and cause the balance trigger conditipn to fire permanently. That would lead to a bunch of annoying bug reports by people who do not read manuals.


All times are GMT -4. The time now is 05:30.

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