diff --git a/src/dumper/dumper.cs b/src/dumper/dumper.cs index fa423f7..2ce6359 100644 --- a/src/dumper/dumper.cs +++ b/src/dumper/dumper.cs @@ -18,6 +18,7 @@ using Newtonsoft.Json; struct CharacterInfo { public string name; + public string codeName; public int idx; public string iconFilePath; } @@ -61,7 +62,6 @@ struct CustomizationItemInfo public ECustomizationCategory category; } - struct AddonInfo { public string id { get; set; } @@ -165,12 +165,13 @@ class Dumper if (charIndex == -1) return; // there is a -1 character (template, placeholder, spectator or smth) - if (!TryGetStringProp(props, "DisplayName", out string charName) || !TryGetStringProp(props, "IconFilePath", out string charIconFilePath)) - throw new KeyNotFoundException("DisplayName or IconFilePath was not found."); + if (!TryGetStringProp(props, "CharacterCodename", out string codeName) || !TryGetStringProp(props, "DisplayName", out string charName) || !TryGetStringProp(props, "IconFilePath", out string charIconFilePath)) + throw new KeyNotFoundException($"Required properties missing for Character: {rowKey}"); _characterMap[charIndex] = new CharacterInfo { name = charName, + codeName = codeName, idx = charIndex, iconFilePath = charIconFilePath };