|
|
|
|
August 11th, 2007, 10:04 AM
|
Sergeant
|
|
Join Date: Mar 2006
Location: NS, Canada
Posts: 300
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|
August 11th, 2007, 02:55 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
|
|
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
__________________
Things you want:
|
August 11th, 2007, 08:56 PM
|
Sergeant
|
|
Join Date: Mar 2006
Location: NS, Canada
Posts: 300
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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).
|
August 11th, 2007, 11:16 PM
|
Sergeant
|
|
Join Date: Mar 2006
Location: NS, Canada
Posts: 300
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
August 13th, 2007, 06:16 PM
|
|
National Security Advisor
|
|
Join Date: Dec 1999
Posts: 8,806
Thanks: 54
Thanked 33 Times in 31 Posts
|
|
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
|
August 14th, 2007, 02:30 AM
|
Sergeant
|
|
Join Date: Mar 2006
Location: NS, Canada
Posts: 300
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
August 14th, 2007, 03:17 AM
|
|
National Security Advisor
|
|
Join Date: Dec 1999
Posts: 8,806
Thanks: 54
Thanked 33 Times in 31 Posts
|
|
Re: Division by Zero Error?!
Cool - I hope it solves your problem.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|