Plan B

General => Bug Reports => Fixed => Topic started by: Miau on May 21, 2018, 04:37:04 am

Title: Automatic team balance
Post by: Miau on May 21, 2018, 04:37:04 am
It's not exactly a bug, but I've noticed that when there player count is low (like under 10 players), the automatic team balance massively favors the protecting team. I've even gotten to see 4 police + 3 security + the president + the vicepresident vs 1 terrorist.

You need to take a look at that, because it happens constantly, even when no VIPs (who can force reclass) are online. And I don't think it has much to do with people quitting and messing up the balance, because if that was the cause, it would affect both the protecting and attacking team indistinctly.
Title: Re: Automatic team balance
Post by: YoMama on May 25, 2018, 01:35:17 am
I've noticed this too. It's not uncommon for me to see it even more unbalanced than you mention. It's also a cultural problem though.
Title: Re: Automatic team balance
Post by: Scott_ on June 04, 2018, 11:19:06 pm
Proof :v i am only the one Terro lol ::)
(https://i.imgur.com/diRxHjw.jpg)
Title: Re: Automatic team balance
Post by: PacoBeanZ on June 04, 2018, 11:34:02 pm
Proof :v i am only the one Terro lol ::)
(https://i.imgur.com/diRxHjw.jpg)
It's been like that since the start. Security was never affected by balancing (neither are pres and vp technically). It's tricky because you're probably going to decide to add hierarchical precedence too.

Like if the defending team is imbalanced can you choose to be a cop if there aren't any security protecting the president? Another one is if the terrorist are imbalanced, do you prevent a president or vice president from being selected?

It would probably be better to have only terrorists, SWAT, Security, and police affect balancing.
Title: Re: Automatic team balance
Post by: Miau on June 07, 2018, 02:38:55 am
I've noticed that the system always allows, at least, 4 securities. Even if there are 4 players in the server, all those 4 can choose security if they feel like. This needs to change... I mean, when the player count is very low at night, 4 players is a huge part of the server. It would work just fine if the minimum security was 1, and then maybe add 1 extra security/police slot for every terrorist up to a limit of... 8-9 securities maybe?
Title: Re: Automatic team balance
Post by: YoMama on June 26, 2018, 04:26:42 am
It's been like that since the start. Security was never affected by balancing (neither are pres and vp technically). It's tricky because you're probably going to decide to add hierarchical precedence too.
I may remember things differently, but I feel like the old server allocated less protecting (particularly security) slots than this one. I liked that- I don't think the protecting/attacking sides should be all that balanced. I prefer more attacking than protecting. It makes the game more exciting as the President and less camping-oriented. It also makes bullshit red vs. blue fights less feasible.

What do you mean by "hierarchical precedence"?

I've noticed that the system always allows, at least, 4 securities. Even if there are 4 players in the server, all those 4 can choose security if they feel like. This needs to change... I mean, when the player count is very low at night, 4 players is a huge part of the server. It would work just fine if the minimum security was 1, and then maybe add 1 extra security/police slot for every terrorist up to a limit of... 8-9 securities maybe?
Yes, I don't remember it having a high minimum like that in the old server. I think it should force people into the security slots before making police slots available as the player count increases. I don't think it makes sense to have police instead of security when there are only a few attackers. I agree that there should be a limit on security in general. I would prefer that there weren't a limit on terrorist slots at all, since non-VIPs who want to attack are sometimes forced to be civilians. I don't think it makes much sense to try to keep the protecting and attacking sides balanced when there are no limits on the civilian class, which is a wildcard that can and often does sway the game.
Title: Re: Automatic team balance
Post by: SoLoD on June 26, 2018, 09:49:36 pm
>automatic team balance
>50% of server can switch to anything whenever they want
Title: Re: Automatic team balance
Post by: Saurabh on June 27, 2018, 07:33:34 am
>automatic team balance
>50% of server can switch to anything whenever they want
Yes. But the other 50 percent people would have to rechoose an available class after dying, just to compromise or undo this imbalance caused by vips.

At least this thing is better than what we have now.
Title: Re: Automatic team balance
Post by: Crash on June 27, 2018, 06:02:30 pm
Hey peeps,
I was a President yesterday and the server had like 8 players while 7 of them were terrorists . How/why  is this possible?
Title: Re: Automatic team balance
Post by: Spici_Popot on June 27, 2018, 07:09:41 pm
Hey peeps,
I was a President yesterday and the server had like 8 players while 7 of them were terrorists . How/why  is this possible?

This is because if there is a president, terrorist class is open for  3-4 ppl and when there's no normal player to play other classes
VIP's take the chance on to change class anytime to terrorist and even a security May make difference if he is in protecting class , one more space to join as terrorist evaluates.
Title: Re: Automatic team balance
Post by: Rajesh on July 02, 2018, 11:43:11 am
SEE HOW THIS WORKS
https://youtu.be/DRlXrb95KLo
PRESIDENT WITH ZERO SECURITY ?
Title: Re: Automatic team balance
Post by: Spici_Popot on July 02, 2018, 03:57:22 pm
SEE HOW THIS WORKS
https://youtu.be/DRlXrb95KLo
PRESIDENT WITH ZERO SECURITY ?

There's only one terrorist and 4 cops and a presi and vice
So u think president should be untouchable?
And you write your chat so quick i love it jajajaj
Title: Re: Automatic team balance
Post by: Jonne on July 02, 2018, 06:13:33 pm
I've noticed that the system always allows, at least, 4 securities. Even if there are 4 players in the server, all those 4 can choose security if they feel like. This needs to change... I mean, when the player count is very low at night, 4 players is a huge part of the server. It would work just fine if the minimum security was 1, and then maybe add 1 extra security/police slot for every terrorist up to a limit of... 8-9 securities maybe?

This was indeed the case. We've changed it now and are working out some other bugs in the reclass checks.

SEE HOW THIS WORKS
https://youtu.be/DRlXrb95KLo
PRESIDENT WITH ZERO SECURITY ?

We will make it so people can reclass within their own team (so from police to security or swat and the other way around, based on class availability of course). Right now it treats the player as if you didn't have a class before. Also, we have established an upper limit for reclassing as VIP now, so the game doesn't get too imbalanced. If one team has over 70% of the 'team players' in it, you won't be able to reclass to this team, even as VIP.

We're still making changes to the system, so if you see things that look wrong, please let us know (and include /sb or a picture of the player list in your post, so we can see what exactly the situation is).
Title: Re: Automatic team balance
Post by: Miau on July 02, 2018, 08:32:57 pm
If one team has over 70% of the 'team players' in it, you won't be able to reclass to this team, even as VIP.

I noticed it last night, and it was a bit problematic. I didn't take a screenshot of the situation, but I'll try to explain:

- Around ~7 online players in total.
- 1 President
- 1 Security
- 5 Civilians (including myself)

So, for your script, 100% of the team players were on the protecting side and, as a result, I couldn't reclass to security or police. But the fact is that those 4 civilians were VIPs and regulars, they weren't killing each other and their only goal was to hunt down the president and his security. I wanted to join the protecting side to help those two a bit and make the game fairer (and more interesting) for everyone, but the new system wouldn't let me. In theory civilians are equally prone to help either side, but I'm afraid that the reality is way different.
Title: Re: Automatic team balance
Post by: Jonne on July 02, 2018, 10:52:20 pm
Yes, I'll probably try to build in something so it will let people reclass on low populations, so the reclassing on the beginning of the round should feel a lot 'smoother'.
Title: Re: Automatic team balance
Post by: Saurabh on July 02, 2018, 11:15:50 pm
 Alternatively, we can assign each civilian as a mix of bad and neutral count. [Example: Like count 1 civ=0.3bad(team) + 0.7 neutral(team)] and then check the 70% rule against (Good+Bad team) instead of 'team classes' count (explained later)

Therefore,
Good Team = Presi+Security+Police+Swat
Bad Team  = Terrorist + 0.3 of each civilian
Neutrals= Vice+ 0.7 of each civilian
There's a reason why I'm suggesting vice to be counted as neutral, I will explain later with example.

Why mix?
Because there are two types of civilians:
Bad civilian: shooting only(or mostly) the president and his security.
 Neutral civilian: staying afk/paused at spawn, stunting, racing, OR shooting (almost) equal number of bad team members and good team members.

IMO, 1 civilian=0.3 bad + 0.7 neutral seems to be the best balanced split. (Considering the facts that civ weapon set is less effective in killing good team than what an actual bad team weapon set is. + More than half civilians choose civ for duels and events i.e neutral)


Rule for reclassing:
1) Good team should NOT be more than 70% of (good+bad team).

