Line 61 Zero DivisionError

I testing leaving this area and fighting other enemies and it works just fine, I don't get the crash, this boss event on the other hand always crashes after the fight. The troop works, it has an enemy, and the character's stats are above 1 so its just really stunting because I've never run into this until now.

I tried fighting an enemy inside the same map in case it was that but maybe I did something wrong in the event. I'm also using
Victor's Sound Engine Module and Victor's Engine - Step Sound scripts so maybe NOT having them on 1 map is the problem but I'm only pulling at straws with that.
Your event is fine. It's something else with scripts probably.
Row 61 in window selectable is row_max.
The only divide there is col_max
So that means at the point when you are getting the error the col_max is 0.
Does it crash when showing the victory info or as the battle scene is closing (going to the map) or as soon as the boss is killed?
Your event is fine. It's something else with scripts probably.
Row 61 in window selectable is row_max.
The only divide there is col_max
So that means at the point when you are getting the error the col_max is 0.
Does it crash when showing the victory info or as the battle scene is closing (going to the map) or as soon as the boss is killed?
It crashes right after the player sees the items they got from the fight. I put a couple events that have battles in the same map and its only the zombie one that crashes, the rest of the test events don't produce the same issue which is throwing me through a loop.

Yeah, it crashes after the battle info and I hit Z to go back to the map
It might be due to your use of a parallel process on the second page - which isn't really neccessary as chaining events that way is usually problematic.

just add the three commands of page 2 to the bottom of page 1 and remove both page 2 and the control switch associated with it.

The problem is that parallel processes do not exist dutring battlescreen, and when you return to map the event should be restarted - and I think somewhere that causes the problems.

just test it to see if I'm guessing right.
Your event is fine. It's something else with scripts probably.
Row 61 in window selectable is row_max.
The only divide there is col_max
So that means at the point when you are getting the error the col_max is 0.
Does it crash when showing the victory info or as the battle scene is closing (going to the map) or as soon as the boss is killed?
Yeah changing it so it was all on a single page worked like a charm, not sure why I didn't attempt doing that but nonetheless its not crashing anymore. Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/line-61-zero-divisionerror.169260/