Specific Build times for troops and buildings

ray661

Guest
I would like to know the build times for each building and unit at 100% and the percent each building decreases. I'll be creating formulas for this game and am missing these variables, and i realized that the percentages (looking at the barracks) are in the decimals, and possibly the times themselves could go through milliseconds as well, and we don't realize it.

I'll post the fruits of my research, time and effort in the next post that I reserved. I can only do this if someone knows either how I can find these, or gives the stats to me themselves. Thanks in advance.
 

ray661

Guest
Took me a while to find it but thanks ^.^. I wonder why I never knew about this tool. *shrugs* that pretty much does all the work I was going to find for you, but i'll post my results anyway.

Thanks k9burn.

The reason why I continue for those that ask, it's a math assignment to create some formulas that apply in some way to real life, the more complicated, the better the score. Teacher said this counts ^.^. Will post updates soon.
 
Upvote 0

cheesasaurus

Guest
for speed 1, on .net servers:
buildings
units

the base build time is divided by the world speed.

time it takes for a specific-level building to be constructed, with a 100% time factor
Code:
duration = [base build time]*[build time factor]^(next level - 1)

To get the actual build time of a building, multiply it by the time factor of the village headquarters when the construction begins.
Code:
time factor = 1.05^(-(level of the village headquarters))
A level 1 village headquarters has a time factor of about 0.952381, or 95.2381%

To get the actual build time of a unit, multiply the "base build time" by the time factor of the building that makes it, at the time the creation begins. The time factors of the the barracks, stable, workshop, and academy are all the same.
Code:
time factor = 2/3*1.06^(-building level)
A level 24 barracks has a time factor of about 0.164652, or 16.4652%
A level 25 barracks has a time factor of about 0.155332, or 15.5332%

You can retrieve the building and unit information for different servers using the interface php.
Code:
interface.php?func=get_building_info
interface.php?func=get_unit_info
 
Upvote 0

SlowTarget

Guest
<snip>

You can retrieve the building and unit information for different servers using the interface php.
Code:
interface.php?func=get_building_info
interface.php?func=get_unit_info

wow thats great - I wish I'd known about these functions before putting together the attack timing script / mass recruit script / buildings report etc etc

brilliant :)

Are there any other undocumented functions like this?
 
Upvote 0

Dark-Arcanine

Guest
Bringing back an archaic thread here...

Can anyone explain why I am always finding a slight discrepancy in the calculations either using my own calculations or the one found here:

http://forum.tribalwars.net/showthr...e-SimCity-Tool&highlight=construction+planner

Example:

Upgrading the market from level 18 to 19 with a HQ of level 20 and a world speed of 1.

The actual in-game build time is 7:42:22 (27742 seconds, 462.37 mins)

However the figure that I always seem to get using either method is 7:31:32 (27092 seconds, 451.53 mins)

Thoughts?
 
Upvote 0

Muldie325

Guest
On recent-ish worlds the build formula has changed, giving you much faster build times early on, but steeply increasing, eventually reaching a little higher than the old times.
 
Upvote 0

Dark-Arcanine

Guest
Ah of course, I remember the update. Does anyone know of the calculation(s) for the new system?
 
Upvote 0

Dark-Arcanine

Guest
The link above does explain the initial start up difference (building levels 1 & 2), however from what I can see it explains the same methods as this thread for the other levels which still causes a discrepancy for some reason.

Using the data for EN66 (Speed 1), the base build times for a few samples are:

Market45
Farm20.0
Hiding Place30.0
HQ15.0

Example of upgrading the market to level 19 with a level 20 HQ (EN66):

Actual build time = (base build time*build time factor^(building level -1))*1.05^(-level of the village headquarters)

Actual build time = 45*1.2^18*1.05^-20

Actual build time = 451.53

Actual in-game time = 462.37

Here are a few other sample:
Market 19Market 11Farm 23Hiding Place 1HQ 21
Actual in-game time462.3796.00437.251.25225.10
Calculated time451.53105.01416.131.25216.74

Thoughts?
 
Upvote 0

DeletedUser106065

