.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 > Shrapnel Community > Space Empires: Starfury

Reply
 
Thread Tools Display Modes
  #1  
Old September 2nd, 2005, 02:39 PM

Exan Exan is offline
Corporal
 
Join Date: May 2003
Location: South Karelia, Finland
Posts: 168
Thanks: 0
Thanked 0 Times in 0 Posts
Exan is on a distinguished road
Default 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
__________________
Starfury Haven
thepeoplesmod.com (Offical site for The People's Mod)
Alexandria Archives -info site on The People's Mod
Reply With Quote
  #2  
Old September 2nd, 2005, 05:42 PM
Ed Kolis's Avatar

Ed Kolis Ed Kolis is offline
General
 
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
Ed Kolis is on a distinguished road
Default Re: Floating point error

Floating point error usually indicates division by zero... check for zeros where there weren't any in stock, perhaps?
__________________
The Ed draws near! What dost thou deaux?
Reply With Quote
  #3  
Old September 2nd, 2005, 06:27 PM

Exan Exan is offline
Corporal
 
Join Date: May 2003
Location: South Karelia, Finland
Posts: 168
Thanks: 0
Thanked 0 Times in 0 Posts
Exan is on a distinguished road
Default Re: Floating point error

I will. Thanks for the tip.
__________________
Starfury Haven
thepeoplesmod.com (Offical site for The People's Mod)
Alexandria Archives -info site on The People's Mod
Reply With Quote
  #4  
Old September 2nd, 2005, 06:36 PM
Ed Kolis's Avatar

Ed Kolis Ed Kolis is offline
General
 
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
Ed Kolis is on a distinguished road
Default 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
__________________
The Ed draws near! What dost thou deaux?
Reply With Quote
  #5  
Old September 3rd, 2005, 04:51 AM

Exan Exan is offline
Corporal
 
Join Date: May 2003
Location: South Karelia, Finland
Posts: 168
Thanks: 0
Thanked 0 Times in 0 Posts
Exan is on a distinguished road
Default 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.
__________________
Starfury Haven
thepeoplesmod.com (Offical site for The People's Mod)
Alexandria Archives -info site on The People's Mod
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 10:56 PM.


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