You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Translations miss the leading '+' for the format '$+d%':
fromPyPoE.poe.fileimportGGPKFilefromPyPoE.poe.fileimportTranslationFileCacheggpk=GGPKFile()
ggpk.read('D:/Program Files (x86)/Grinding Gear Games/Path of Exile/Content.ggpk')
ggpk.directory_build()
tf=TranslationFileCache(path_or_ggpk=ggpk)['skill_stat_descriptions.txt']
tr=tf.get_translation(
tags=['supported_active_skill_gem_quality_%'],
values=[20]
)
print("Expected: +20% to Quality of Supported Active Skill Gems")
print("Actual: %s"%tr[0]) # '20% to Quality of Supported Active Skill Gems'
Huh that's odd, probably broke something earlier when I fixed #18, I have a test covering the $+d case (which works) but not for the $+d%% case, which seems to be broken. Looking into it.
Seems like that change moved the '%' into the format for '$+d' (now '$+d%'). See my stat_translations diff. That leads to the '+' not being prepended in TranslationString.format_string().
Somewhat related: That method uses a '%d' format, so the rare cases of floating point numbers in stats are translated incorrectly:
tf.get_translation(tags=['additional_base_critical_strike_chance'], values=[110])
# 1% to Critical Strike Chance
I must have tested that wrong somewhere, I specifically overrode the $+d format to return digits, not floating points, must have messed up in between python formatting and the format GGG uses. Both of these issues will be fixed soon along with #19.
Translations miss the leading '+' for the format '$+d%':
This is correct in the wiki (see e.g. http://pathofexile.gamepedia.com/Enhance_Support), so maybe I'm doing something wrong or the bug is new.
The text was updated successfully, but these errors were encountered: