SpecialAttack.net
https://forum.specialattack.net/

New team balancer
https://forum.specialattack.net/viewtopic.php?t=8254
Page 2 of 5

Author:  [SpA]SaintK [ 17 Oct 2010, 17:59 ]
Post subject:  Re: New team balancer

[SpA]CherryRed wrote:
Erm, this seems to be screwed again. played dustbowl where it started with about twice as many players on blu as there were on red. I tried joining red directly, but couldnt. managed after i had gone to spectate.

Looked for scramble in admin as quick way to resolve before the round started but it wasnt there.

This was on server 1 btw.
Did the plugin sort itself out in the end?

Author:  CherryRed [ 17 Oct 2010, 18:06 ]
Post subject:  Re: New team balancer

while typing the post, the afk manager moved me to spectate, and i still couldnt join blu after. it still made me join red, and so i had to go spectate and go to blu again. So not really. we are balance now, but it's a real problem on CP maps as the first round is a complete steam roll until autobalance sorts out the numbers :(


and, no. just rejoined, blu have 11 and red have 12, but it moved me to red, even tho i selected blu :(

Author:  [SpA]Scatterbrain [ 17 Oct 2010, 18:34 ]
Post subject:  Re: New team balancer

Image

at map start, it'll bounce people between teams alot, though the numbers stay roughly at this level (4/5/6 on one team, rest on the other). after about 40-50 seconds it started to even itsself out. this happened on two maps on server 1, nucleus and another that i can't remember the name of.

oh, and somebody ended up with a negative score for some reason :ugly:

Author:  CherryRed [ 17 Oct 2010, 19:25 ]
Post subject:  Re: New team balancer

Please switch this off until it is more fit for purpose. Bit boring having to try and move half the server around at the start of each map :(


oh, and myself after i go afk and always get pushed to red, even tho i choose blu which has less players

Author:  [SpA]SaintK [ 17 Oct 2010, 19:27 ]
Post subject:  Re: New team balancer

[SpA]CherryRed wrote:
Please switch this off until it is more fit for purpose. Bit boring having to try and move half the server around at the start of each map :(


oh, and myself after i go afk and always get pushed to red, even tho i choose blu which has less players
Done!

Author:  CherryRed [ 17 Oct 2010, 19:28 ]
Post subject:  Re: New team balancer

Thanks. I'm happy to help with testing, and I'm sure we can get enough people from the community to help out so we can get this working properly :4

Author:  Theory [ 17 Oct 2010, 20:32 ]
Post subject:  Re: New team balancer

Hello, plugin author here. Thanks for all the help! The "all on red" bug seems to be related to strange things happening when adding people's skill scores to the team total, and the value ending up as an invalid number as a result. Since the code that determines which team players join is this...
Code:
if (redSkill > blueSkill) // == is handled above
    AssignedIndex = BLU;
else
    AssignedIndex = RED;
...once either one of the numbers being compared becomes bad, the "if" statement always evaluates false, and players are thereafter always assigned to red.

The difficulty in fixing this is twofold: a) I don't have direct access to the SpA server, and b) it's running on Linux (where debugging is a nightmare). I ran my own server for a while the other day but couldn't reproduce the bug, though I did catch a scramble teams crash. Seems it's dependent on people with their Steam profile or stats in a certain state joining.

Later on today I'll run a Windows server with debugger and see if we can't get enough people together to trigger the issue. :)

Author:  ProtectMyBalls [ 17 Oct 2010, 21:27 ]
Post subject:  Re: New team balancer

Ok so, mostly noticed today that everyone would still be moved to red, and a few to blue, requiring admins to conduct a manual rebalance.

Balancing didnt seem to kick in at all throughout the games.

Author:  [SpA]SaintK [ 17 Oct 2010, 22:03 ]
Post subject:  Re: New team balancer

New version of the plugin is up.

Author:  CherryRed [ 17 Oct 2010, 22:04 ]
Post subject:  Re: New team balancer

erm, this doesnt seem to be any better. server 1 just restarted and both players assigned to blu?

Author:  [SpA]SaintK [ 17 Oct 2010, 22:12 ]
Post subject:  Re: New team balancer

[SpA]CherryRed wrote:
erm, this doesnt seem to be any better. server 1 just restarted and both players assigned to blu?
I had to reset both servers. I see you're on #2 now (has the plugin as well), how is that looking?

Author:  CherryRed [ 17 Oct 2010, 22:35 ]
Post subject:  Re: New team balancer

server 2 just had map change and started with an even number of players :mrgreen:

Author:  [SpA]SaintK [ 17 Oct 2010, 22:37 ]
Post subject:  Re: New team balancer

[SpA]CherryRed wrote:
server 2 just had map change and started with an even number of players :mrgreen:
Progress :mrgreen:

Author:  CherryRed [ 17 Oct 2010, 23:07 ]
Post subject:  Re: New team balancer

hmmm i spoke too soon. fastlane ok. came to goldrush and did the same as usual. only 4 on blu, rest on red

at least i could swap directly tho

Author:  CherryRed [ 17 Oct 2010, 23:33 ]
Post subject:  Re: New team balancer

Same issue on badwater. only 4 on blu, rest on red :(

more testing needed

Author:  Bartg [ 17 Oct 2010, 23:52 ]
Post subject:  Re: New team balancer

Same on fastlane, btw we played goldrush, fastlane, goldrush, badwater, fastlane :roll:

Author:  Theory [ 18 Oct 2010, 14:13 ]
Post subject:  Re: New team balancer

Fixed it properly now. Even if it does go wrong for some reason, the error is detected and the player is assigned a dummy rank. :)

Author:  [SpA]SaintK [ 18 Oct 2010, 14:14 ]
Post subject:  Re: New team balancer

Theory wrote:
Fixed it properly now. Even if it does go wrong for some reason, the error is detected and the player is assigned a dummy rank. :)
:5:

