This repository has been archived by the owner on Oct 2, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I dumped my copies of each Pokemon title on the Switch and grabbed their respective dex entries (found at romfs/bin/message//common/zukan_comment_A or B) and ported pkNX's TextFile.cs to a python 3 script, read_swsh.py, that parses the data into a useable list. Then, to_csv.py turns the data into a CVS.
Sword and Shield keep both dex entry versions in their file system, so you only need one game to get both versions.
NOTE: You must dump the romfs from SwSh v1.2.0 or later to get the DLC dex entries.
Let's Go Pikachu / Eevee only use one dex entry version, so you only need one game.
HOW TO
To use the script, put each zukan_comment .dat and .tbl from each language and game into a folder with the script and rename each zukan_comment to the syntax as follows:
I put the language name at the end to differentiate which file contained what language, but the script doesn't need it.
Before
After
Finally, copy pokemon_species_flavor_text.csv into the folder, and run to_csv.py. An updated CSV will be created with the gen 8 entries.
This is what it should look like before you run to_csv.py.
Here is a zip with only the lgpe and swsh entries.