MythicMerc
Dragon Master & PokéDad
- 6
- Posts
- 1
- Years
- Seen Jul 28, 2023
I'm running into an issue I can't seem to figure out with my Pokédex. I am using Essentials 20.1 with Hotfixes Plugin installed.
I am attempting to add multiple region "Pokédexes," but only having them include Pokémon from that region, not necessarily their in-game dexes. For example, the "Johto Dex" will only have Gen2 Pokémon and none from Gen1. My Pokédex script settings look like this:
...and they show up just fine in-game. When I open the Pokédex, I can choose between them all. The problem comes in when I try to click on an entry in anything other than the first two or the national dex. Everything works fine in "Kanto Pokémon" and "Johto Pokémon," but when I try to open an entry in any of the others, I get the following error code:
I should also note that I completely filled out the regional_dexes.txt file. I listed out all the Pokémon I want included for each respective region. I can see them accurately in-game...it just crashes when I try to click on an entry to view it.
I have tried looking around in the scripts a bit, but I can't seem to locate where the issue is. Any help is greatly appreciated!!
I am attempting to add multiple region "Pokédexes," but only having them include Pokémon from that region, not necessarily their in-game dexes. For example, the "Johto Dex" will only have Gen2 Pokémon and none from Gen1. My Pokédex script settings look like this:
Code:
def self.pokedex_names
return [
[_INTL("Kanto Pokémon"), 0],
[_INTL("Johto Pokémon"), 1],
[_INTL("Hoenn Pokémon"), 2],
[_INTL("Sinnoh Pokémon"), 3],
[_INTL("Unova Pokémon"), 4],
[_INTL("Kalos Pokémon"), 5],
[_INTL("Alola Pokémon"), 6],
[_INTL("Galar Pokémon"), 7],
[_INTL("Zarco Forms"), 8],
_INTL("National Pokédex")
]
end
Code:
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]
Exception: NoMethodError
Message: undefined method '[]' for nil:NilClass
Backtrace:
282:UI_Pokedex_Entry:26:in 'pbStartScene'
282:UI_Pokedex_Entry:568:in 'pbStartScreen'
281:UI_Pokedex_Main:877:in 'pbDexEntry'
281:UI_Pokedex_Main:1282:in 'block (2 levels) in pbPokedex'
281:UI_Pokedex_Main:1257:in 'loop'
281:UI_Pokedex_Main:1257:in 'block in pbPokedex'
082:MessageConfig:705:in 'pbActivateWindow'
281:UI_Pokedex_Main:1256:in 'pbPokedex'
281:UI_Pokedex_Main:1300:in 'pbStartScreen'
280:UI_Pokedex_Menu:120:in 'block (2 levels) in pbStartScreen'
This exception was logged in
C:\Users\USERNAME\AppData\Roaming\Pokémon Trinity\errorlog.txt.
Hold Ctrl when closing this message to copy it to the clipboard.
I have tried looking around in the scripts a bit, but I can't seem to locate where the issue is. Any help is greatly appreciated!!