.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   SEIV (http://forum.shrapnelgames.com/forumdisplay.php?f=149)
-   -   Division by Zero Error?! (http://forum.shrapnelgames.com/showthread.php?t=35722)

StarShadow August 11th, 2007 10:04 AM

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?

Suicide Junkie August 11th, 2007 02:55 PM

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 http://forum.shrapnelgames.com/images/smilies/happy.gif

StarShadow August 11th, 2007 08:56 PM

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).

StarShadow August 11th, 2007 11:16 PM

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.

PvK August 13th, 2007 06:16 PM

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

StarShadow August 14th, 2007 02:30 AM

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.

PvK August 14th, 2007 03:17 AM

Re: Division by Zero Error?!
 
Cool - I hope it solves your problem. http://forum.shrapnelgames.com/images/smilies/happy.gif


All times are GMT -4. The time now is 09:31 AM.

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