Auto-Balancing Program for Event Organizers by WhiteEagle

Users who are viewing this thread

WhiteEagle

Regular
NEWEST VERSION: CLICK HERE

Balance teams automatically for linebattles and other events! No math required!

numberjumble.jpeg





WhiteEagle's Team Balancer: Background Information

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




Advantages
I have attended far too many linebattles where it takes an hour to simply get the battle started, despite the best efforts of our organizers. It is simply not humanely possible to balance such a large number or regiments as quickly as the computer can, if it is instructed how to.


How it works:

-The program conducts a preliminary balance of the teams, filling up one side to the max before filling the other team. It then runs a second, more accurate, procedure to balance the difference between the teams created during the first balance (if significantly big).

Works best when:

-The special unit classes have a roughly equal unit size on each team
-The program is being used to balance 100+ player games

Known bugs:

-Not able to fix entries if wrong number or name of certain regiments is entered
-Slim possibility of placing two special unit classes of the same kind on one team in order to generate a perfect balance (easy fix to conduct some mental math and flip it to the other side, bringing down a spare line regiment to fill its spot)
-if more players than the specified total server slot size is inputted by the user, the program displays the regiments that have been entered but DOES NOT balance them-this is not an error, it is meant to tell that they cannot fit all of the players attending onto one server

Future editions: as the program is constantly going to be updated by myself, expect version updates to become regularily available. PLEASE NOTE: The next updates planned will include the ability to edit or modify numbers or data that has already been entered, and creating a more visually appealing user interface.




Testing & Use

Testing of the program:

Testing of the program code has been conducted by myself extensively, and "beta-testing" organizers will further put it through its drills in real lb or event balancing applications this week (week of release)

How to use:

The program operates as a DOS style interface, requiring the user to input information such as server slot size, number of regiments attending, and men in each regiment one at a time per each line. It first asks for the information on special unit class
before moving to regular line infantry regiments. At the end, it outputs a block of information which displays the initial balancing results as well as the secondary (more precise) balancing results. These results include the regiments on each team, numbers per regiments, and totals for each side. When finished, the program must be exited and restarted (a matter of a few seconds) before balancing the next server, etc.​




Release Notes

Release Notes V1.00:
-Sorts any size linebattle
-Capable of sorting 8 special classes (4 per team) and an infinite number or line infantry regiments
-Known errors include, but are not limited to,
>not performing calculations if total slot size is surpassed by the number of attendees
>switching one of the special unit classes to one team in an effort to create more perfect balance

ENJOY Mates!





Download Info


UPDATE: V1.2 Is now ready for download!

Changelog:
-now shows updated total players count as regiments are entered as well as updated remaining regiments left to be entered count (UPDATED in V1.1)
-now able to semi-process priority handling, meaning that it can be used to keep certain regiments on the same team during primary balancing
  How?
-Enter the specialist classes meant to be together so that they all fall under the "Team 1" title when prompted
-Enter the regiments meant to be together in a consecutive order so that the first line infantry regiments you enter follow directly behind one another

Download info:

MediaFire Link: http://www.mediafire.com/?1aqm7pgfw27q4m3
Password: version1

October 26, 2012

***UPDATE: V1.2 Is now ready for download!***

Changelog:
-now reserves 5 slots for balancing purposes (UPDATED in V1.2)
-now does not allow the entry of more players than the total slot size permits (UPDATED in V1.2)
- now allows for the entering of as many regiments as possible until server is full or until the user decides to stop (UPDATED in V1.2)

Download info:

MediaFire Link: http://www.mediafire.com/?u82ha42n1g7bpdv
Password: version2

November 3, 2012

To download the program, use MediaFire at: http://www.mediafire.com/?5nyw5qu9egw6cmt
THE PASSWORD IS "crusader" IN HONOUR OF MY FIRST USER, CRUSADER AND THE SATURDAY LINEBATTLE EVENT (notorious for its excellent fun and even awesomer waiting times (looong) :grin:).
Once downloaded to a directory of your choice, unzip it using the default Windows Extract Tool to a location on your computer. Inside the folder, you will find a collection of files that should not be touched (they are required for the stable operation of the program). Double click on "WhiteEagle's Team Balancer - Run.exe" to start the program. It should have a small golden star icon on it! Best way to organize it on your screen is to stretch it to cover one half of your monitor while the other half can be used for viewing the teamspeak or word file where regiment info (name, class, and numbers) is stored at the time.

Feel free to contact me on TaleWorlls by replying to this thread or by personal messaging me for help as well as finding me on steam at: http://steamcommunity.com/id/SerbianWhiteEagles

The thread will be updated as news comes along, so expect to see changes over time.



Enjoy the program and I hope we no longer have to wait hours to start the linebattle we came for! All that was needed was two days of programming nonstop on my part. :roll:

Sincerely,
WhiteEagle


Enjoy mates!!! :lol:
 
Megaberna said:
Epic work and a great tool to be used in events!

Great job :wink:

Now that sort of comment proves just how great this community is. I greatly appreciate your support mate! Hopefully, it makes events that much smoother and more enjoyable.
 
Trying to test it but I click WhiteEaglesTeamBalancer - Run, opens a CMD window and immediately vanishes and nothing happens xD Im not good with programs but anything im doing wrong?
 
Karth said:
Trying to test it but I click WhiteEaglesTeamBalancer - Run, opens a CMD window and immediately vanishes and nothing happens xD Im not good with programs but anything im doing wrong?

Have you unzipped the folder you downloaded before actually running the .exe file? make sure to right click, extract before you actually try to open the files within. First try running "WhiteEaglesTeamBalancer - Run" once it has been extracted. If that shortcut isn't working for you for whatever reason, then run "WhiteEaglesTeamBalancer". I will, in the meantime, check to see if it works on one of my other computers and try to isolate the problem that way. Thanks for the feedback mate!
 
UPDATE: I just ran it perfectly on my laptop, which did not in any way serve in making the program and replicated just about any other computer. I don't see why you could not run it unless you did not extract it properly, didn't allow it run when it asked for permission, or if you had your firewall on which for some reason blocked it even though it does not request access to the internet (I left my firewall on while running it anyways).

Anyone else manage to run it perfectly like myself?
 
BrC Crusader said:
Tried it when i got back yesterday evening, cheers for this man, will help so much with the saturday linebattle!

I'm glad you had the chance to test it out, if you have any feedback on its performance, please do share.
 
Had a stepbystep tutorial with WhiteEagle.  Very helpful and great/simple program.  Highly recommend any linebattle organisers to use this.
 
Karth said:
Had a stepbystep tutorial with WhiteEagle.  Very helpful and great/simple program.  Highly recommend any linebattle organisers to use this.

I appreciate it! I think I'll take this chance to explain one of the questions you had because it will probably affect other users as well.

If not using all or any specialist classes in linebattle, program can still be used by adding 8 to your regiments attending number and entering 0 for Numbers and "n/a" for Name for all the specialist classes when prompted. If using some of them, subtract the slots being used from the 8 you add to the regiments attending value.

For example, if your linebattle has no skirms or lights:

your regiments attending number=real amount of attending regiments+4 (one skirm unit and one light unit per two teams is 4)

your input for Skirms Unit 1=0
your input for Skirms 1 Name=n/a

your input for Lights Unit 1=0
your input for Lights 1 Name=n/a

Everything else works the same! This way, you don't have to have all the specialist slots filled to actually use the program.
 
Back
Top Bottom