• 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.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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!
  • 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.

Pokedex randomly started crashing

Snapper_Kins

Meandering Trainer
  • 7
    Posts
    14
    Years
    • Seen Jul 23, 2023
    Hello,
    So recently whenever I attempt to to open the Pokedex I get this error:
    Code:
    Exception: NoMethodError
    Message: undefined method `[]' for nil:NilClass
    PokemonPokedex:164:in `species'
    PokemonPokedex:548:in `pbRefreshDexList'
    PokemonPokedex:398:in `pbStartScene'
    PokemonPokedex:1109:in `pbStartScreen'
    PokemonPauseMenu:161:in `pbStartPokemonMenu'
    PokemonPauseMenu:158:in `pbFadeOutIn'
    PokemonPauseMenu:158:in `pbStartPokemonMenu'
    PokemonPauseMenu:144:in `loop'
    PokemonPauseMenu:264:in `pbStartPokemonMenu'
    Scene_Map:194:in `call_menu'
    I really have no idea why it started happening, I didn't modify the pause menu or Pokedex scripts at all. I tried copying and pasting the original, unmodified scripts (I have a backup of the unmodified essentials) just in case i had modified something, but I always get this error when I open it. I have added some New Pokemon, but the issues began before I added them.If anyone has an idea what might be causing the error please let me know!
     
    Those lines mentioned in the error message should specify precisely where the problem's at. The exception being NoMethodError, it just means that, well, there's a script trying to call up a certain method but it's not finding it. So, there are just two questions I have to ask: Have you modified any scripts at all? And what are on the lines the error message points out?
     
    Those lines mentioned in the error message should specify precisely where the problem's at. The exception being NoMethodError, it just means that, well, there's a script trying to call up a certain method but it's not finding it. So, there are just two questions I have to ask: Have you modified any scripts at all? And what are on the lines the error message points out?

    PokemonPokedex164:
    return @commands.length==0 ? 0 : @commands[self.index][0]
    PokemonPokedex548:
    iconspecies=@sprites["pokedex"].species
    PokemonPokedex398:
    pbRefreshDexList($PokemonGlobal.pokedexIndex[pbGetSavePositionIndex])
    PokemonPokedex1109:
    @scene.pbStartScene
    PokemonPauseMenu161:
    screen.pbStartScreen
    PokemonPauseMenu158:
    pbFadeOutIn(99999) {
    PokemonPausemenu264:
    end
    PokemonPauseMenu141:
    loop do
    Scene_Map194:
    sscreen.pbStartPokemonMenu


    That's what's on each line. Like I said, none of those scripts were modified so I don't know whats different. I updated the icons for all of the Pokemon to XY icons, but I don't think that has to do with this error
     
    Back
    Top