• 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] Strange Error when encountering wild Pokemon

  • 5
    Posts
    7
    Years
    • Seen Oct 21, 2021
    I recently updated my game to include both the latest fixes and the Gen 8 Project

    Everything runs fine until you encounter a wild Pokemon, in which case the game displays this error and crashes

    [2021-08-16 15:04:02 +0100]
    [Pokémon Essentials version 19.1]
    [Generation 8 Project v1.1.0]
    [v19 Hotfixes 1.0.4]
    [v19.1 Hotfixes 1.0.5]

    Exception: NoMethodError
    Message: undefined method `[]' for nil:NilClass

    Backtrace:
    265:Player_Pokedex:272:in `number_battled'
    265:Player_Pokedex:291:in `number_battled_shiny_tier'
    232:Overworld_WildEncounters:404:in `pbGenerateWildPokemon'
    230:Overworld_BattleStarting:251:in `block in pbWildBattleCore'
    230:Overworld_BattleStarting:242:in `each'
    230:Overworld_BattleStarting:242:in `pbWildBattleCore'
    230:Overworld_BattleStarting:323:in `pbWildBattle'
    215:Overworld:206:in `pbBattleOnStepTaken'
    215:Overworld:181:in `pbOnStepTaken'
    047:Game_Player:370:in `update_event_triggering'

    I am not an expert on coding, so I have no idea where to even start fixing this. If anyone could point me in the right direction, that would be really helpful. Willing to learn in the process of course, so next time I know what I'm looking at
     
    Please make sure you don't skip any of the steps in "Installation and Update Instructions", especially step 7. You don't have to be an expert in coding to follow basic instructions.
     
    Back
    Top