What does this NoMethodError mean?

MrJediMan

Pokemon and Pop culture Enthusiast
Member
Joined
Aug 20, 2017
Posts
18
Age
17
What does this message mean?
---------------------------
Pokemon Essentials
---------------------------
[Pokémon Essentials version 17.1]
Exception: NoMethodError
Message: undefined method `pokedexSeen' for nil:NilClass
PSystem_Utilities:992:in `pbSetViableDexes'
PSystem_Utilities:989:in `each'
PSystem_Utilities:989:in `pbSetViableDexes'
PScreen_PauseMenu:92:in `pbStartPokemonMenu'
Scene_Map:127:in `call_menu'
Scene_Map:213:in `update'
Scene_Map:234:in `main'
Scene_Map:231:in `loop'
Scene_Map:236:in `main'
Main:49:in `mainFunctionDebug'

This exception was logged in
C:\Users\saulu\Saved Games\Pokemon Essentials\errorlog.txt.
Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
 

Fontbane

Not a Russian Troll
Member
Joined
Mar 24, 2017
Posts
85
You must've accidentally deleted the line that defines the "pokedexSeen" method. If you have a clean copy of essentials to compare your scripts to (I recommend this if you don't already have it), ctrl+f for "pokedexSeen" in the scripts to see where it's defined. I could totally be wrong though.
 

Vendily

Cooltrainer
Member
Joined
May 16, 2017
Posts
130
Pokedexseen is a method of pokebattle_trainer. If this is nil, that means you did not set up your trainer event correctly.
Look st the example maps, specifically intro, to see how it is supposed to be done.
 
Top