2) Bad team should NOT be more than 70% of (good+bad team).

So if a players wants to join X class, the script should stop him from reclassing if any of those two rules will get violated because of reclassing him into x class.(hence considering both his current class and the class he wants to switch to)



Example : 10 players. Similarly 25 players and 50 player count cases can be thought of. I can't think of any troublesome case.
Quote
if there are 10 players in server:
1president
1 vice
1 security
6 civilians
1terrorist

The teams balance is as follows:
Good Team %= 2 out of 10 total players
Bad Team % = 1+(6*0.3) out of 10 i.e 2.8 out of 10 total players
Neutrals %=  1+(6*0.7) out of 10 i.e 5.2 out of 10

Good+ bad team= 4.8 out of 10 total players. (Players actually contributing in the GM and team balance)

In this case :
Bad team(2.8 ) is 58.33% of (Good + Bad team) (4.8 )
Good team(2) is 41.66% of (Good + Bad team) (4.8 )
 
Since Good team is less than 70% of ( Good+Bad team), players can reclass into that team. This solves the problem in Mia's case.

The reason why vice should be neutral is because when the player count is too low , putting vice on 'good' team can heavily imbalance the teams . Moreover, vice president is too weak and usually just driving around randomly to even be considered as a part of protecting (good) class.

Ps: 0.3 bad + 0.7 neutral is just what i think is a balanced split. You can ofcourse try other combinations and maybe try different combinations for different cases (like for different player counts or different maps ..like in nsa)
Title: Re: Automatic team balance
Post by: Miau on July 03, 2018, 12:17:28 am
Nice! Good that you took time to work something out.

