Tribal Wars Calculator

This is super duper old. The code is Python 2, and the game, while it still exists, is probably very different from the game this was made for. I'm leaving this up for posterity, but it's probably not useful.

Tribalcalc is a little program to help with the tribal wars game.

You will need the following to run this thing:

Once all that is installed (just put the program in its own directory) you should be able to run it. The executable is gridcalc.py and it is directly executable under Linux or OS X.

The Docs

Tab the First: Resources

The resources tab tells you how long it will take to get up to a specified resource level. There are convenience fields for wood, clay, and iron so you can see which resource is keeping you from building that next thing you want to build. The levels column takes building levels (e.g. timber camp) while the stock and final stock columns are for how much you have and how much you want, respectively.

Second Tab: Troops

This tab is mostly useful for farming. It will calculate how much loot an army of a given size and composition can carry. Just enter numbers into the fields.

Tab Number Three: Calculator

The third tab is just a bunch of calculators. It's there purely for convenience. You enter arithmetic expressions in the boxes and their results show up next to them. Be careful when dividing though, as it just uses Python's interpreter directly. If you want fractional parts of the results to show up, you'll have to put a floating point number (like 5.0 or 3.14) in the expression somewhere.

Probably Misplaced but Tab Four: Production

This tab is just like the Resources tab only in reverse. You enter the amount of time you're willing to wait and it tells you how much stuff you can build.

Tab Five Is Last: Farm Log

This tab is for assisting with the farming process. Use it to keep track of how many resources your farms still have. I fill out the form at the top every time I get a report from a scout. Then, when I have free troops, I'll send the appropriate number (calculated using the Troops tab) to the village and delete it from the list.

The grid can be sorted by any column; just double click on the column label. To select a row for deletion, click its row label. The fields themselves are fairly self explanatory. The least so being Distance, which shows the distance in squares between your origin village and target village.

The "count" field will do arithmetic if that's what it's fed. So if you want to enter that the village has 256 wood, 512 clay, and 1024 iron, you don't have to do the math in your head. Just enter "256+512+1024" (no quotes) and it will add them for you. Also, pressing the Enter key while the focus is in any field is the same as pressing the Add button.