Page 1 of 1
1.5.5 Exception_INT_DIVIDE_BY_ZERO
Posted: Sun Jan 25, 2015 2:22 am
by dejagore
HI,
Whatever I'm trying to do on that save game, I always get following exception when hitting end turn :

- pandora_crash.PNG (7.35 KiB) Viewed 2589 times
Attached save game file and log files.
Re: 1.5.5 Exception_INT_DIVIDE_BY_ZERO
Posted: Sun Jan 25, 2015 9:28 am
by Xilmi
Most likely my fault. I'll see if it is fixed in my current development-version and if not I will track it down.
Edit:
Yes, the log shows it crashes in the method that determines which tile-improvements shall be built.
I remember having had an issue with that. This happens because one of the AIs ran out of usable food-tiles and I was checking for the tile with the lowest yield to see if it needs more farms.
And since it ran out, it had a tile with 0 food, hence the division by zero error.
I had already fixed that in my dev-version by no longer considering tiles with 0 food as valid food-sources and thus making 1 the lowest possible to divide through.
But thanks for reporting anyways. That was very examplary of how it should be done.

Re: 1.5.5 Exception_INT_DIVIDE_BY_ZERO
Posted: Sun Jan 25, 2015 10:17 am
by dejagore
@Xilmi - thanks for the feedback. Glad to hear that You found the root cause and that it will be deployed with next beta build.
Re: 1.5.5 Exception_INT_DIVIDE_BY_ZERO
Posted: Sun Jan 25, 2015 3:53 pm
by Xilmi
There should be an update available.
And when you continue to play: I'd suggest you immediately pull back your troops to your city before the aliens wreck it!

Re: 1.5.5 Exception_INT_DIVIDE_BY_ZERO
Posted: Sun Jan 25, 2015 5:15 pm
by dejagore
That's a very fast update! Thought it'll take much longer. Anyways the fix works like a charm. No error after next ~30 turns. Now back to defending my colony. Some sort of a eclipse is coming in few turns and aliens are spreading everywhere.