.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 2: The Ascension Wars

Reply
 
Thread Tools Display Modes
  #11  
Old March 16th, 2004, 09:31 AM
Chazar's Avatar

Chazar Chazar is offline
Captain
 
Join Date: Feb 2004
Location: within 200km of Ulm
Posts: 919
Thanks: 27
Thanked 0 Times in 0 Posts
Chazar is on a distinguished road
Default 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
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...

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...
Reply With Quote
  #12  
Old March 16th, 2004, 09:32 AM

Gateway103 Gateway103 is offline
Corporal
 
Join Date: Jan 2004
Posts: 155
Thanks: 0
Thanked 0 Times in 0 Posts
Gateway103 is on a distinguished road
Default 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...
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 ]
Reply With Quote
  #13  
Old March 16th, 2004, 10:32 AM

Norfleet Norfleet is offline
Major General
 
Join Date: Jan 2004
Posts: 2,425
Thanks: 0
Thanked 0 Times in 0 Posts
Norfleet is an unknown quantity at this point
Default 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.
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.
Reply With Quote
  #14  
Old March 16th, 2004, 05:41 PM

PDF PDF is offline
Colonel
 
Join Date: Apr 2002
Location: Near Paris, France
Posts: 1,566
Thanks: 0
Thanked 0 Times in 0 Posts
PDF is on a distinguished road
Default 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%
Reply With Quote
  #15  
Old March 16th, 2004, 05:54 PM
Saber Cherry's Avatar

Saber Cherry Saber Cherry is offline
Major General
 
Join Date: Oct 2003
Location: Crystal Tokyo
Posts: 2,453
Thanks: 0
Thanked 0 Times in 0 Posts
Saber Cherry is on a distinguished road
Default Re: Got home, got manual, got disappointed!

Oh, I should mention that I just made that up. Ha, ha! 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.
__________________
Cherry
Reply With Quote
  #16  
Old March 17th, 2004, 07:00 AM

Gateway103 Gateway103 is offline
Corporal
 
Join Date: Jan 2004
Posts: 155
Thanks: 0
Thanked 0 Times in 0 Posts
Gateway103 is on a distinguished road
Default 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! 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.
What! And we trusted you!!!

That'll teach us to trust the "reputable" Saber Cherry

-Gateway103
Reply With Quote
  #17  
Old March 17th, 2004, 08:28 AM

Guest
 
Posts: n/a
Default Re: Got home, got manual, got disappointed!

Yes Cherrypie, you must not be fallable.
Reply With Quote
  #18  
Old March 17th, 2004, 08:57 AM

Norfleet Norfleet is offline
Major General
 
Join Date: Jan 2004
Posts: 2,425
Thanks: 0
Thanked 0 Times in 0 Posts
Norfleet is an unknown quantity at this point
Default 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.
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?
Reply With Quote
  #19  
Old March 17th, 2004, 10:40 AM

Zurai Zurai is offline
Corporal
 
Join Date: Feb 2004
Posts: 96
Thanks: 0
Thanked 0 Times in 0 Posts
Zurai is on a distinguished road
Default Re: Got home, got manual, got disappointed!

Quote:
Originally posted by Norfleet:
What other data did you blatantly falsify as well?


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.
Reply With Quote
  #20  
Old March 17th, 2004, 11:01 AM
Chazar's Avatar

Chazar Chazar is offline
Captain
 
Join Date: Feb 2004
Location: within 200km of Ulm
Posts: 919
Thanks: 27
Thanked 0 Times in 0 Posts
Chazar is on a distinguished road
Default 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...

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...
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 03:48 AM.


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