.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Space Empires: Starfury (http://forum.shrapnelgames.com/forumdisplay.php?f=53)
-   -   Floating point error (http://forum.shrapnelgames.com/showthread.php?t=25737)

Exan September 2nd, 2005 02:39 PM

Floating point error
 
I know this question has been most likely asked before but I'll ask it again. What can cause Invalid Floating Point Error. That error message just doesn't tell me anything.

Since it started occuring after I had messed with the Main_Enemies.txt file I figured that it had something to do with that. Upon closer inspection I noticed that I had neutral ships that use Medium Range Weapons weapons preference but there's no such description on their racial entry. I add 1 and Longe Range Weapons too but this doesn't fix the error. I also double checked them all plus the Main_EnemyAppearances.txt and Main_EnemyGroups.txt but found no clear errors there.

And since the Invalid Floating Point Error only occurs in Neutral systems I figure it has something to do with neutral ships.

Can someone help me on this? It will greatly help the release of revision 0.3.0 of TPM http://forum.shrapnelgames.com/images/smilies/laugh.gif

Ed Kolis September 2nd, 2005 05:42 PM

Re: Floating point error
 
Floating point error usually indicates division by zero... check for zeros where there weren't any in stock, perhaps?

Exan September 2nd, 2005 06:27 PM

Re: Floating point error
 
I will. Thanks for the tip.

Ed Kolis September 2nd, 2005 06:36 PM

Re: Floating point error
 
Also numbers that are equal where they weren't equal in stock, because division by zero also occurs when you divide x / (y - z) and you don't expect y and z to be equal http://forum.shrapnelgames.com/images/smilies/wink.gif

Exan September 3rd, 2005 04:51 AM

Re: Floating point error
 
Now the only problem is how to know which number is divided with which. At any rate this error is most annoying to track down.


All times are GMT -4. The time now is 01:58 PM.

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