Gaming Zone > [MiA] Servers

VCTF - working on balancer

<< < (3/5) > >>

The_Cowboy:
Another is how to introduce bot-crowd. Right now, if three players flee, from a team, then maybe we can fill up that with vacancy with 3 bots? IDK!

The_Cowboy:

--- Quote from: Piglet on January 29, 2022, 21:18 ---Ok - checked the code. They should play nicely together. It's back on from next map.

--- End quote ---

Ah just saw your post (that is what I hoped, says I).

Ignore my posts then!!!

Piglet:
The current logic in the team-size code is:

1. If the teams are the same number you can't swap teams
2. If there is one fewer player on a team a bot is added. As a player joins or leaves the bot is removed
3. If there are two+ players fewer on a team it waits a bit then moves the shortest-time-playing player from the bigger to the smaller team.

Thoughts:

The code above is pretty good, other than the fact that sometimes the swapped player has the flag, howeber as you say it can be abused: People leave lower numbered team and then someone is swapped. Then rejoin. Maybe even rejoin the better team deliberately. Then you need kicking from the server...

Code could be added to prevent a player from rejoining after leaving or spectating. However it's not just problem players who need to leave temporarily. Maybe a countdown time before they can rejoin. Maybe can only rejoin the team they came from....but what if it's the bigger team by then? Do we push the player that was swapped or just joined to the other team?

It's not as easy to detail a good solution let alone code it.

Code could track which team you were on and whether you were moved teams mid-game

Piglet:
In Freon (the version used here) the teams are re-balanced each time a high-value player joins or leaves, or at admin request.

The code picks a pair of players that have a history&current playing rating that most closely events the average historical&current playing rating of each team.

Freon is rather different though. The swaps happen at the end of a round and not mid-play (unless the teams get 2+ apart - then the code above is used to even the numbers not the player values)

Piglet:
Code updated on the server and on the link - for some reason "bAddToServerPackages=True" didn't work. No idea why. It sometimes does and sometimes doesn't - which caused the rather strange start to bloodbath earlier.

Lots of tidy-up. A little more functionality. Preparation for more code at some point.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version