Ratings

11 - Broken in 4.2

Description

Message: Interface\AddOns\Ratings\core.lua:366: attempt to call upvalue 'string_replace' (a nil value) Time: Wed Jun 29 14:35:27 2011 Count: 2 Stack: Interface\AddOns\Ratings\core.lua:366: in function `GetReplacementText' Interface\AddOns\Ratings\core.lua:341: in function `ReplaceText' Interface\AddOns\Ratings\core.lua:311: in function `HandleFontStrings' Interface\AddOns\Ratings\core.lua:299: in function `OnTooltipSetItem' Interface\AddOns\Ratings\core.lua:282: in function <Interface\AddOns\Ratings\core.lua:282> [C]: ? [C]: ? [C]: in function `SetBagItem' Interface\FrameXML\ContainerFrame.lua:780: in function `ContainerFrameItemButton_OnEnter' [string "*:OnEnter"]:1: in function <[string "*:OnEnter"]:1>

Locals: self = <table> { OnTooltipSetItem = <function> defined @Interface\AddOns\Ratings\core.lua:298 OnTooltipCleared = <function> defined @Interface\AddOns\Ratings\core.lua:302 MAX_SUPPORTED_LEVEL = 85 GetClassRatingType = <function> defined @Interface\AddOns\Ratings\core.lua:478 Format = <function> defined @Interface\AddOns\Ratings\core.lua:507 GetRatingBonus = <function> defined @Interface\AddOns\Ratings\core.lua:483 ReplaceText = <function> defined @Interface\AddOns\Ratings\core.lua:335 GetModifier = <function> defined @Interface\AddOns\Ratings\core.lua:468 HandleFontStrings = <function> defined @Interface\AddOns\Ratings\core.lua:306 GetReplacementText = <function> defined @Interface\AddOns\Ratings\core.lua:351 HookTooltip = <function> defined @Interface\AddOns\Ratings\core.lua:284 } text = "Equip: Increases your dodge rating by 127." lower_text = "equip: increases your dodge rating by 127." (for generator) = <function> defined =[C]:-1 (for state) = <table> { (%d+)([^%d%%|]+) = false by (%d+) = true ([%+%-]%d+) = false grant.-(%d+) = true %-(%d+) = true add.-(%d+) = true %+(%d+) = true } (for control) = " by (%d+)" pattern = " by (%d+)" after = true value = "127" partial = nil check = "equip: increases your dodge rating by 127." (for generator) = <function> defined =[C]:-1 (for state) = <table> { 1 = <table> { } 2 = <table> { } 3 = <table> { } 4 = <table> { } 5 = <table> { } 6 = <table> { } 7 = <table> { } 8 = <table> { } 9 = <table> { } 10 = <table> { } 11 = <table> { } 12 = <table> { } 13 = <table> { } 14 = <table> { } 15 = <table> { } 16 = <table> { } 17 = <table> { } 18 = <table> { } 19 = <table> { } 20 = <table> { } 21 = <table> { } } (for control) = 2 _ = 2 info = <table> { 1 = "dodge rating" 2 = 3 } stat = "dodge rating" id = 3 bonus = " (0.72%@85)" (*temporary) = nil (*temporary) = "Equip: Increases your dodge rating by 127." (*temporary) = "127" (*temporary) = "127 (0.72%@85)" (*temporary) = "attempt to call upvalue 'string_replace' (a nil value)" string_lower = <function> defined =[C]:-1 pairs = <function> defined =[C]:-1 PATTERNS = <table> { (%d+)([^%d%%|]+) = false by (%d+) = true ([%+%-]%d+) = false grant.-(%d+) = true %-(%d+) = true add.-(%d+) = true %+(%d+) = true } string_match = <function> defined =[C]:-1 tonumber = <function> defined =[C]:-1 STATS = <table> { 1 = <table> { } 2 = <table> { } 3 = <table> { } 4 = <table> { } 5 = <table> { } 6 = <table> { } 7 = <table> { } 8 = <table> { } 9 = <table> { } 10 = <table> { } 11 = <table> { } 12 = <table> { } 13 = <table> { } 14 = <table> { } 15 = <table> { } 16 = <table> { } 17 = <table> { } 18 = <table> { } 19 = <table> { } 20 = <table> { } 21 = <table> { } } string_find = <function> defined =[C]:-1 string_replace = nil string_sub = <function> defined =[C]:-1

Message: Interface\AddOns\Ratings\core.lua:366: attempt to call upvalue 'string_replace' (a nil value) Time: Wed Jun 29 14:35:28 2011 Count: 6 Stack: Interface\AddOns\Ratings\core.lua:366: in function `GetReplacementText' Interface\AddOns\Ratings\core.lua:341: in function `ReplaceText' Interface\AddOns\Ratings\core.lua:311: in function `HandleFontStrings' Interface\AddOns\Ratings\core.lua:299: in function `OnTooltipSetItem' Interface\AddOns\Ratings\core.lua:282: in function <Interface\AddOns\Ratings\core.lua:282> [C]: ? [C]: ? [C]: in function `SetBagItem' Interface\FrameXML\ContainerFrame.lua:780: in function `UpdateTooltip' Interface\FrameXML\GameTooltip.lua:195: in function <Interface\FrameXML\GameTooltip.lua:185> [C]: ?

