• 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!
  • 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] National Pokédex Error

  • 20
    Posts
    4
    Years
    • Seen Oct 2, 2021
    Hi there, back at it with another problem.

    So, the thing is: when I try to access to the Pokédex, the game instantly freezes and shows this message:
    ---------------------------
    Pokemon Essentials
    ---------------------------
    [Pokémon Essentials version 18.1.dev]

    Exception: NoMethodError

    Message: undefined method `[]' for nil:NilClass



    Backtrace:

    PScreen_PokedexMain:330:in `pbGetDexList'

    PScreen_PokedexMain:325:in `each'

    PScreen_PokedexMain:325:in `pbGetDexList'

    PScreen_PokedexMain:345:in `pbRefreshDexList'

    PScreen_PokedexMain:260:in `pbStartScene'

    PScreen_PokedexMain:1186:in `pbStartScreen'

    PScreen_PauseMenu:161:in `pbStartPokemonMenu'

    PScreen_PauseMenu:158:in `pbFadeOutIn'

    PScreen_PauseMenu:163:in `pbStartPokemonMenu'

    PScreen_PauseMenu:144:in `loop'



    This exception was logged in

    C:\Users\USERNAME\Saved Games\Pokemon Essentials\errorlog.txt.

    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------

    Now, I tried to verify my scripts and it's as follows:

    USE_CURRENT_REGION_DEX = false
    def pbDexNames; return [
    [_INTL("Regional Pokédex"),0],
    _INTL("National Pokédex")
    ]; end
    DEX_SHOWS_ALL_FORMS = false
    DEXES_WITH_OFFSETS = []

    My goal was to show the national dex from the start.
    I used the script: "$Trainer.pokedex=true" to make the Pokédex avalilable and then I used: "pbUnlockDex" and "pbLockDex(0)" to block the regional one and unlock the national.

    Even so, the game freezes and I cannot access any dex at all. What am I doing wrong?
     
    Last edited:
    I started a new save file right now.
    Unfortunately, the error screens appears again.

    And you see the same error when starting a new save file?
    Did you also try deleting your save file from C:\Users\USERNAME\Saved Games\Pokemon Essentials ?
     
    I did what you just said and deleted the save data right now.
    I started a new game again, and again the same error with the Pokédex.

    I did not modify the script in any way, I don't know what's happening.
    The message shown is the same as the one I posted before.
     
    I did what you just said and deleted the save data right now.
    I started a new game again, and again the same error with the Pokédex.

    I did not modify the script in any way, I don't know what's happening.
    The message shown is the same as the one I posted before.

    Okay, thanks for checking that.
    What were you doing before you got this error? I see you've defined a new Pokédex. Have you been able to access the Pokédex since defining your new Pokédex?
     
    No, i couldn't access it.
    I simply created the "Regional" and the "National" according to the instructions on the Pokémon Essentials Wiki.

    USE_CURRENT_REGION_DEX = false
    def pbDexNames; return [
    [_INTL("Regional Pokédex"),0],
    _INTL("National Pokédex")
    ]; end
    DEX_SHOWS_ALL_FORMS = false
    DEXES_WITH_OFFSETS = []

    This should mean that there are only these two dexes, right? And the national one should include every Pokémon in my Pokemon.txt file, right?
    But somehow I cannot even open the dex without getting the error.
    Could the problem be in the number of Pokémon? I doubt it, but I have inserted every Pokémon from gen 1 to gen 8, plus adding a lot of mons of my own, adding up to more than 1000 creatures in the national dex. But I don't think that's actually what this is about.
     
    No, i couldn't access it.
    I simply created the "Regional" and the "National" according to the instructions on the Pokémon Essentials Wiki.

    USE_CURRENT_REGION_DEX = false
    def pbDexNames; return [
    [_INTL("Regional Pokédex"),0],
    _INTL("National Pokédex")
    ]; end
    DEX_SHOWS_ALL_FORMS = false
    DEXES_WITH_OFFSETS = []

    This should mean that there are only these two dexes, right? And the national one should include every Pokémon in my Pokemon.txt file, right?
    But somehow I cannot even open the dex without getting the error.
    Could the problem be in the number of Pokémon? I doubt it, but I have inserted every Pokémon from gen 1 to gen 8, plus adding a lot of mons of my own, adding up to more than 1000 creatures in the national dex. But I don't think that's actually what this is about.

    No, I don't think the number of Pokémon is the issue.

    You can check what Pokėdexes you have defined in your game through the debug menu.

    When you defined your new Pokėdex, did you compile your game?
     
    Good question. Usually I play the game on debug mode by accessing the Game.rxproj, and when I start the game he asks me if I want to save any changes before initializing the debug mode.
    And then it analyzes every script and pbs/graphic files before making the game start. Is that the "compiling" part?
     
    Good question. Usually I play the game on debug mode by accessing the Game.rxproj, and when I start the game he asks me if I want to save any changes before initializing the debug mode.
    And then it analyzes every script and pbs/graphic files before making the game start. Is that the "compiling" part?

    Yes. You can force the game to compile by holding down Control when you click the green play button from RPG Maker XP. You can also compile your game from the debug menu in game (press F9, then I think it's under Other Options, Compile game data -not at my PC so I can't check).

    Try compiling from the debug menu. If that doesn't do anything, try using Google and search for particular lines in your error message. I see this issue a lot, so maybe someone has a solution somewhere (usually the answer is to start a new save, but you tried that already).

    Have a look at Thundaga's tutorial video on this on YouTube as well. You might just have to define your Pokédex again from the beginning if nothing else works.
     
    Back
    Top