• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Error] undefined method `gender='

  • 1
    Posts
    4
    Years
    • Seen Jul 28, 2020
    Occasionally my game crashes when I encounter a random Pokemon with this error:

    Exception: NoMethodError
    Message: undefined method `gender=' for #<PokeBattle_Pokemon:0xe956320>
    PField_Field:948:in `pbGenerateWildPokemon'
    PField_Field:1001:in `pbWildBattle'
    PField_Field:1492:in `pbBattleOnStepTaken'
    PField_Field:1516:in `pbOnStepTaken'
    Game_Player:484:in `update_old'
    Walk_Run:78:in `update'
    Scene_Map:104:in `update'
    Scene_Map:101:in `loop'
    Scene_Map:114:in `update'
    Scene_Map:68:in `main'

    Not sure how to fix it but help would really be appreciated.
     
  • 17
    Posts
    6
    Years
    I'm not sure what the problem is. Could you go to Script Editor, press ctrl + shift + f and search for "def gender" and go to the "PokeBattle_Pokemon" script, and show me lines from 163 to 224? (Not sure we have same lines but the #Gender part)
     
    Back
    Top