Skip to content

1.0.2

Latest

Choose a tag to compare

@kiasta kiasta released this 28 Jul 17:36
5ad7e3a

Version 1.0.2 Hotfix Release

Met/egg locations, pre-Switch origins, and 7 missing HD sprites bug fixes

Met/Egg location bug:

Met/egg location showed "(none)" for banked location IDs. PKHeX banks these IDs by ID / 10000 (bank 0 = in-world, 3 = Link Trade / region + Pokémon HOME/GO transfers / "a picnic", 4 = events, 6 = egg sources). The generator only emitted bank 0, so traded, HOME-transferred, and egg Pokémon rendered "(none)". Now emit every bank and route by threshold, mirroring PKHeX LocationSet6.

Pre-Switch Origins bug:

HOME transferred Pokémon from a pre-Switch game showed Origin "Unknown" and met/egg "(none)". PKSE only recognised the Switch-era origin games. getOriginGameName now names every origin version byte (Gen 1-9), and location lookup carries one table set per generation (added Gen 4/5/6/7 = HGSS/BW2/XY/SM) routed on the origin generation, per PKHeX GameStrings.GetLocations. A Gen 3/4 (and Pokémon GO) MET ID is remapped into the current format's numbering when the mon is transferred up, so it is named with the format table -- a Platinum starter link-traded to Violet reads met = "a Link Trade"; Gen 5+ keep their own table; a Gen 4 egg stays on the Gen 4 table. An unset met date (00/00) now shows "(none)" instead of "00/00/2000". Verified against a real Violet save: every transferred mon resolves.

Missing HD Sprites bug:

The HD sprite set was fetched by NAME from pokemondb, which needs a name->dex map. That map dropped Mimikyu and six other species/forms whose display name didn't match pokemondb's URL slug. Once the old 96px PokeAPI fallback was removed, they rendered blank.

Fix the class of bug at the source: fetch PokeAPI's HOME renders by NUMERIC id instead (base = National Dex number, forms = 10000+ ids), so there is no name map to get wrong. New tools/gen_hdsprites.py downloads and downscales them from 512->256px (Pillow), fails on any missing base sprite, and is pinned to a PokeAPI/sprites commit for reproducibility.

Retire the whole download-based pipeline from the Makefile (the old low-res sprites/forms targets and the HD hdsprites/hdforms targets); make / make all no longer fetch Pokemon sprites. Delete the name-map tool files and document the one-time fetch step in the README.