• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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