Summary
Fair team balancer for any scenario and faction mod. / Balanceador de equipos para cualquier escenario y mod de facciones.
Description
[EN]
Team balancer for any scenario and any faction mod. Server-side check + greyed-out buttons in the deploy menu.
- Main factions are kept within N players of each other (default 2). A faction nobody plays this round never locks anyone.
- Minor factions (default FIA) get a player cap (default 12) and, on low population (under 34 players), may not outnumber any main faction. Minor rules only apply when there are at least 2 main factions (USSR vs FIA is balanced normally).
- Hidden factions (like the Conflict renegade faction) and factions listed in ignoredFactions are left alone.
- Only player choices are balanced: sides set by the server itself (Conflict reconnects, forced faction, renegade flow, admin tools, side swaps) always go through.
- The player asking is not counted in the team he is leaving, and his own team is never locked for him.
- Auto spawn and the "random faction" button pick an open side.
- Optional for 3+ main factions: protectSmallest compares with the smallest side that has players.
- Game Master: "Team Balancer" checkbox and "max difference" slider at the bottom of the game settings window (V). Applies at once, for the current game only (the next game uses config.json again). Added by script, no vanilla config is overridden.
Config: $profile:FairTeamBalancer/config.json (created on first start, completed automatically on updates)
{"enabled":true,"maxDifference":2,"minorFactions":"FIA","minorMaxPlayers":12,"minorMaxDifference":1,"minorPopThreshold":34,"ignoredFactions":"","adminsBypass":false,"trustServerRequests":true,"protectSmallest":false}
minorFactions / ignoredFactions: comma separated faction keys. adminsBypass: logged-in admins may join a locked side.
trustServerRequests: false = also balance faction changes made by server-side scripts. protectSmallest: see above.
Save the file as plain JSON (no comments). Invalid values are reported in the log and the file is left untouched.
Read when the game starts. Log lines start with [FTB].
[ES]
Balanceador de equipos para cualquier escenario y cualquier mod de facciones. Control en el servidor + botones en gris en el menu de despliegue.
- Los bandos principales se mantienen parejos, con maximo N jugadores de diferencia (por defecto 2). Un bando que nadie juega esa ronda nunca bloquea a nadie.
- Los bandos menores (por defecto FIA) tienen un tope de jugadores (por defecto 12) y, con poca gente (menos de 34), no pueden superar a ningun bando principal. Estas reglas solo aplican si hay al menos 2 bandos principales.
- Los bandos ocultos (como los renegados de Conflict) y los de ignoredFactions no se tocan.
- Solo se balancea lo que eligen los jugadores: los cambios que hace el propio servidor (reconexiones, faccion forzada, renegados, herramientas de admin) siempre pasan.
- El que pide el cambio no cuenta en el equipo que deja, y su propio equipo nunca se le cierra.
- El auto spawn y el boton de faccion al azar eligen un bando abierto.
- Game Master: casilla "Team Balancer" y barra "max difference" al final de los ajustes de partida (V). Vale al instante y solo para esa partida.
Configuracion: $profile:FairTeamBalancer/config.json (se crea solo y se completa al actualizar). Las lineas del log empiezan con [FTB].
Gracias a la comunidad de LATAMSQUAD por las pruebas. / Thanks to the LATAMSQUAD community for testing.License
Arma Public License (APL)