Division by zero error

 Hello I'm having a error pop up sometimes when the player enters battle. Script 'Window_Selectable' line 61: ZeroDivisionError occured.

divided by 0.

I've done a bit of research on the error and it seems that my scripts might be the cause of this. Here are all the scripts I'm using if it helps at all to find a solution.

Yanfly Engine Ace

Victor Engine Basic Module

Victor Engine Pixel Movement

Victor Engine Diagonal Movement

Victor Engine Character Control

MOG Monster Book

and a short save script

1 class Window_SaveFile < Window_Base

2

3 def draw_party_characters (x, y)

4 end

5

6 end

That's all, any suggestions or advice would be greatly appreciated, thank you. 🙂
line 61 of Window_Selectable divides by col_max.

One of your scripts has something like this:

Code:
def col_max  return 0end
Comment out that whole method so it uses the default (which has col_max of 1)
line 61 of Window_Selectable divides by col_max.

One of your scripts has something like this:

def col_max return 0endComment out that whole method so it uses the default (which has col_max of 1)
I searched throughout the scripts and found nothing of that sort, anything having to do with the col_max had "return" on it. I couldn't find any solution so I transfered all my game's data alongside with its script into a new game file and I haven't run into any crashing error yet. If I do run into any crashing errors I will keep your advice in mind, thank you.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/division-by-zero-error.15526/