helpme101010
New member
- Joined
- Sep 21, 2016
- Messages
- 21
Let us say upgrading a building from level 1 to 2 takes 150 seconds but after a boost of 36% the time is reduced to 109 seconds.What formula was used here?
Thanks
Thanks
Is upgrading a building a linear process (function) with-respect-to time?Let us say upgrading a building from level 1 to 2 takes 150 seconds but after a boost of 36% the time is reduced to 109 seconds.What formula was used here?
Thanks
Thanks for replying SRK!
The game I play there are buildings which you have to upgrade. Now the original time of the building is 150 seconds but after getting a boost of 36% the time is reduced to 109 seconds. (i.e from level 1 to 2).And from level 2 to 3, the original time is 270 seconds and after the boost of 36% the time is reduced to 197 seconds ( I mentioned this as it might help you find a relation between the two or something else).
I really need the exact formula used here for developing purposes.
Thank you very much for your time!
Denis first of all everyone should be respectful to each other in here, no matter how dummy the question is.Secondly, your answer is wrong as the answer must be 109 not 54. Thanks!Perhaps you should pay attention during math classes.
36% of 150 = .36 * 150 = 54 no matter how you cook it...
Perhaps you should pay attention during math classes.
... after getting a boost of 36% ...
I really need the exact formula used here for developing purposes.
There is no way to determine the exact formula [even if you add if the data from level 2 to level 3 and from 3 to 4, etc.]. One might make a guess about the function and test it it for several other levels, but, in the blind, one could never be sure you had the exact function used to compute the results.Let us say upgrading a building from level 1 to 2 takes 150 seconds but after a boost of 36% the time is reduced to 109 seconds.What formula was used here?
Thanks
newTime = (oldTime)*(adjustment) - (percent)*(factor)
(The parameters adjustment and factor could either be constants or functions of other parameters.)
percent = 0.36, adjustment = 11/15, and factor = 25/9 yields newTimes of 109 and 197. :cool:
A linear fit to the data isYou are a genius!!.This is the formula I was looking for.
Thank you for your time my friend!
A linear fit to the data is
\(\displaystyle New\, =\, \dfrac{88}{120}\, [Old\, -\, 150]\, +\, 109\)
but you can also do a quadratic fit
\(\displaystyle New\, =\, \dfrac{88}{120}\, [Old\, -\, 150]\, +\, 109\, +\, a\, [Old\, -\, 150]\, [Old\, -\, 270]\, \)
where a is arbitrary; or a cubic
\(\displaystyle New\, =\, \dfrac{88}{120}\, [Old\, -\, 150]\, +\, 109\, +\, a\, [Old\, -\, 150]\, [Old\, -\, 270]\, [Old\, -\, b]\)
where both a and b are arbitrary; or, in general,
\(\displaystyle New\, =\, \dfrac{88}{120}\, [Old\, -\, 150]\, +\, 109\, + [Old\, -\, 150]\, [Old\, -\, 270]\, f(Old)\)
where f is any arbitrary function.
A linear fit to the data is
\(\displaystyle New\, =\, \dfrac{88}{120}\, [Old\, -\, 150]\, +\, 109\)
but you can also do a quadratic fit
\(\displaystyle New\, =\, \dfrac{88}{120}\, [Old\, -\, 150]\, +\, 109\, +\, a\, [Old\, -\, 150]\, [Old\, -\, 270]\, \)
where a is arbitrary; or a cubic
\(\displaystyle New\, =\, \dfrac{88}{120}\, [Old\, -\, 150]\, +\, 109\, +\, a\, [Old\, -\, 150]\, [Old\, -\, 270]\, [Old\, -\, b]\)
where both a and b are arbitrary; or, in general,
\(\displaystyle New\, =\, \dfrac{88}{120}\, [Old\, -\, 150]\, +\, 109\, + [Old\, -\, 150]\, [Old\, -\, 270]\, f(Old)\)
where f is any arbitrary function.
You are a genius!!
This is the formula I was looking for.
No, I am not.
Are you sure? You thoroughly tested it?
All I did was to determine a formula that fits the two given data points (150,109) and (270,197), incorporating the given percent (0.36).
I'd be surprised, if that formula were to work in all cases.
No, I am not.
Are you sure? You thoroughly tested it?
All I did was to determine a formula that fits the two given data points (150,109) and (270,197), incorporating the given percent (0.36).
I'd be surprised, if that formula were to work in all cases.
You're asking us to backwards-engineer some game you're playing. Even were that the purpose of this board (staffed by volunteers; nobody is getting paid for this) -- and it's not -- it would not be possible without vastly more information.Let us say upgrading a building from level 1 to 2 takes 150 seconds but after a boost of 36% the time is reduced to 109 seconds.What formula was used here?
You're asking us to backwards-engineer some game you're playing. Even were that the purpose of this board (staffed by volunteers; nobody is getting paid for this) -- and it's not -- it would not be possible without vastly more information.
Please provide the full coding for the game -- and not the .exe, but the commented code from the original programmers. Thank you.
Hack their server. Sure, it's a felony, but...Not really sure how to do that
Hack their server. Sure, it's a felony, but...