Correlation between World Speed and Unit Speed

DeletedUser3214

Guest
I have come to find that the relationship between World and Unit speed fluctuates slightly. I am either wrong mathematically or there is some reason for this. Assuming my math is correct, does anyone know what the difference is from?

Recently I was just looking at my main worlds int page and saw that there were more precise unit speed figures listed. I decided to test how it compared between World 6 and 7 (Just randomly, I assume the difference is constant for all world combinations).

Heres what I found:

World 6:
Speed 1.6
Unit speed modifier 0.6

World 7:
Speed 1
Unit speed modifier 1

For spear fighters:
Speed on world 6 = 18.749999999766
Speed on world 7 = 18.000000000504

World Speed/Spear Speed Ratio

World 6:
1.6*0.6/18.749999999766 ~ 0.05120

World 7:
1*1/18.000000000504 ~ 0.05556

A difference of ~0.00436. Is this created possibly by the inaccuracy of the World speed being given with only 2 significant digits (World 6= 1.6) and 1 significant digit (World 7= 1)?

If so, where can I find the exact world speed, as accurate as the unit speed on a specific worlds int file?
 
Last edited by a moderator:

Nauzhror

Active Member
Reaction score
31
I suspect those numbers are rounded, not the unit speed. If you look, those numbers both have the same number of digits.
 

DeletedUser

Guest
"I assume the difference is constant for all world combinations"

It's not. Innogames tends to keep the unit movement about the same from world to world, but it's not the result of any game mechanic (rather, the person configuring the world sets the game speed and then adjusts the unit speed modifier to achieve the effect of units moving about the same speed regardless of the world)


The numbers from interface.php?func=get_config are correct, and the numbers listed for game speed and the unit speed modifier are within 1E-010 of the actual configuration.

map bounds are 1000x1000 (even less on some worlds), giving maximum distance of 1415
the game stores and proccess commands in order of millisecond arrival

1415*35minutes*60(seconds/minute)*1000(miliseconds/second) = 2971500000, which has 10 digits

Its safe to use the game speed and unit speed values listed in stat.php and interface.php?func=get_config to determine what your results will be in game.

There's no way for users to fetch the exact game speed and unit speed settings.
If you want to calculate individual unit speeds yourself, just imitate the way the game does it:
-individual unit speed is hard coded: [18,22,18,18,9,10,10,11,30,30,10,35];
-server speeds are configured. Unit speeds in the running game are determined by hardCodedValue/gameSpeed/overallUnitSpeed

using the listed settings from interface.php?func=get_config or stat.php:
world 6 spear speed with the listed settings would be 18/1.6/0.6 = 18.75 minutes

that number will be useful for any in-game applications.
 
Top