Division by zero error

Status
Not open for further replies.

RiseOfTheChimera

Bound together by difference.
Veteran
Joined
Jun 11, 2013
Messages
43
Reaction score
0
First Language
English
Primarily Uses
 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. :)
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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)
 

RiseOfTheChimera

Bound together by difference.
Veteran
Joined
Jun 11, 2013
Messages
43
Reaction score
0
First Language
English
Primarily Uses
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.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,062
Members
137,575
Latest member
akekaphol101
Top