-
Notifications
You must be signed in to change notification settings - Fork 320
Renamed alternate forms to match corresponding National Dex entry number #190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Hi! Thank you for the PR. Currently this is not an issue but a quality of life improvement. We had in the past a similar discussion about how we should name the sprites. Before moving on with other sprites let me understand if your suggestion is really worth it. Could you confirm that by adopting this naming convention all the sprites that you changed are still linked correctly in the API? |
Hi, I still haven't actually looked ad the APIs, thus they're surely not linking at the correct files. If you're OK with leaving the PR open, I'll worry about fixing also the APIs and continuing on editing the file names for other sprite tables. Just a quick question, I don't remember if other people would be able to contribute to this PR directly, just in case anyone would help in this QoL :) |
…ove 10000 and corresponding base form
…ming scheme mismatch
|
API update! I spent some time learning how the Python script works and how could I improve it in order to help in implementing the PR successfully. The main issue I was facing was having to interface with multiple APIs that returned different names for the same thing - in PokéAPI there's no It's still not finished for sure, and it may contain bugs as well, I'll keep you updated if I'll make useful progress in this sense. |
|
Don't spend too much time on this! |
|
It seems to work! The idea behind is simple: if we know the name-index association of the base form, because it correctly fetches from the Showdown servers (as all the sprites below 1024 do), we can try and search if there's any match between the name of the alternate form sprite and any sprite already associated with a lower index... and (almost) always it does (...apart from some exceptions, due to the actual sprite not being present on the remote end)! For this reason, the method used to list all of the indices (which previously assigned indices above 1024 to alternate form sprites) now returns an updated list, in which these sprites have their name correctly mapped as alternate forms of previous sprites. In this way, it's possible to see how every missing file (present in the table printed at the end of execution) always has an associated index in the name, which points directly to the National Entry index of the base form. There's still a bunch of duplicates left to get rid of, as well as some refactoring I think would benefit future maintenance - for this reason, joined to the fact that I'm still unsure of the actual 100-percent-fully-guaranteed-bulletproof quality of my work, I think there's still a bunch of work left to do :) |
Many sprites for alternate forms just had progressive numbers from 10.000 onwards.
I thought it could be a good idea to progressively fix this by naming thr files to the corresponding NationalDex entry number, followed by the corresponding form:
XXX-mega.pngXXX-gmax.pngXXX-<region>.png-> example:XXX-hisui.png-XXX-alola.ongOther forms just have the corresponding name (for example,
1017-cornerstone.pngor1017-wellspringare 2 of the alternate forms of Ogerpon).Current progress
Only Gen5 sprites in the global folder for Pokémon sprites have had their names changed.
This work should be progressively continued to fix also shinies and backsprites, in order to mantain continuity.
Changelog