Guest
The link above does explain the initial start up difference (building levels 1 & 2), however from what I can see it explains the same methods as this thread for the other levels which still causes a discrepancy for some reason.

Using the data for EN66 (Speed 1), the base build times for a few samples are:

Market45
Farm20.0
Hiding Place30.0
HQ15.0

Example of upgrading the market to level 19 with a level 20 HQ (EN66):

Actual build time = (base build time*build time factor^(building level -1))*1.05^(-level of the village headquarters)

Actual build time = 45*1.2^18*1.05^-20

Actual build time = 451.53

Actual in-game time = 462.37

Here are a few other sample:
Market 19Market 11Farm 23Hiding Place 1HQ 21
Actual in-game time462.3796.00437.251.25225.10
Calculated time451.53105.01416.131.25216.74

Thoughts?

You didn't read the whole thread? Because the formula you're using is not the same as I am seeing there.
 
Upvote 0

Dark-Arcanine

Guest
Pretty sure I did. It all stems from:

actual build time = [duration of creation]*1.05^(-[level of the village headquarters])


and

duration of creation = [build_time]*[build_time_factor]^(level of the building] - 1)


which combine to give what I'm using. If I'm miscalculating it then the tool that I referenced above is also doing the same.
 
Upvote 0

DeletedUser106065

Guest
Pretty sure I did. It all stems from:

actual build time = [duration of creation]*1.05^(-[level of the village headquarters])


and

duration of creation = [build_time]*[build_time_factor]^(level of the building] - 1)


which combine to give what I'm using. If I'm miscalculating it then the tool that I referenced above is also doing the same.

Nope, you are using old formulas. Please scroll down to the 3rd post in that thread :)
 
Upvote 0

Dark-Arcanine

Guest
Got it! As you can see below, I could not see the vital component. It was only copying and pasting that made me notice it. Cheers for the help! :)


Ahhh_zps13adc387.png
 
Upvote 0

telox

Guest
I am creating an comprehensive tool in excel and to complete it I need the formulas for the calculation of the buildings. I could get it works, so, anyone can make me an example of the calculation with Hq=20, and upgrading from market lvl 10 to 11?


Code:
actual build time = [duration of creation]*1.05^(-[level of the village headquarters])
duration of creation, for lvl 1 and 2 = [build_time]*1.18*[build_time_factor]^(-13)
duration of creation, for lvl 3+ = [build_time]*1.18*[build_time_factor]^(level - 1 - 14/(level-1))

or tell me where is my mistake:

duration = build_time*1,18*(1,05^(-HQ level))^((level-1-14)/(level-1))

duration = 45*1,18*(1,05^(-20)^((9-14)/9))

duration = 91,31

duration(time) = 91,31/60/24 = 1:31:19

IN GAME: duration(time) = 1:36:00
 
Last edited:
Upvote 0

twenty-five

Guest
I don't know how you managed to get the formula so wrong in so many ways :/

Anyways..

build_time_factor is entirely missing from your calculation. It is 1.2 for all buildings though.
level is 11 (what you are building... not current..)
also the formula states : level - 1 - 14/(level-1), you've used (level-1-14)/(level-1)

So for market 11 at hq 20:

45 * 1.18 * 1.2 ^ (11 - 1 - 14/(11-1)) * 1.05 ^ (-20)
45 * 1.18 * 1.2^(10 - 14/10) * 1.05 ^ (-20)
= 95.99912... minutes
= 1:36
 
Upvote 0

Wandering KAMi

New Member
Reaction score
0
I don't know how you managed to get the formula so wrong in so many ways :/

Anyways..

build_time_factor is entirely missing from your calculation. It is 1.2 for all buildings though.
level is 11 (what you are building... not current..)
also the formula states : level - 1 - 14/(level-1), you've used (level-1-14)/(level-1)

So for market 11 at hq 20:

45 * 1.18 * 1.2 ^ (11 - 1 - 14/(11-1)) * 1.05 ^ (-20)
45 * 1.18 * 1.2^(10 - 14/10) * 1.05 ^ (-20)
= 95.99912... minutes
= 1:36
Any1 with the new formulas ?
 
Upvote 0
Top