Divided by Zero error

Discussion in 'RPG Maker VX Ace' started by Silent Darkness, Dec 23, 2013.

Thread Status:
Not open for further replies.
  1. Silent Darkness

    Silent Darkness Robomage Veteran

    Messages:
    2,284
    Likes Received:
    321
    Location:
    Dark Realms
    First Language:
    English
    I've run into a problem when battle-testing, though I presume that if I went through all the trouble in playtest, the same thing would happen.

    The game instantly crashed with the following error:

    Script 'Window_Selectable' line 61: ZeroDivisionError occured.

     

    divided by 0

     

    How the heck did it automatically divide by zero? I had the battle test initialize with 3 characters at level 20. The stats are:

     

    #1:

     

    MHP 1874

    MMP 197

    ATK 96

    DEF 47

    MAT 32

    MDF 47

    AGI 65

    LUK 61

     

    #2

    MHP 1406

    MMP 290

    ATK 111

    DEF 41

    MAT 59

    MDF 38

    AGI 87

    LUK 74

     

    #3

    MHP 743

    MMP 461

    ATK 73

    DEF 51

    MAT 81

    MDF 90

    AGI 55

    LUK 117

     

    Any ideas?


    EDIT: CRAP NEVERMIND I FIGURED IT OUT. Nix this thread plz.
     
    Last edited by a moderator: Dec 23, 2013
    #1
  2. Yato

    Yato (aka Racheal) Veteran

    Messages:
    826
    Likes Received:
    345
    Location:
    Canada
    For the reference of anyone else trying to help, this is the function at line 61:

    Code:
      def row_max    [(item_max + col_max - 1) / col_max, 1].max  end
    So somewhere your col_max is set at 0. Are you using Yanfly's battle system? The game will crash if you have no actors or no enemies.
     
    #2
  3. Shaz

    Shaz Veteran Veteran

    Messages:
    37,796
    Likes Received:
    11,503
    Location:
    Australia
    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.


    Next time, provide links to the battle system you are using.
     
    #3
Thread Status:
Not open for further replies.

Share This Page