Game often randomly tries to divide by zero

Issue #254 resolved
crystal G created an issue

So I’ll be playing the game and I go to use a charm to bring my stats up to like 255, or in some cases I’ll be getting stuff from a chest and the moment I try to move away from where I had been I’ll be hit with an error message telling me the game tried to divide by zero. Unless I load to an earlier save I’m screwed. However I have gotten this error message right after saving which corrupted my save, thus I lost all my progress. Note that I did not use the debug, cause I really don’t get how that one works.

Comments (4)

  1. V H. U repo owner

    After some debugging, I traced this back to the mana regeneration. When your will gets really high, the game sets the wait time to zero turns. Since the turn delay is done through a division/remainder, this hoses the game.

    I'm getting a patch ready for this atm

  2. Log in to comment