• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • 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
    5
    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.
     
    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