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

[Error] Pokedex error and question

7
Posts
4
Years
    • Seen Sep 28, 2019
    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.
     
    153
    Posts
    4
    Years
    • Seen Feb 4, 2020
    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.
     
    350
    Posts
    5
    Years
  • 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
     
    1,403
    Posts
    10
    Years
    • Seen Apr 29, 2024
    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