Speed of Units

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:) :confused: :mad: :( :p ;) :D :o :rolleyes: :cool: :eek:

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Speed of Units

Post by simonhub » Sun Apr 15, 2012 5:23 am

Figure out It is a sphere. But can not figure out how they did the calculation

Post by Tooltip » Sat Apr 14, 2012 9:31 pm

Rounding might be occurring during each step of the calculations.

Post by simonhub » Sat Apr 14, 2012 9:26 pm

I have tried such in my word. target is to input a coord in the exel then can give me the marching time of each city depends on which kind of troop i will send. But i find it is not doable as the average speed for unit in the same world is different depending of the different target. especially when the distance is far (over 24 hrs). anyone notice this? clue? interesting part is that some time the actual time is short than I calculated, which is impossible in real world. any clue?

Post by runey71 » Thu Nov 24, 2011 3:57 pm

KimKardashian wrote:Does anyone know mins per field for every unit?


Click the question mark then click units then units overview.

To calculate distance (all formulas are for Excel):

AX = Attacker X Coord
AY = Attacker Y Coord
DX = Defender X Coord
DY = Defender Y Coord
Distance = SQRT(ABS(AX-DX)^2+ABS(AY-DY)^2)

To compensate for wrapping map:

XD = IF(ABS(AX-DX) > 250, ABS(ABS(AX-DX)-500), ABS(AX-DX))
YD = IF(ABS(AY-DY) > 250, ABS(ABS(AY-DY)-500), ABS(AY-DY))
Distance = SQRT(XD^2+YD^2)

To calculate march time:

WS = World Speed
US = Unit Speed
S = Speed of Unit
Time = (Distance*S)/(WS*US)

Example:
Attacker Coords = 405, 69
Defender Coords = 398, 73
XD = 7
YD = 4
WS = 1.5
US = 1
S = 4 (Scout)

Distance = SQRT(XD^2+YD^2) = SQRT(7^2 + 4^2) = 8.062258
Time = (Distance*S)/(WS*US) = (8.062258*4)/(1.5*1) = 21.49935 or 21 minutes 29 seconds

Post by KimKardashian » Sat Nov 19, 2011 4:09 pm

Does anyone know mins per field for every unit?

Post by Beartato » Wed Nov 16, 2011 2:30 pm

I think your thinking is right in that 1 field is the distance between (100,100) and (101,100). The trick is the unit speed gets divided by the World Speed. For example the speed of a lancer is 12 minutes/field in the help (non-bonus), and the world I'm in has a speed of 1.5 (You can find this by going to the Worlds page and hit the info button). When I send one lancer to the barb right next to me, it takes 8 minutes. So using the math of the world speed and the default lancer speed, I get 12 minutes/field divided by 1.5x speed = 8 minutes/field. So in your case, using a little algebra it looks like the speed of your world should be 1.125x, since that's the rams 20 minutes/field default divided by the 17.76 (17 min, 46 seconds) minutes/field that you see when you send your ram to your neighbor.

Speed of Units

Post by SirSweetness » Tue Nov 15, 2011 1:45 pm

Each unit has thier own speed- in minutes per field. I have yet to come across someone that can explain what makes a field? For example: I know a ram has a unit speed of 20, but if I attack the barb city right next to me (from 100,100 to 101,100), it takes 17 minutes 46 seconds to arrive? Anybody have a clue?

Top