But I'm afraid it wouldn't help in the situation I experienced last night:




Before I reclass:

1 president + 1 security: 2 good points (57% of total)
5 civilians: 1.5 bad points (43% of total)

If I reclass:

1 president + 2 security: 3 good points (71% of total) <- I wouldn't have been able to reclass!!
5 civilians: 1.2 bad points (29% of total)




I still think that the reason why I was able to spot the weakest team while the script wasn't is because I knew who the players on each team were. I knew that the president and his only security were so inexperienced that they wouldn't have a chance against 4 civilians with extra weapons, experience and willing to work together.

To give experience some weight, I would use your system with some modifications:

It's sad to make it like this, but the reality is that a Class 2 civilian will persistently try to kill a Class 1 president, but will protect a Class 2 president. At least in most situations... people like in Demens Club exist, but unfortunately we are still a minority.

So, what would have happened in my situation?




Type of president: Class 1

Before I reclass:

1 Class 1 president + 1 Class 1 security: 2 good points (22% of total)
5 Class 2 civilians: 7 bad points (78% of total), 3 neutral points

Before I reclass:

1 Class 1 president + 1 Class 1 security + 1 Class 2 security: 4 good points (42% of total) <- I would have been able to reclass!
4 Class 2 civilians: 5.6 bad points (58% of total), 3 neutral points




I want to clarify than I'm not suggesting to prevent anyone to reclass to civilian. I'm just suggesting to consider the civilian count in the team balance system.
Title: Re: Automatic team balance
Post by: Saurabh on July 03, 2018, 01:16:42 am
My bad,i didn't do exact calculation for your case.

Nice suggestion about considering the player level but i was avoiding that(complication) because that will give space to so many possible criterias and playing with parameters that people might argue about them and we wouldn't come to any conclusion(coz choosing these parameters is  a bit subjective).

 In your case , counting president as neutral class can fix the problem but i am too sleepy right now to think of limitations of this change if we consider a larger player count case. I think it is a quick fix and can help avoiding complex script.

