[Mutator] Even Match (Onslaught team balancer)

Anything about UT2004 mapping, Uscripting & more
Post Reply
User avatar
Cat1981England
Posts: 2326
Joined: Mon 23. Aug 2010, 16:35

Re: [Mutator] Even Match (Onslaught team balancer)

Post by Cat1981England »

We're running off a ramdisk atm, so i can't see additional log files being an issue :thumbup: .

The only legitimate complaint i've seen is that the some players are being swapped multiple times a game.
Pegasus wrote:PS: Had forgotten about it, but two instances on the same page is pretty much screaming for attention, so quick tip to Cat here: preventing pre elements (which phpBB uses to wrap around blocks of code or other kinds of raw text dumps) from horizontally screwing up pagination can easily be done by adding a white-space: pre-wrap; rule to the .codecontent class assigned by default to pre elements in stylesheet.css, starting from line 688.
How's that?

-------------

If anyone is interested, here's a sample of how the output looks in the server.log,

Code: Select all

EvenMatch: Overriding player team preference team=255 with team=0
EvenMatch: Overriding player team preference team=255 with team=1
EvenMatch: Overriding player team preference team=1 with team=0
EvenMatch: Overriding player team preference team=0 with team=1
EvenMatch: Overriding player team preference team=255 with team=0
EvenMatch: Overriding player team preference team=255 with team=1
EvenMatch: Overriding player team preference team=1 with team=0
[...]
EvenMatch: Shuffling teams based on previous known PPH...
EvenMatchDebug: XYLOPHONE 158.52 PPH, currently on Red
EvenMatchDebug: AC[WALES] 137.58 PPH, currently on Blue
EvenMatchDebug: Harold -1.00 PPH, currently on Red
EvenMatchDebug: Puerto_Rico 36.00 PPH, currently on Red
EvenMatchDebug: MarcusAurelius 180.86 PPH, currently on Red
EvenMatchDebug: rush_douchebag -1.00 PPH, currently on Blue
EvenMatchDebug: [SkyFORS]FORSIETS 392.27 PPH, currently on Red
EvenMatchDebug: MeatChopper 236.74 PPH, currently on Blue
EvenMatchDebug: beefcakes 225.26 PPH, currently on Red
EvenMatchDebug: [RMD]Colman 36.00 PPH, currently on Blue
[...]
EvenMatchDebug: 21 players, combined PPH 4247.08, balance target PPH per team 2123.54
EvenMatchDebug: Balancing team sizes and PPH...
EvenMatchDebug: Odd player count, randomly assigning rush_douchebag to blue (-1.00 PPH)
EvenMatchDebug: Assigning Changal (467.89 PPH) and [SkyFORS]FORSIETS (392.27 PPH)
EvenMatchDebug: Changal will be on blue (now 466.89 PPH), [SkyFORS]FORSIETS will be on red (now 392.27 PPH)
EvenMatchDebug: Assigning Antman (285.70 PPH) and Hyden (253.20 PPH)
EvenMatchDebug: Antman will be on red (now 1029.77 PPH), Hyden will be on blue (now 1014.68 PPH)
EvenMatchDebug: Assigning Droopy_Bollocks (245.29 PPH) and MeatChopper (236.74 PPH)
EvenMatchDebug: Droopy_Bollocks will be on blue (now 1259.97 PPH), MeatChopper will be on red (now 1266.51 PPH)
EvenMatchDebug: Assigning Sedoy (180.06 PPH) and smalltown (163.74 PPH)
EvenMatchDebug: Sedoy will be on blue (now 1856.92 PPH), smalltown will be on red (now 1869.59 PPH)
[...]
EvenMatchDebug: Red team size 10, combined PPH 2095.06
EvenMatchDebug: Blue team size 11, combined PPH 2152.02
EvenMatchDebug: Applying team changes...
EvenMatchDebug: Moving RainbowDash to red
EvenMatchDebug: Moving MeatChopper to red
EvenMatchDebug: Moving aftertwobowlsOO> to red
EvenMatchDebug: Moving [RMD]Colman to red
EvenMatchDebug: Moving Butcher to blue
EvenMatchDebug: Moving Droopy_Bollocks to blue
[...]
EvenMatchDebug: Teams shuffled.
EvenMatchDebug: 101.04 Saving PPH data...
EvenMatchDebug: 102.22 Saving PPH data...
EvenMatchDebug: 112.98 Saving PPH data...
EvenMatch: Overriding player team preference team=255 with team=0
EvenMatchDebug: 127.20 Saving PPH data...
EvenMatchDebug: 134.11 smalltown switched to Red
EvenMatch: Overriding player team preference team=255 with team=0
EvenMatchDebug: 150.46 Saving PPH data...
EvenMatchDebug: 153.25 Saving PPH data...
[...]
EvenMatch: Teams have become uneven, soft balance in 50s
EvenMatchDebug: 204.59 Saving PPH data...
EvenMatchDebug: 210.87 Saving PPH data...
EvenMatchDebug: 240.60 Saving PPH data...
EvenMatchDebug: 246.29 Not enough soft balancing candidates
EvenMatch: Teams are uneven, forced balance in 70s
EvenMatchDebug: 247.29 Not enough soft balancing candidates
EvenMatchDebug: 248.28 Not enough soft balancing candidates
EvenMatchDebug: 249.27 Not enough soft balancing candidates
EvenMatchDebug: 250.30 Not enough soft balancing candidates
EvenMatchDebug: 251.29 Not enough soft balancing candidates
EvenMatchDebug: 252.28 Not enough soft balancing candidates
EvenMatchDebug: 253.27 Not enough soft balancing candidates
EvenMatchDebug: 253.27 Additional soft balancing candidate: FORS[forsikan.repub]
EvenMatch: Forced team change: FORS[forsikan.repub] Blue soft-balance at respawn
[...]
EvenMatchDebug: 337.49 [RMD]Colman switched to Red
EvenMatchDebug: 339.51 advfree switched to Blue
EvenMatchDebug: 366.37 advfree switched to Blue
[...]
EvenMatch: Teams have become uneven, soft balance in 50s
EvenMatchDebug: 724.86 rush_douchebag switched to Blue
EvenMatchDebug: 731.00 Butcher switched to Blue
[...]
EvenMatchDebug: 811.36 Saving PPH data...
EvenMatchDebug: 832.12 Antman switched to Red
EvenMatchDebug: 838.92 Butcher switched to Blue
EvenMatchDebug: 850.82 AC[WALES] switched to Blue
EvenMatchDebug: 880.51 AC[WALES] switched to Blue
EvenMatch: Overriding player team preference team=255 with team=0
EvenMatchDebug: 887.60 [RMD]Colman switched to Red
EvenMatchDebug: 894.95 Hyden switched to Blue
EvenMatchDebug: 904.32 Gl@diator34 switched to Red
[...]
EvenMatch: Teams have become uneven, soft balance in 50s
EvenMatchDebug: 1218.38 MarcusAurelius switched to Blue
EvenMatchDebug: 1339.86 [RMD]Colman switched to Red
EvenMatchDebug: 1344.85 [RMD]Colman switched to Red
EvenMatchDebug: 1349.92 [RMD]Colman switched to Red
EvenMatchDebug: 1359.81 PimPomPum switched to Red
EvenMatchDebug: 1361.98 Hyden switched to Blue
EvenMatchDebug: 1362.09 [RMD]Colman switched to Red
EvenMatchDebug: DEBUG: Changal disconnected
EvenMatchDebug: 1412.79 Saving PPH data...
EvenMatchDebug: DEBUG: EmanReleipS disconnected
EvenMatchDebug: DEBUG: RainbowDash disconnected
[...]
The Universal Declaration of Human Rights, Article 1:

