Gaming Zone > [MiA] Servers

OPEN SOURCING THE PIGSPN & BALANCER

<< < (2/5) > >>

Piglet:
There are some changes that take into account how well each player is currently playing.


 I tried removing the bug which was stopping the logic intended to prevent the same player from being swapped team several times in the same match. It worked but it meant that each swap that would have picked them picked the next best player.... which completely messed up the teams.

When player numbers are low the balancer doesn't work well.

At higher player numbers it sometimes does not appear to always get the team ppr as close as it could do. That may be because it only swaps two players

hagis:
the balancer does a good job on match start,. where things sometimes get confused is mid-match joins and leaves,. like you say perhaps it's to do with needing more than one swap to really sort it

I would say in general it works fine,. occasionally it doesn't but knowing the 'best' thing to do is sort of hard to do perfect programmatically

on SoL+HoC people (mostly admins) can move players between teams to help balance which is ok but I think actually the balancer generally gets close enough

Piglet:
The code has the option of forcing a recalculation whenever any player joins or leaves. We don't use that option as it could result in players getting moved every round.

However A CERTAIN UNNAMMED PLAYER WITH HIGH PPR regularly spectated at match start and then joined once the teams had been balanced. That meant that the game went from two balanced teams to one team having a VERY HIGH PPR PLAYER on it in addition - completely wiping out the balance in one move.

As a consequence I changed the code to do a recalculation of balance whenever a player with PPR over a certain threshold leaves or joins.

That works - however what we now see is the opposite impact when a very low PPR player joins the server. No balance action is triggered so now one team has a significant disadvantage.

We could change it it force a balance where a low PPR player joins or leaves - and only not balance when PPRs in a middle range join or leave - however it's really difficult to know how impactful that would be.

As things stand there's nearly always someone with admin rights on the server. They can trigger an attempt at re-balancing if they think it's needed. I don't know why sometimes that mid-game request seems to result in worse PPR averages than before the request. That shouldn't happen. Feel free to look at the code in the package to find out why.

Annihilator:

--- Quote from: Piglet on February 07, 2021, 13:28 ---The source for Freon is in the package you download. Feel free to let me know of any issues you see, and code to fix them.

--- End quote ---
True, and very much appreciated, but a GitHub repo would be highly beneficial regardless, IMHO.

Piglet:
I'm sure you're right. I just don't use it myself.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version