I do like your modification and I'm okay with everything except the numbers you used.  The multiplier (2) used for class 2 players points , is too much(maybe keep it around 1.5) and the switch from 0.7 bad to 0.7 good for class 2 civilian against a class 1 presi and class 2 prei respectively,  is unrealistic because civilian don't really protect their friendly presidents , they just don't kill them(might kill their Security and terrorists i.e they are more neutral).  The ones who actually wanna protect will just switch to security.

So imo , we should avoid those extreme numbers for class 2 civilian. New numbers should be like(subjective):
 1 class 2 civ = 1.5* (0.6 bad+0.4 neutral ) if class 1 president.
 1 class 2 civ = 1.5* ( 0.2 bad+0.8 neutral ) if class 2 president.

1 class 1 civ = 0.3 bad + 0.7 neutral for any class president.



Quote
I want to clarify than I'm not suggesting to prevent anyone to reclass to civilian. I'm just suggesting to consider the civilian count in the team balance system
.
+1
Civilian class should always be available despite the fact that it is the reason of imbalance in most of the cases. But we definitely need to consider it's count to balance the other classes.

Title: Re: Automatic team balance
Post by: YoMama on July 04, 2018, 12:38:38 pm
It's sad to make it like this, but the reality is that a Class 2 civilian will persistently try to kill a Class 1 president, but will protect a Class 2 president. At least in most situations... people like in Demens Club exist, but unfortunately we are still a minority.
You're making it sound like civilians can only be protectors or attackers. They can also just ignore the President (seems more likely). How do you account for that? How do you account for the Presidents like me who very often get "Class 2" civilians almost universally attacking? It seems like your system could make it so attackers could move to the civilian class to limit the number of security a "Class 2" President has, since you've made system assume that they're pulling a certain kind of bullshit all the time.

I want to clarify than I'm not suggesting to prevent anyone to reclass to civilian. I'm just suggesting to consider the civilian count in the team balance system.
+1
Civilian class should always be available despite the fact that it is the reason of imbalance in most of the cases. But we definitely need to consider it's count to balance the other classes.
I don't really see how you could take the civilian class into account for balancing. It seems like you'd have to make an assumption about a class for which few germane assumptions can accurately be made.

I don't really see much of a reason to reinvent the wheel here. The biggest problem I had with the old system was the bias toward more protectors at low player counts. Having a bunch of attackers isn't so much of a big deal, since the President always has the benefit of being able to run, decide where a chase will be, and set the standard for the people who are able to follow. I find it much easier to be the lone President against 9 average terrorists than being the lone terrorist against the President and his 8 average protectors. If people are actually playing the game, the President has the benefit of basically deciding how the game goes, but not whether he'll die, or how. As President, I can pretty easily shave down the number of people who are actually able to follow to just a few through vehicle choice, chase location, and strategy, but it's not easy to do something similar as a lone terrorist. (This is why I think there should be more attackers than protectors in general.)

We're still making changes to the system, so if you see things that look wrong, please let us know (and include /sb or a picture of the player list in your post, so we can see what exactly the situation is).
It would be nice if we could see what rules the system works by at the moment, but I can understand if you don't want to make that information public.
Title: Re: Automatic team balance
Post by: Jonne on September 18, 2018, 03:52:35 pm
Discussion continued here: https://planbserver.com/forum/index.php?topic=4168.0

I've merged the topic with the earlier topic about balance. There isn't a need to start a seperate topic about it. We were already aware of the problem and seeking for solutions, but spamming topics about it won't help it get resolved faster.

Civs were never explicitely counted as attackers or defenders, but they did have an impact on the balancing. The main reason they have an impact on the balancing, is because we make assumptions on the division of both teams before anyone picks a class. So, each team would be open until over 25% of the total number of players were in it. We did this so everyone could reclass quickly at the beginning of the map, otherwise they'd have to reclass alternatingly (for example, the first player goes to the protecting team, which meant the protecting team now has 100% of the players, which meant someone had to go terro first before someone else could join the protecting side, and so on). Now, if a lot of people went to civ, this 25% of the total player count would be harder to reach, and the team would be open for a longer time, which could lead to imbalances.

Since last week, we've removed this requirement from the balancing. This means reclassing at the start of maps will be slower, but it should lead to more balanced teams. Of course, VIPs will still have an effect on this, and can still cause imbalanced teams to a certain extent as we've put a limit on it now.