All human beings are born free and equal in dignity and rights. They are endowed with reason and conscience and should act towards one another in a spirit of brotherhood.
User avatar
EmanReleipS
Administrator
Posts: 3415
Joined: Thu 3. Oct 2013, 00:18
Description: Pancake Fairy
Location: Germany

Re: [Mutator] Even Match (Onslaught team balancer)

Post by EmanReleipS »

I like the new balancer a lot. Good work!

I would suggest lowering the ActivationDelay a bit. I've seen it a few times that at the beginning of a matc, a bunch of players go into spec and one team ends up with 2 players less than the other. The balancer will wait for 10 seconds (ActivationDelay) + 60 seconds (SoftBalanceDelay) + however long it takes for someone to die until it balances the teams. Therefore one team might be down 2 players for over a minute, which at the beginning of a match when everyone is rushing around trying to grab nodes can place the team with 2 players less at a big disadvantage.
Alternatively the SoftRebalanceDelay could be decreased. As Wormbo told me, the default value is 10 seconds. Maybe we could go with 30 seconds?

The complaint I've heard so far is "why isn't the balancer doing anything?" when teams were a bit uneven for a longer period of time and connecting players ended up on the winning team. But before people found it too trigger-happy and we only lowered the SmallTeamProgressThreshold from 0.500000 to 0.400000. :dunnosoz:
Image
[P]etya
Posts: 82
Joined: Tue 16. Jun 2015, 08:42
Description: someone

