v21.1 error when opening the pause menu

This thread pertains to v21.1 of Pokémon Essentials.

Fobby

local weirdo
Member
Joined
Oct 21, 2020
Posts
61
Age
16
after copying my data to another computer, and editing some pbs files that didn't work in the old format, whenever I try to open the pause menu I get this error.
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.1]

Exception: NoMethodError
Message: undefined method `each' for nil:NilClass

Backtrace:
PokemonBag:270:in `quantity'
PokemonBag:68:in `quantity'
PokemonBag:72:in `has?'
UI_PauseMenu:225:in `block in <main>'
Event_HandlerCollections:108:in `block in each_available'
Event_HandlerCollections:106:in `each'
Event_HandlerCollections:106:in `each_available'
UI_PauseMenu:111:in `pbStartPokemonMenu'
[Enhanced Pokemon UI] [002] Legacy Data.rb:302:in `pbStartPokemonMenu'
Scene_Map:110:in `call_menu'

what should I do?
 

drdoom76

Cooltrainer
Member
Joined
Aug 1, 2023
Posts
105
Age
35
after copying my data to another computer, and editing some pbs files that didn't work in the old format, whenever I try to open the pause menu I get this error.
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.1]

Exception: NoMethodError
Message: undefined method `each' for nil:NilClass

Backtrace:
PokemonBag:270:in `quantity'
PokemonBag:68:in `quantity'
PokemonBag:72:in `has?'
UI_PauseMenu:225:in `block in <main>'
Event_HandlerCollections:108:in `block in each_available'
Event_HandlerCollections:106:in `each'
Event_HandlerCollections:106:in `each_available'
UI_PauseMenu:111:in `pbStartPokemonMenu'
[Enhanced Pokemon UI] [002] Legacy Data.rb:302:in `pbStartPokemonMenu'
Scene_Map:110:in `call_menu'

what should I do?
Double check your pbs files. If you upgraded to v21, it doesn't seem to like blank spaces and added stuff. I had the same error when I had a flag it didn't recognize, even though it worked fine in v20.
 

Fobby

local weirdo
Member
Joined
Oct 21, 2020
Posts
61
Age
16
It seems one of your pause menu options is checking if you have an item, but the item it is checking for is in a pocket that doesn't exist anymore.
From what I can tell, it seems to be your Town Map item.
Thank you so much! that ended up being the problem, I added that in again and it works now!
 
Top