P.s. New version is up

Author:  [SpA]Scatterbrain [ 18 Oct 2010, 14:16 ]
Post subject:  Re: New team balancer

i was under the impression that you were from valve; but that can't be right, because you fix stuff far too quickly :ugly:

Author:  Theory [ 18 Oct 2010, 14:25 ]
Post subject:  Re: New team balancer

I am Jay Stelly. True fact.

Author:  Bartg [ 18 Oct 2010, 22:12 ]
Post subject:  Re: New team balancer

PLugin still broken, a bit less, but still manual balancing is needed every map.

Author:  ProtectMyBalls [ 19 Oct 2010, 18:38 ]
Post subject:  Re: New team balancer

yeah it was playing up last night, it gets pretty tiring manually moving people to the other teams.
Any word from theory on a fix for the red stack at the start of a game?

Author:  [SpA]9mmNL [ 19 Oct 2010, 19:19 ]
Post subject:  Re: New team balancer

Yesterday I noticed the plugin works at start of a map, after some people get points the plugin messes it all up and the admin (me) have to move players manually. :ugly:

Author:  [SpA]SaintK [ 19 Oct 2010, 19:21 ]
Post subject:  Re: New team balancer

New version is up. Unsure about the changes :mrgreen:

Author:  [SpA]Minimoose! [ 19 Oct 2010, 19:29 ]
Post subject:  Re: New team balancer

troubleshooting spa style

Author:  sebas [ 19 Oct 2010, 20:14 ]
Post subject:  Re: New team balancer

[SpA]Minimoose! wrote:
troubleshooting spa style
:ugly:

Author:  [SpA]Scatterbrain [ 19 Oct 2010, 22:10 ]
Post subject:  Re: New team balancer

i think it's taking into account players in spectator mode - e.g, one guy in spectator = 6 on red and 8 on blu. sometimes it manages to even the teams out (it takes a few minutes) and sometimes it doesn't.

Author:  ProtectMyBalls [ 19 Oct 2010, 22:32 ]
Post subject:  Re: New team balancer

its still requiring manual balancing, and moving people all the time because when someone leaves, it doesnt balance out the numbers again :(

Author:  [SpA]SaintK [ 20 Oct 2010, 12:20 ]
Post subject:  Re: New team balancer

Theory wrote:
bugs squished, player feedback improved, doesn't require restarts any more :)

New plugin version uploaded!

Author:  [SpA]Edeph [ 20 Oct 2010, 12:28 ]
Post subject:  Re: New team balancer

I guess we're getting closer ^_^

Page 2 of 5 All times are UTC+02:00

Powered by phpBB® Forum Software © phpBB Limited