.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Dominions 2: The Ascension Wars (http://forum.shrapnelgames.com/forumdisplay.php?f=55)
-   -   Got home, got manual, got disappointed! (http://forum.shrapnelgames.com/showthread.php?t=18325)

Chazar March 16th, 2004 09:31 AM

Re: Got home, got manual, got disappointed!
 
Quote:

Originally posted by Saber Cherry:
Chance of hitting a given square:
(1-(1-((2+prec)/(2+prec+1.5*range))))*(1-(prec/100)^2))*(prec/100)^.2

<font size="2" face="sans-serif, arial, verdana">Are you sure that the second 2 is really a 2 and not a .2? And I guess the weapon's basic range is missing somewhere... http://forum.shrapnelgames.com/images/icons/tongue.gif

No, honestly, I agree. I just had to realize this after reading too much within this forum! Its just my nature as a mathematician which makes me wonder about the all these probabilities... http://forum.shrapnelgames.com/images/icons/icon7.gif

Gateway103 March 16th, 2004 09:32 AM

Re: Got home, got manual, got disappointed!
 
Quote:

Originally posted by Saber Cherry:
Chance of hitting a given square:

(1-(1-((2+prec)/(2+prec+1.5*range))))*(1-(prec/100)^2))*(prec/100)^.2

Doesn't it look about like that to you? You have to actually watch the battle replays to get a good feel for the exact equations, not just look at the results...

<font size="2" face="sans-serif, arial, verdana">What a complicated formula... wait, it simplifies to ((2+prec)/(2+prec+1.5*range))*(1-(prec/100)^2))*(prec/100)^.2 , as the two 1's are redundant... wait a minute, there is one extra ) after the squared turn, was that a typo or something else (could explain the redudant 1's)

Btw, what is the highest possible precision in game short of prec100 spells? Btw, if I were to intepret the extra ) as a simple typo and ignore it, then the formula says maximum probabilty is at prec 40~50 (depends on Range), and actually starts to drop after that (prec100 has zilch ^_^) A result of regression fitting perhaps, albeit intriguing.

-Gateway103

[ March 16, 2004, 07:42: Message edited by: Gateway103 ]

Norfleet March 16th, 2004 10:32 AM

Re: Got home, got manual, got disappointed!
 
Quote:

Originally posted by Gateway103:
Btw, what is the highest possible precision in game short of prec100 spells? Btw, if I were to intepret the extra ) as a simple typo and ignore it, then the formula says maximum probabilty is at prec 40~50 (depends on Range), and actually starts to drop after that (prec100 has zilch ^_^) A result of regression fitting perhaps, albeit intriguing.
<font size="2" face="sans-serif, arial, verdana">A precision of 40 to 50 is pretty insanely accurate. I don't think you find precision that good in the game, normally. The fact that it drops after that by the formula given is surely an artifact of regression fitting, which is the only feasible way that Cherry could possibly have derived such a convoluted formula. It's almost certainly not *THE* formula used in the code, but it's likely a good enough approximation for all reasonable values of precision.

PDF March 16th, 2004 05:41 PM

Re: Got home, got manual, got disappointed!
 
The formula looks faulty, here are some tabular results : prec 10 has a nearly flat hit chance regardless of range, prec 50 is worse than 20..


PREC
RANGE 5 10 15 20 50 99
1 45.12% 59.13% 63.57% 66.69% 64.12% 1.97%
5 8.36% 34.18% 30.44% 31.34% 31.05% 14.72%
10 2.96% 31.52% 26.04% 27.01% 26.95% 22.83%
20 1.25% 31.35% 25.18% 26.27% 26.26% 25.18%
50 0.43% 31.48% 24.98% 26.14% 26.14% 25.73%

Saber Cherry March 16th, 2004 05:54 PM

Re: Got home, got manual, got disappointed!
 
Oh, I should mention that I just made that up. Ha, ha! http://forum.shrapnelgames.com/images/icons/icon10.gif I didn't really think anyone would take it seriously...

Finding the formula would be tough, since it doesn't even exist in the game code - the precision formula just tells the projectile where to land; it does not give it a probability of hitting a given square.

Gateway103 March 17th, 2004 07:00 AM

Re: Got home, got manual, got disappointed!
 
Quote:

Originally posted by Saber Cherry:
Oh, I should mention that I just made that up. Ha, ha! http://forum.shrapnelgames.com/images/icons/icon10.gif I didn't really think anyone would take it seriously...

Finding the formula would be tough, since it doesn't even exist in the game code - the precision formula just tells the projectile where to land; it does not give it a probability of hitting a given square.

<font size="2" face="sans-serif, arial, verdana">What! And we trusted you!!! http://forum.shrapnelgames.com/images/icons/icon8.gif

That'll teach us to trust the "reputable" Saber Cherry http://forum.shrapnelgames.com/images/icons/icon12.gif

-Gateway103

March 17th, 2004 08:28 AM

Re: Got home, got manual, got disappointed!
 
Yes Cherrypie, you must not be fallable.

Norfleet March 17th, 2004 08:57 AM

Re: Got home, got manual, got disappointed!
 
Quote:

Originally posted by Saber Cherry:
Finding the formula would be tough, since it doesn't even exist in the game code - the precision formula just tells the projectile where to land; it does not give it a probability of hitting a given square.
<font size="2" face="sans-serif, arial, verdana">Not really. If knew what that formula WAS, then the probability of it hitting a given square is the probability that the randomly selected square it will land in is the target square.

Even if you didn't know what the formula is, you could probably approximate it by the regression sampling people THOUGHT you might have done. What other data did you blatantly falsify as well?

Zurai March 17th, 2004 10:40 AM

Re: Got home, got manual, got disappointed!
 
Quote:

Originally posted by Norfleet:
What other data did you blatantly falsify as well?
<font size="2" face="sans-serif, arial, verdana">http://forum.shrapnelgames.com/image...s/rolleyes.gif http://forum.shrapnelgames.com/image...s/rolleyes.gif http://forum.shrapnelgames.com/image...s/rolleyes.gif http://forum.shrapnelgames.com/image...s/rolleyes.gif

Not sure I can output enough rolleyes smileys for that statement. Cherry made a joke that was extremely obvious once you LOOKED at the formula, and you accuse him of falsifying stuff in his other, very valuable to the community, works? Get off your damn high horse man. It was a joke. J-O-K-E.

Chazar March 17th, 2004 11:01 AM

Re: Got home, got manual, got disappointed!
 
Well, in addition, when I asked about a formula, I was rather referring to the mechanics used to determine the divergence from the target square, not for a closed formula... http://forum.shrapnelgames.com/images/icons/icon7.gif

I assume that the "mechanics" might be something like for every square that the projectile flies, there is a chance based on weather (strom/rain/snow), precision and basic weapon range whether the projectile goes astray from its designated course a bit...

But leaving this aside, my real problem is that I'm still lacking a feel for precision-values in relation to range, especially when it comes to mages that won't shoot they lightning bolts in such a mass like archers. It just seems to me that scripting spells that affect only a single square is almost useless without wind-guide, aim, eye of precision, etc. against foes that are not packed densely on the field...


All times are GMT -4. The time now is 08:32 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.