• 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] What does this error mean?

  • 1
    Posts
    4
    Years
    • Seen Aug 16, 2020
    Hey all! What does this error mean & how do I fix it? I haven't done anything different besides adding gen 8 pokemon, abilities & items along with updating some other battle sprites in gen 7 & 6. I did not have any issues before. The issue happens whenever I try to open up my bag only during a battle.

    Here's the code:

    [Pokémon Essentials version 17.2]
    Exception: NoMethodError
    Message: undefined method `>' for nil:NilClass
    PokeBattle_Scene:2429:in `pbItemMenu'
    PokeBattle_Scene:2428:in `call'
    PScreen_Bag:322:in `pbRefreshFilter'
    PScreen_Bag:321:in `each'
    PScreen_Bag:321:in `pbRefreshFilter'
    PScreen_Bag:319:in `each'
    PScreen_Bag:319:in `pbRefreshFilter'
    PScreen_Bag:145:in `pbStartScene'
    PokeBattle_Scene:2428:in `pbItemMenu'
    PokeBattle_Battle:2552:in `pbItemMenu'



    Thanks, i appreciate the help if possible!
     
    Hey there,
    I don't know exactly how to help you but I believe this error hints at that you're trying to compare nil (nothing) with a number (f.ex. nil>0). Look into
    PokeBattle_Scene specifically into "def pbItemMenu" and into its ">". My suspicion is this line:
    Spoiler:
     
    Back
    Top