Angband Forums

Angband Forums (http://angband.oook.cz/forum/index.php)
-   v4 (http://angband.oook.cz/forum/forumdisplay.php?f=11)
-   -   Bug report v4 9feb8de (http://angband.oook.cz/forum/showthread.php?t=5304)

jevansau February 21, 2012 01:16

Bug report v4 9feb8de
 
1 Attachment(s)
There seems to be a problem with overflow when finesse/prowess gets too high.
Damage rises at an extreme rate, and then you get to a point where Angband hangs on a hit ( I guess the critical calculation is open ended and the chance of passing is 100%).

The current save (attached) exhibits the problem. If you reduce the attack potential by swapping gloves, it works OK (although damage is still ridiculously high).

Regards,
Jonathan

Old Coach February 21, 2012 02:42

Ah, you beat me to it! Just found the same problem today.

Magnate February 21, 2012 20:49

Thanks both for the report, and for the savefile. There are several ways to fix this, and I daresay we'll end up trying more than one ...

jevansau February 22, 2012 19:59

As I understand it, the issue arises because the critical chance gets over 100% and the same check is repeated for each extra dice until it fails.
May I suggest dropping the percentage to 90% of its previous value for each roll after the first.
This will still reward very high finesse and prowess, but cannot become open ended.

Regards,
Jonathan

ekolis February 22, 2012 20:04

Quote:

Originally Posted by jevansau (Post 67022)
As I understand it, the issue arises because the critical chance gets over 100% and the same check is repeated for each extra dice until it fails.

Haha, so you can get an infinite damage crit, but as punishment the game locks up on you calculating the damage? Sounds like something out of Dragon Ball... :P

Derakon February 22, 2012 20:51

I did the math beforehand and extrapolated that even an extremely well-equipped warrior shouldn't have had a crit chance above 60% or so (I forget exactly what I ended up with but it was in that region). But clearly I screwed something up there. Those calculations should be fixed. Additionally some kind of safety cap should be put into place to ensure that crit chance is never above 90% or so, but that's just there to make certain the game fails gracefully in unforeseen situations. The cap should never even come close to being hit in practice.


All times are GMT +1. The time now is 13:22.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.