v4.1.10 zo_iconTextFormat
Since yesterdays patch v4.1.10 zo_iconTextFormat shows a strange behavior while doing localization testing:
My ESO clients native language is English. So I use /script SetCVar("language.2", xx) to test German and French. While having /script SetCVar("language.2", "en") or /script SetCVar("language.2", "de") active Code:
/script d(zo_iconTextFormat("EsoUI/Art/MapPins/AvA_largeKeep_Aldmeri.dds",40,40)) But when /script SetCVar("language.2", "fr") is active Code:
/script d(zo_iconTextFormat("EsoUI/Art/MapPins/AvA_largeKeep_Aldmeri.dds",40,40)) There very similar API function zo_iconFormatInheritColor() Code:
/script d(zo_iconFormatInheritColor("EsoUI/Art/MapPins/AvA_largeKeep_Aldmeri.dds",40,40)) Also, the behavior on the pts is correct. Can someone confirm this behavior? Otherwise my client must have got corrupted a very strange way. Thanks Oops, picked the wrong forum sorry |
French localization file:
SafeAddString(SI_FORMAT_ICON_TEXT, "", 0) SafeAddString(SI_FORMAT_ICON_TEXT_NO_SPACE, "", 0) Not good! And not the only localization wiped out. German: SafeAddString(SI_FORMAT_ICON_TEXT, "<<X:1>>*<<!aC:2>>", 0) SafeAddString(SI_FORMAT_ICON_TEXT_NO_SPACE, "<<X:1>><<2>>", 0) English: SafeAddString(SI_FORMAT_ICON_TEXT, "<<X:1>> <<2>>", 0) SafeAddString(SI_FORMAT_ICON_TEXT_NO_SPACE, "<<X:1>><<2>>", 0) zo_iconFormatInheritColor and zo_iconFormat do not use localization and will work the same in all languages. |
Thanks Votan!
So this is actually a new bug. However this bug triggers bad programming on my side three years ago :o I never should have used zo_iconTextFormat anyway. These textformat functions come with quiet a cost: Code:
/script local msStart = GetGameTimeMilliseconds() for i = 1,1000 do local icon = zo_iconTextFormat("EsoUI/Art/MapPins/AvA_largeKeep_Aldmeri.dds",40,40) end d(GetGameTimeMilliseconds()-msStart.."ms") Code:
/script local msStart = GetGameTimeMilliseconds() for i = 1,1000 do local icon = zo_iconFormat("EsoUI/Art/MapPins/AvA_largeKeep_Aldmeri.dds",40,40) end d(GetGameTimeMilliseconds()-msStart.."ms") |
This looks like a general problem with the French localization data. It will be fixed in a patch.
|
All times are GMT -6. The time now is 08:47 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI