- 1,541
- Posts
- 11
- Years
- Seen yesterday
Hey friend I am getting this errorSpoiler:
=================
[Wed Feb 17 02:22:07 Pacific Standard Time 2021]
[Pokémon Essentials version 18.1.dev]
Exception: NoMethodError
Message: undefined method `[]' for nil:NilClass
Backtrace:
ZUD_MaxRaid_02_Events:1863:in `pbRaidData'
ZUD_MaxRaid_02_Events:1862:in `each'
ZUD_MaxRaid_02_Events:1862:in `pbRaidData'
ZUD_MaxRaid_02_Events:1855:in `loop'
ZUD_MaxRaid_02_Events:1879:in `pbRaidData'
ZUD_MaxRaid_02_Events:1713:in `loop'
ZUD_MaxRaid_02_Events:1902:in `pbRaidData'
ZUD_MaxRaid_02_Events:2702:in `pbStartScreen'
ZUD_MaxRaid_02_Events:2711:in `pbOpenRaidData'
ZUD_MaxRaid_02_Events:2708:in `pbFadeOutIn'
When I am try to access Show Region option in Max Raid Data Base and yes I am in debug mode
This is probably because you're using the new pokemon.txt PBS file I added with all the regional dexes included, but didn't add those regional dexes to your list of Dex Names. I mentioned in those posts not to install that file unless you have those regional dexes included.
If you want to add them in your game, go into the Settings script (the very first script in Essentials) and find this section of code:
Code:
USE_CURRENT_REGION_DEX = false
def pbDexNames; return [
[_INTL("Kanto Pokédex"), 0],
[_INTL("Johto Pokédex"), 1],
_INTL("National Pokédex")
]; end
DEX_SHOWS_ALL_FORMS = false
DEXES_WITH_OFFSETS = []
And replace it with this:
Code:
USE_CURRENT_REGION_DEX = false
def pbDexNames; return [
[_INTL("Kanto Pokédex"), 0],
[_INTL("Johto Pokédex"), 1],
[_INTL("Hoenn Pokédex"), 2],
[_INTL("Sinnoh Pokédex"), 3],
[_INTL("Unova Pokédex"), 4],
[_INTL("Kalos Pokédex"), 5],
[_INTL("Alola Pokédex"), 6],
[_INTL("Galar Pokédex"), 7],
_INTL("National Pokédex")
]; end
DEX_SHOWS_ALL_FORMS = false
DEXES_WITH_OFFSETS = [4]
Now you'll be able to filter your search by all regions. If you don't want this many regions in your game, then don't use the pokemon.txt file in the download. Or, just alter/remove unwanted RegionalNumbers data from each Pokemon's PBS data.