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

  • 15
    Posts
    5
    Years
    Hello!

    I've been working on my own fangame based out of Essentials for around a month now. It's been going pretty well- I'm really starting to get excited about it. Today I was editing the available Pokedexes. I had removed the original Johto pokedex and renamed the Kanto one to just Pokedex- I didn't really want to deal with having multiple Pokedexes in this game and felt it would work better having a pseudo national dex from the start. I then added the remaining Pokemon to the original Kanto pokedex in the debug editor. At first it was working fine. However, the last part I changed was altering the script in Settings. After I did that, it stopped allowing the Pokedex to be loaded ingame (even after restarting the save file.) I even tried replacing all the code with what it originally said. No dice. I can't load it at all. I have no idea what's wrong with it.

    Code:
    [Pokémon Essentials version 17.2]
    Exception: NoMethodError
    Message: undefined method `[]' for nil:NilClass
    PScreen_PokedexMain:328:in `pbGetDexList'
    PScreen_PokedexMain:325:in `each'
    PScreen_PokedexMain:325:in `pbGetDexList'
    PScreen_PokedexMain:350:in `pbRefreshDexList'
    PScreen_PokedexMain:260:in `pbStartScene'
    PScreen_PokedexMain:1191:in `pbStartScreen'
    PScreen_PauseMenu:165:in `pbStartPokemonMenu'
    PScreen_PauseMenu:162:in `pbFadeOutIn'
    PScreen_PauseMenu:162:in `pbStartPokemonMenu'
    PScreen_PauseMenu:148:in `loop'

    I have no idea what's wrong, considering I had even replaced the code with what it originally said, and it had even been working at first. I must have done something wrong somewhere, but I'm really not sure where. Any help at all would be greatly appreciated :)
     
    Oh gosh! How embarrassing. Right after I posted this I realized the problem. I had accidentally made a dex with a bunch of missing entries. Pokemon numbers 1-251 were defined, but Pokemon number 649 was still listed as 649 instead of 252. My bad! And now I can't seem to see where to close/delete this topic. 😅
     
    Back
    Top