@phong said in In-lobby Auto Balancing:
When there are open slots available, the balancer changes players' team assignment in place instead of moving them to the appropriate slots, messing up the auto teams setting in the process. For instance, in a 4v4, i ended up with 4 players top vs 2 players bottom, while one of the top players got assigned to team 2, alongside the bottom players. the remaining open slots were both on the bottom. The auto teams setting got switched from odd vs even to manual.
This might be tricky to fix because not all maps follow the same numbering conventions for slots. I know mapgen numbers slots in alternating team fashion, as i expect most maps do, but there are manmade maps that don't follow this convention, like Dunes of Arracis where the first 5 slots are supposed to be one team, and the last 5 are supposed to be the other. Maybe the autobalancer could query the active auto-teams setting and go off of that to figure out which slots should be what teams, or when manual team selection is active, maybe we should expect the host to set team assignments per slot and then the autobalancer should run with that, although the current process to do so is very tedious: you have to turn on the old autobalance then click each spawn point until it's assigned the right team number, then you'd have to turn off old autobalance again and click the new button... maybe there's a better way ?
A host using the auto-balancer could recognize what the teams are "supposed" to be. After auto-balancing, the host swap players to put them on the correct team.
Not a perfect solution but for maps with 8 or fewer players, that's probably not a huge amount of switching. And my impression is that the most popular maps for 10+ players mostly have versions with alternating slots for each team.