TopHatGuy

Villager
Member
Joined
Feb 15, 2022
Messages
17
Reaction score
5
First Language
English
Primarily Uses
RMVXA
I start a battle then it says this error :(

Script 'Window_Selectable' line 61: ZeroDivisionError occured

divided by 0

This is Window_Selectable line 61

def row_max
[(item_max + col_max - 1) / col_max, 1].max
end
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
4,253
Reaction score
1,157
First Language
English
Primarily Uses
RMVXA
Check to make sure there are enemies and they have graphics for them.
Do you have actors in the party?
Is this a test battle or game play?
What scripts do you have?
 

AkiraKotatsuhime

炬燵姫
Veteran
Joined
Jan 2, 2013
Messages
207
Reaction score
155
First Language
DE / ドイツ語
Primarily Uses
N/A
There has to be something in the code that re-defines #col_max as 0. Or maybe defines it flexible, but the result of calculation is 0 for whatever reason.

If there is a script in your game that uses an object-instance based on Window_Selectable or any class that inherits from it inside battle, it may contain the problem's source. With pure default code I don't think this error could ever happen.

~炬燵あ
 

TopHatGuy

Villager
Member
Joined
Feb 15, 2022
Messages
17
Reaction score
5
First Language
English
Primarily Uses
RMVXA
Check to make sure there are enemies and they have graphics for them.
Do you have actors in the party?
Is this a test battle or game play?
What scripts do you have?
a script was on that stops battles sorry for wasting your time
 

Latest Threads

Latest Posts

Forum statistics

Threads
124,348
Messages
1,162,931
Members
163,143
Latest member
WinterWolf
Top