kwsch / pkNX

Pokémon (Nintendo Switch) ROM Editor & Randomizer
https://projectpokemon.org/home/forums/topic/48647-pknx-nintendo-switch-rom-editor-randomizer/
GNU General Public License v3.0
352 stars 108 forks source link

Unable to edit pokemon #221

Closed grannyd15 closed 2 years ago

grannyd15 commented 2 years ago

When I click the "Pokemon" button to try to edit the pokemon it shows the error message "Index was outside the bounds of the array. at pkNX.Structures. PersonalTable.GetFormList(String[] species, Int32 MaxSpecies) at pkNX.WinForms.PokeDataUl..ctor(PokeEditor editor, GameManager rom, GameData data) at pkNX.WinForms.Controls. EditorSWSH.EditPokémon()"

kwsch commented 2 years ago

Per the readme:

For Sword and Shield, pkNX operates under the assumption that your dumped ROM includes the Ver. 1.3.0 patch.

The base ROM's data structures were revised by patches. pkNX doesn't cater to the base ROM structures, it wants the latest revisions from 1.3.0. So, dump the patch content and merge the two romfs/exefs folders. Once you do that you'll be able to edit the game data.