Haleth / FreeUI

A World of Warcraft user interface
http://www.wowinterface.com/downloads/info17892-FreeUI.html
54 stars 29 forks source link

FreeUI causing an issue for stat weight addons #98

Open Arrenton opened 8 years ago

Arrenton commented 8 years ago

So I got Pawn just recently, and I keep getting the error "Pawn couldn't read the speed and damage stats of (item name). Translation error?" I tried another addon (Stat Weight Score,) and it would not read the speed or damage stats on weapons.

So after I got tired of it and the addon giving me incorrect upgrade suggestions, I disabled all my addons. After I re-enabled Pawn, it worked fine. I started enabling one addon at a time, and FreeUI started causing the errors again. I have no idea why this would happen but I thought I would bring it to attention.

Leandros commented 7 years ago

Any progress on this?

Dubsys commented 7 years ago

bumping this

batsumishi commented 7 years ago

It looks like this is caused by the DAMAGE_TEMPLATE global in FreeUI/scripts/globals.lua at line 83.

You can fix this on your install by commenting out the DAMAGE_TEMPLATE variable (add -- to the start of the line, or just remove it).

ARMOR_TEMPLATE = "Armor: %s"
-- DAMAGE_TEMPLATE = "Damage: %s - %s"
DPS_TEMPLATE = "%s DPS"
DURABILITY_TEMPLATE = "Durability: %d/%d"
SHIELD_BLOCK_TEMPLATE = "Block: %d"

In the tooltips, this will change the way damage is displayed from Damage: 1 - 2 back to the default 1 - 2 Damage