From c206beef3df02e5e3d427eb75629dad2ef91327f Mon Sep 17 00:00:00 2001 From: Kurt Date: Sun, 13 Nov 2016 00:04:05 -0800 Subject: [PATCH] Include mapped/unmapped zh species list Reduce the amount of string file fetching outside of GameInfo Nickname field still shows up 'empty' as the characters have no character-font vector. Have to wait until the font is out to properly render, but this at least allows species to be automatically updated with their correct species name. Maybe I'll end up disabling Nickname or hiding the textbox if zh/zh2. --- PKHeX/Game/GameInfo.cs | 6 + PKHeX/PKHeX.csproj | 6 + PKHeX/Properties/Resources.Designer.cs | 1234 +++++++------ PKHeX/Properties/Resources.resx | 6 + PKHeX/Resources/text/zh/text_Species_zh.txt | 1606 ++++++++--------- PKHeX/Resources/text/zh/text_Species_zh2.txt | Bin 8486 -> 8510 bytes .../text/zh/text_Species_zh2_alt.txt | Bin 0 -> 8486 bytes .../text/zh/text_Species_zh2_unmapped.txt | Bin 8510 -> 0 bytes .../Resources/text/zh/text_Species_zh_alt.txt | 803 +++++++++ .../text/zh/text_Species_zh_unmapped.txt | 803 --------- PKHeX/Subforms/KChart.cs | 4 +- .../Save Editors/Gen6/SAV_HallOfFame.cs | 8 +- 12 files changed, 2358 insertions(+), 2118 deletions(-) create mode 100644 PKHeX/Resources/text/zh/text_Species_zh2_alt.txt delete mode 100644 PKHeX/Resources/text/zh/text_Species_zh2_unmapped.txt create mode 100644 PKHeX/Resources/text/zh/text_Species_zh_alt.txt delete mode 100644 PKHeX/Resources/text/zh/text_Species_zh_unmapped.txt diff --git a/PKHeX/Game/GameInfo.cs b/PKHeX/Game/GameInfo.cs index e7efdf3f5..b16a57473 100644 --- a/PKHeX/Game/GameInfo.cs +++ b/PKHeX/Game/GameInfo.cs @@ -221,6 +221,12 @@ private string[] get(string ident) string[] data = Util.getStringList(ident, Language); if (data == null || data.Length == 0) data = Util.getStringList(ident, DefaultLanguage); + + // Use alternate (Fan Translated) species names since GameFreak decided to use non-Unicode characters which are now game-font dependent. + // PKX still fetches nickname with the actual string + if (ident == "species" && new[] {"zh", "zh2"}.Contains(Language)) + return Util.getSpeciesList(Language + "_alt"); + return data; } diff --git a/PKHeX/PKHeX.csproj b/PKHeX/PKHeX.csproj index 2a8ff1fef..7dc56bc63 100644 --- a/PKHeX/PKHeX.csproj +++ b/PKHeX/PKHeX.csproj @@ -3661,6 +3661,12 @@ + + + + + +