Locals: self = <table> { OnTooltipSetItem = <function> defined @Interface\AddOns\Ratings\core.lua:298 OnTooltipCleared = <function> defined @Interface\AddOns\Ratings\core.lua:302 MAX_SUPPORTED_LEVEL = 85 GetClassRatingType = <function> defined @Interface\AddOns\Ratings\core.lua:478 Format = <function> defined @Interface\AddOns\Ratings\core.lua:507 GetRatingBonus = <function> defined @Interface\AddOns\Ratings\core.lua:483 ReplaceText = <function> defined @Interface\AddOns\Ratings\core.lua:335 GetModifier = <function> defined @Interface\AddOns\Ratings\core.lua:468 HandleFontStrings = <function> defined @Interface\AddOns\Ratings\core.lua:306 GetReplacementText = <function> defined @Interface\AddOns\Ratings\core.lua:351 HookTooltip = <function> defined @Interface\AddOns\Ratings\core.lua:284 } text = "Equip: Increases your dodge rating by 127." lower_text = "equip: increases your dodge rating by 127." (for generator) = <function> defined =[C]:-1 (for state) = <table> { (%d+)([^%d%%|]+) = false by (%d+) = true ([%+%-]%d+) = false grant.-(%d+) = true %-(%d+) = true add.-(%d+) = true %+(%d+) = true } (for control) = " by (%d+)" pattern = " by (%d+)" after = true value = "127" partial = nil check = "equip: increases your dodge rating by 127." (for generator) = <function> defined =[C]:-1 (for state) = <table> { 1 = <table> { } 2 = <table> { } 3 = <table> { } 4 = <table> { } 5 = <table> { } 6 = <table> { } 7 = <table> { } 8 = <table> { } 9 = <table> { } 10 = <table> { } 11 = <table> { } 12 = <table> { } 13 = <table> { } 14 = <table> { } 15 = <table> { } 16 = <table> { } 17 = <table> { } 18 = <table> { } 19 = <table> { } 20 = <table> { } 21 = <table> { } } (for control) = 2 _ = 2 info = <table> { 1 = "dodge rating" 2 = 3 } stat = "dodge rating" id = 3 bonus = " (0.72%@85)" (*temporary) = nil (*temporary) = "Equip: Increases your dodge rating by 127." (*temporary) = "127" (*temporary) = "127 (0.72%@85)" (*temporary) = "attempt to call upvalue 'string_replace' (a nil value)" string_lower = <function> defined =[C]:-1 pairs = <function> defined =[C]:-1 PATTERNS = <table> { (%d+)([^%d%%|]+) = false by (%d+) = true ([%+%-]%d+) = false grant.-(%d+) = true %-(%d+) = true add.-(%d+) = true %+(%d+) = true } string_match = <function> defined =[C]:-1 tonumber = <function> defined =[C]:-1 STATS = <table> { 1 = <table> { } 2 = <table> { } 3 = <table> { } 4 = <table> { } 5 = <table> { } 6 = <table> { } 7 = <table> { } 8 = <table> { } 9 = <table> { } 10 = <table> { } 11 = <table> { } 12 = <table> { } 13 = <table> { } 14 = <table> { } 15 = <table> { } 16 = <table> { } 17 = <table> { } 18 = <table> { } 19 = <table> { } 20 = <table> { } 21 = <table> { } } string_find = <function> defined =[C]:-1 string_replace = nil string_sub = <function> defined =[C]:-1

Reproduction Steps

Mouse over any addon that has ratings.

Installed Addon Folders

BigWigs
BigWigs_Baradin
BigWigs_Bastion
BigWigs_Blackwing
BigWigs_Core
BigWigs_Firelands
BigWigs_Foreign
BigWigs_Options
BigWigs_Plugins
BigWigs_Throne
Blizzard_AchievementUI
Blizzard_ArchaeologyUI
Blizzard_ArenaUI
Blizzard_AuctionUI
Blizzard_BarbershopUI
Blizzard_BattlefieldMinimap
Blizzard_BindingUI
Blizzard_Calendar
Blizzard_ClientSavedVariables
Blizzard_CombatLog
Blizzard_CombatText
Blizzard_CompactRaidFrames
Blizzard_CUFProfiles
Blizzard_DebugTools
Blizzard_GlyphUI
Blizzard_GMChatUI
Blizzard_GMSurveyUI
Blizzard_GuildBankUI
Blizzard_GuildControlUI
Blizzard_GuildUI
Blizzard_InspectUI
Blizzard_ItemSocketingUI
Blizzard_LookingForGuildUI
Blizzard_MacroUI
Blizzard_MovePad
Blizzard_RaidUI
Blizzard_ReforgingUI
Blizzard_TalentUI
Blizzard_TimeManager
Blizzard_TokenUI
Blizzard_TradeSkillUI
Blizzard_TrainerUI
Crossdresser
FishermansFriend
InterruptNoSpam
MagicRunes
MagicRunes_IconDisplay
MagicRunes_RuneBars
MikScrollingBattleText
MSBTOptions
Ratings
Recount
Tukui
Tukui_ConfigUI
Tukui_Raid
Tukui_Raid_Healing

User When Change
srge Jun 29, 2011 at 18:37 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 3 comments
  • Avatar of spiralofhope spiralofhope Jun 10, 2012 at 09:35 UTC - 0 likes

    @srge: Go

    That fix also worked for me.

    I haven't checked the accuracy of the numbers.

  • Avatar of srge srge Jul 06, 2011 at 19:04 UTC - 0 likes

    I fixed this by replacing line 5 of core.lua with:

    local string_replace = string.gsub

    Dunno if it's the best way but it works.

    Edit: The percentages seem wrong for my death knight, but it stops the error.

    Last edited Jul 06, 2011 by srge
  • Avatar of srge srge Jun 29, 2011 at 18:40 UTC - 0 likes

    Woops, that should say mouse over any item that has ratings.

  • 3 comments

Facts

Last updated
Jun 10, 2012
Reported
Jun 29, 2011
Status
New - Issue has not had initial review yet.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
3

Reported by

Possible assignees