Warning: Illegal string offset 'type' in [path]/includes/class_postbit.php(294) : eval()'d code on line 65
Bug 3 possible behavioural bugs? - .com.unity Forums
.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

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

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old March 23rd, 2010, 11:04 AM
Squirrelloid Squirrelloid is offline
Major General
 
Join Date: Jun 2009
Posts: 2,157
Thanks: 69
Thanked 116 Times in 73 Posts
Squirrelloid is on a distinguished road
Default Re: 3 possible behavioural bugs?

Quote:
Originally Posted by Edi View Post
Quote:
Originally Posted by Squirrelloid View Post
Quote:
Originally Posted by Edi View Post
1) Oblique missile fire hits less often because the distance is greater. Instead of using the Pythagoras equation for calculating real distance (a^2+b^2=c^2 and then deriving c), the distance is calculated as a+b, so it's much longer. Hence less accurate.
And how is this not a bug? Missiles don't follow the manhattan metric when moving! That the game calculates distance that way is clearly wrong, and should be fixed.
It's not a bug because it has been designed to work that way for reasons known to Johan K. I don't know those reasons, but I do know that it is working as it is supposed to within the framework of the mechanics. It just uses the Manhattan metric for calculation and that's not broken.

I agree that it is not ideal and would much prefer for it to use the Pythagoras metric, but again, I have no idea whether fixing it would be more trouble than it is worth. I have no idea whether that would break something or not, but chances are that it could very well do so.

The difference between bugs and features is often one of perception, but from the standpoint of bug management, this is currently a feature.
This is one of those things that should be prominently advertised in the manual.

I'd call it a bug because its not documented by the manual, and *no one* would expect ranged missile distance calculations to work like that without prior knowledge of what the game is doing. (Which, since the manual doesn't say, would require extensive testing or code hacking/diving).

I'm sure Johan did it, per other comments, to save computation time, but i'm not sure why the game doesn't compile or just have stored a matrix of all possible 'true' (pythagorean) distances from a fixed point to a variable point. It would be easy to calculate once and then quick to look up because its stored in a matrix. If I was trying to minimize distance calculation operations, that's what I'd do.
Reply With Quote
 

Bookmarks


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 09:56 PM.


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