Automatically balances teams for linebattles and other events! No math required!
*Now with a graphical interface!*
WhiteEagle's Team Balancer: Background Information
Spoiler
The team balancing program was developed by myself as a way to help out the great NW community. With a decent background in Python, I have been able to develop a program capable of balancing 8 special unit classes (4 on each team, arty, cav, skirms, lights) as well as any number of regular line infantry regiments within a margin of error of 10 men. The program can be used by organizers to sort teams for each server in under 3 minutes!
About the Program
- Works with any size server
- Balances 8 special class units (1 arty, cav, skirm, and light unit on each team)
- Automatically generates teams for each server at a time, capable of balancing to within 10 men at the most, usually achieves 2-3 men balances
Download Info
June 14, 2013
This new program features:
-a graphical user interface
-copy paste functionality to eliminate manual rewriting of the balanced teams
-more accurate, glitch free balancing
-the ability to select exactly what regiments and classes you want to enterHow to download and run:
1. download the zip file
2. unzip to a directory of your choice
3. inside the unzipped folder, run the shortcut called "WhiteEagle'sNewTeamBalancer - Run"
How to use:
1. just follow the instructions in the dialog boxes that appear, its an easy to use graphical user interface with just regular text boxes to enter
2. when you are done, click finish and close and the program
THE PROGRAM WILL NOW CREATE A TEXTFILE IN THE SAME FOLDER IN WHICH YOU RAN IT FROM CALLED "balanced_teams.txt". THIS TEXT FILE CONTAINS THE BALANCED TEAMS. THIS ALLOWS YOU TO JUST COPY AND PASTE THE TEAMS BALANCED BY THE PROGRAM DIRECTLY FROM THE TEXT FILE INSTEAD OF MANUALLY WRITING THEM DOWN.*please note: the text file is rewritten every time you run the program (to save storage space and reduce file clutter) so if you are balancing more than one server, copy the previous server's info from the text file before running it for the next server*
Step by step how-to guide
1. Once unzipped, double click the shortcut with the star icon to launch the program.2. Click continue to begin.3. Select the number of slots your server has. If it has more or less slots than the predefined values hit "Let me specify" and enter a number manually. There is no limit to server size but you will not be able to enter negative values.4. Select the classes involved in your linebattle by clicking on each one individually. Alternatively, you can hit the "Select All" button in the top right corner and select all of them. The program will close automatically if you do not select any of them. For this demonstration, I have artillery, cavalry, and line infantry in my battle.5. Enter the name of each specialty regiment and its numbers. Name first, numbers second. First enter all specialty classes for team 1 followed by all specialty classes for team 2. The program will automatically check that they can all fit on the server.6. Enter the name of each line infantry regiment and its numbers. Name first, numbers second. You can enter them in any order. The program will automatically check that they can all fit on the server. You can leave empty slots if you do not need that many.7. You will be prompted to enter another round of line infantry regiments if there is space on the server (in case you had more than was offered on the first screen. Once again, it will check that they can all fit and you may leave empty slots if you do not need them. In this demonstration, I did not need to enter extra line infantry regiments and so I hit "No" to skip this step.8. The program will now balance the teams for you. Click finish to close the window. It will tell you to look in the folder you ran the program from to find the text file with the balanced teams. You can copy and paste from this textfile directly into teamspeak or whatever you are using to organize the linebattle.9. Find the textfile called "balanced_teams.txt". It contains the balanced teams for you to copy and paste.10. The textfile will contain the following:That's it! This takes no longer than 1-3 minutes, at most. If you have another server to balance, copy and paste the information from the textfile before you run the program again as it will overwrite the textfile with the next server's balanced teams.
Feel free to contact me by replying to this thread or by personal messaging me for help as well as finding me on steam at:
https://steamcommunity.com/id/SerbianWhiteEagles The thread will be updated as news comes along, so expect to see changes over time.
TIPS:1. If you are given an estimate rather than a solid number as to how many men certain regiments will be bringing, input a number exactly halfway between their low estimate and high estimate or as close to that number as possible.
2. Always remember to copy paste the previous balance results before moving on to another server for the same event. This is because it will be overwritten the next time you run the program.
Suggestions for future updates:Please leave a reply with any possible suggestions which I will list here and check off as they are added.
WhiteEagle Last update: July 31, 2013