• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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.

[Question] Looking at habitat in Pokedex causes the game to crash

  • 4
    Posts
    2
    Years
    • Seen Sep 6, 2022
    So this may be a dumb question, and I am not sure I will actually get a response, but I have run into a problem that any pokemon I put in a route in the game I am working on causes the whole game to crash when you look at the Pokedex and try to find where in the wild the pokemon lives. It works just fine with pokemon like Bulbasaur, which I haven't put in my game. I get an unknown area message, and the game doesn't crash, but when I look at Pidgy, which I have on route one, the whole thing crashes. I will put my error message below if anyone is able to help me.

    [Pokémon Essentials version 20.1]

    Exception: NoMethodError
    Message: undefined method []' for nil:NilClass

    Backtrace:
    282:UI_Pokedex_Entry:312:in block in pbGetEncounterPoints'
    137:Encounter:53:in block in each_of_version'
    137:Encounter:45:in block in each'
    137:Encounter:45:in each'
    137:Encounter:45:in each'
    137:Encounter:52:in each_of_version'
    282:UI_Pokedex_Entry:306:in pbGetEncounterPoints'
    282:UI_Pokedex_Entry:342:in drawPageArea'
    282:UI_Pokedex_Entry:195:in drawPage'
    385:Pokedex:46:in `drawPage'
     
    Also, Just as a bit of extra info, If I remove the pokemon from the wild encounters on my new route, I can view them fine. But once I open up the debug menu and put a Geodude down (He has been one of the pokemon I use to test), looking at his habitat causes the game to crash.
     
    I have found the issue. It occurs on maps that you have edited the map's metadata (ie making it "Outside" etc.) without choosing a "map position".
    When you edit the map metadata, the game assumes that the map is on the town map somewhere when you click on the Area for the Pokedex. Since you aren't, it crashes.

    To fix this, I recommend going to the setting the map position in the in-game information editor. Even if you don't have an actually map yet, just put them somewhere as a placeholder. If you do already have a map, then its just put your locations on the correct spot on the map.
     
    Back
    Top