.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: IV & V > SEIV

Reply
 
Thread Tools Display Modes
  #1  
Old August 11th, 2007, 10:04 AM

StarShadow StarShadow is offline
Sergeant
 
Join Date: Mar 2006
Location: NS, Canada
Posts: 300
Thanks: 0
Thanked 0 Times in 0 Posts
StarShadow is on a distinguished road
Default Division by Zero Error?!

I just got my second 'division by zero' error in as many games, and I'm stumped as to what is causing it, I've been playing SEIV for years and never got a single error that didn't have an obvious cause. I've gotten quite a few from various mistakes made while modding, but those errors are usually pretty specific as to what file the problem is with. The problem seems to be when a player's turn starts to be processed *but only if the AI is in control*. If I take control of that player (player 3 in this case), everything is fine, I can control/set orders and click 'end turn' and not get the error. If I set (player 3) back to computer control and process the next turn, I get the error. When it happened in my last game I took control and surrendered them to another race and never encountered another error in that game. Last game it was happening when my (altered) Abbidon came up for their turn, this time it's the stock Amonkrie.

Any ideas? Could I have screwed up something in one of the files?
Reply With Quote
  #2  
Old August 11th, 2007, 02:55 PM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default Re: Division by Zero Error?!

Do you know what AI files that player was using?

I got a div/0 in a single player game recently, just as the AI broke through my defense fleets and it was getting interesting
Reply With Quote
  #3  
Old August 11th, 2007, 08:56 PM

StarShadow StarShadow is offline
Sergeant
 
Join Date: Mar 2006
Location: NS, Canada
Posts: 300
Thanks: 0
Thanked 0 Times in 0 Posts
StarShadow is on a distinguished road
Default Re: Division by Zero Error?!

It was using the stock Amonkrie files. This one happened on turn 48, the last on happened about mid-way through the last game. I took over and surrendered him to a neutral (just to make things a little more interesting) and haven't had a problem since, but I'd still really like to know what's causing this and how to fix it (if possible).
Reply With Quote
  #4  
Old August 11th, 2007, 11:16 PM

StarShadow StarShadow is offline
Sergeant
 
Join Date: Mar 2006
Location: NS, Canada
Posts: 300
Thanks: 0
Thanked 0 Times in 0 Posts
StarShadow is on a distinguished road
Default Re: Division by Zero Error?!

Very odd! After some sleep I did some more testing and the problem seems to be with one specific file (at least in this case), Vehiclesize.txt which is odd because the last change I made to it was to make the WarStation slightly easier to hit. Other than that I haven't touched that file for quite some time. However when I went back to the version before that change, the div/0 error didn't rear it's ugly head.
Reply With Quote
  #5  
Old August 13th, 2007, 06:16 PM
PvK's Avatar

PvK PvK is offline
National Security Advisor
 
Join Date: Dec 1999
Posts: 8,806
Thanks: 54
Thanked 33 Times in 31 Posts
PvK is on a distinguished road
Default Re: Division by Zero Error?!

Check the AI designs, maybe. The situation I know of happens in mods where the AI ends up illegally building designs which have no structure, and then send them into combat. When those units get hit, div-zero error. Happened in some versions of Proportions mod when the AI would design and build infantry with no components because it was trying to place large components on them that wouldn't fit on the vehicle size, so it made empty troops. Solution was to change the AI files so they didn't design troops like that. For specific games, the solution was to go in and check for AI-built units which had zero structure, and jettison/scrap them.

Might not be what's happening to you, though.

PvK
Reply With Quote
  #6  
Old August 14th, 2007, 02:30 AM

StarShadow StarShadow is offline
Sergeant
 
Join Date: Mar 2006
Location: NS, Canada
Posts: 300
Thanks: 0
Thanked 0 Times in 0 Posts
StarShadow is on a distinguished road
Default Re: Division by Zero Error?!

Now there is a good idea, I also recently altered some of the AIs to design troops based on the 2kt Infantry. I'll change that back. Thanks for the tip.
Reply With Quote
  #7  
Old August 14th, 2007, 03:17 AM
PvK's Avatar

PvK PvK is offline
National Security Advisor
 
Join Date: Dec 1999
Posts: 8,806
Thanks: 54
Thanked 33 Times in 31 Posts
PvK is on a distinguished road
Default Re: Division by Zero Error?!

Cool - I hope it solves your problem.
Reply With Quote
Reply

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 12:16 AM.


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