• 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!
  • It's time to vote for your favorite Pokémon Battle Revolution protagonist in our new weekly protagonist poll! Click here to cast your vote and let us know which PBR protagonist you like most.
  • 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] Pokedex error and question

  • 7
    Posts
    5
    Years
    • Seen Jun 4, 2024
    I was running a playtest of my game to make sure I coded all the moves correctly only to have this come up when I opened the dex.
    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_PokedexMenu:126:in `pbStartScreen'
    PScreen_PokedexMenu:123:in `pbFadeOutIn'
    PScreen_PokedexMenu:123:in `pbStartScreen'
    PScreen_PokedexMenu:111:in `loop'

    What could have caused this error? On an unrelated note where are the abilities stored? I need to write new ones for gen6 and 7.
     
    Are all species you added perfectly defined (do they have icons, battler pictures, footprints, cries...)?
    Did you try to start a new game? May fix this.
     
    I was running a playtest of my game to make sure I coded all the moves correctly only to have this come up when I opened the dex.
    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_PokedexMenu:126:in `pbStartScreen'
    PScreen_PokedexMenu:123:in `pbFadeOutIn'
    PScreen_PokedexMenu:123:in `pbStartScreen'
    PScreen_PokedexMenu:111:in `loop'

    What could have caused this error? On an unrelated note where are the abilities stored? I need to write new ones for gen6 and 7.

    abilities.txt in the PBS FOLDER
     
    Or start a new game.
     
    And that's to program in the new effects?

    The new effects would go in the PokeBattle_* scripts (where * means some name, most often Battle and Battler). Search for the name of an existing ability (in all caps) that's similar to the ones you want to add.
     
    Back
    Top