Re: [Mutator] Even Match (Onslaught team balancer)

Post by [P]etya »

It works fine I think. No more random, unnecessary team switches and balance broken teams setup. It is really much better than Titan was.
joeblow
Posts: 350
Joined: Sun 16. Feb 2014, 20:41
Description: male gamer
Location: tennessee,usa

Re: [Mutator] Even Match (Onslaught team balancer)

Post by joeblow »

Might have already been talked about but...


Anyway to keep the the balancer from switching people in the last minute of the game as in overtime?

About a week ago on some 6v6,8v8 matches Rotti got switched to the loosing team in OT in due to some /ragequit activity.

I know he wont complain about that but I think thats unfair to him to get switched after playing well and winning.
User avatar
Cat1981England
Posts: 2326
Joined: Mon 23. Aug 2010, 16:35

Re: [Mutator] Even Match (Onslaught team balancer)

Post by Cat1981England »

Balancing during overtime is set to false so it shouldn't do that. Did it say "Rott switched by evenmatch" or words to that affect?
The Universal Declaration of Human Rights, Article 1:

All human beings are born free and equal in dignity and rights. They are endowed with reason and conscience and should act towards one another in a spirit of brotherhood.
User avatar
Wormbo
Posts: 384
Joined: Sun 28. Aug 2011, 12:52
Description: Coding Dude

Re: [Mutator] Even Match (Onslaught team balancer)

Post by Wormbo »

Even though there should be no team balancing in overtime, Even Match may still decide that some player's manual switch is unwarranted and undo it.
User avatar
Maniac
Posts: 253
Joined: Tue 23. Dec 2014, 23:21
Description: Ain't no rest for the wicked
Location: Ukraine

Re: [Mutator] Even Match (Onslaught team balancer)

Post by Maniac »

When a player is switched by the balancer, he can manually switch back the same moment and no other balancing occurs after that. Is it intended behaviour?
User avatar
Wormbo
Posts: 384
Joined: Sun 28. Aug 2011, 12:52
Description: Coding Dude

Re: [Mutator] Even Match (Onslaught team balancer)

Post by Wormbo »

Not really, that shouldn't be possible.
User avatar
Wormbo
Posts: 384
Joined: Sun 28. Aug 2011, 12:52
Description: Coding Dude

Re: [Mutator] Even Match (Onslaught team balancer)

Post by Wormbo »

Okay, two things: I may have found a fix for the switching back issue, and I started the translation of Even Match by providing English and German localization files. If you want to use them locally, rename them to match the EvenMatch.u file's name.
If anyone wants to help, please provide additional translations in the same format. Feel free to use either English or German version as your base. You are also welcome to provide improvements to both the German and English versions, of course.
It would be great if you could also extract localized versions of the "You are on red/blue" announcer sounds. (UModel should be able to do that via "umodel -export -sounds packagefile".)

A new release is available. See the first post in this thread.
User avatar
Cat1981England
Posts: 2326
Joined: Mon 23. Aug 2010, 16:35

Re: [Mutator] Even Match (Onslaught team balancer)

Post by Cat1981England »

Now on with the following settings, 07/02/16

[EvenMatchV2b2.mutTeamBalance]
ActivationDelay=10
MinDesiredFirstRoundDuration=5
bShuffleTeamsAtMatchStart=True
bRandomlyStartWithSidesSwapped=False
bAssignConnectingPlayerTeam=True
bIgnoreConnectingPlayerTeamPreference=True
bAnnounceTeamChange=True
bIgnoreBotsForTeamSize=True
bBalanceTeamsBetweenRounds=True
bBalanceTeamsWhilePlaying=True
bBalanceTeamsDuringOvertime=False
bBalanceTeamsOnPlayerRequest=False
bBalanceTeamsOnAdminRequest=False
bDisplayRoundProgressIndicator=True
SmallTeamProgressThreshold=0.300000
SoftRebalanceDelay=50
ForcedRebalanceDelay=60
SwitchToWinnerProgressLimit=0.600000
ValuablePlayerRankingPct=50
RecentBalancingPlayerTime=240
NoBalancingUndoTime=1
MinPlayerCount=2
TeamsCallString=
DeletePlayerPPHAfterDaysNotSeen=5
bDebug=True

--------

A few volunteers to do some translating would be great please people :thumbup:
The Universal Declaration of Human Rights, Article 1:

All human beings are born free and equal in dignity and rights. They are endowed with reason and conscience and should act towards one another in a spirit of brotherhood.
Post Reply