• 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.

Game crashes on Wild Battle

207
Posts
16
Years
    • Seen Nov 28, 2023
    Whenever I start a wild battle through any means, the game crashes. When initiating it through the debug menu, I get:
    Code:
    Exception: NoMethodError
    
    Message: undefined method `length' for nil:NilClass
    
    PokemonBag:435:in `pbQuantity'
    
    PokemonField:991:in `pbGenerateWildPokemon'
    
    PokemonField:1027:in `pbWildBattle'
    
    PokemonDebug:754:in `pbDebugMenu'
    
    PokemonDebug:297:in `loop'
    
    PokemonDebug:825:in `pbDebugMenu'
    
    PokemonPauseMenu:242:in `pbStartPokemonMenu'
    
    PokemonPauseMenu:241:in `pbFadeOutIn'
    
    PokemonPauseMenu:241:in `pbStartPokemonMenu'
    
    PokemonPauseMenu:142:in `loop'

    When I initiate it through tall grass, I get:

    Code:
    Exception: NoMethodError
    
    Message: undefined method `length' for nil:NilClass
    
    PokemonBag:435:in `pbQuantity'
    
    PokemonField:991:in `pbGenerateWildPokemon'
    
    PokemonField:1027:in `pbWildBattle'
    
    PokemonField:1497:in `pbBattleOnStepTaken'
    
    PokemonField:1521:in `pbOnStepTaken'
    
    Game_Player_:484:in `update_old'
    
    Walk_Run:75:in `update'
    
    Scene_Map:104:in `update'
    
    Scene_Map:101:in `loop'
    
    Scene_Map:114:in `update'

    I tried looking through the scripts, but I couldn't figure out what went wrong. Could someone help?
     

    Maruno

    Lead Dev of Pokémon Essentials
    5,286
    Posts
    16
    Years
    • Seen May 3, 2024
    You've been fiddling around with the Bag pockets. Start a new save.
     
    Back
    Top