Broken in 4.2 #11


  • New
  • Defect
Open
Assigned to _ForgeUser117147
  • _ForgeUser2693533 created this issue Jun 29, 2011

    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

  • _ForgeUser2693533 added the tags New Defect Jun 29, 2011
  • _ForgeUser2693533 posted a comment Jun 29, 2011

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

  • _ForgeUser2693533 posted a comment Jul 6, 2011

    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.


    Edited Jul 6, 2011
  • spiralofhope posted a comment Jun 10, 2012

    @srge: Go

    That fix also worked for me.

    I haven't checked the accuracy of the numbers.


To post a comment, please login or register a new account.