Sign in to follow this  
Zilver

[Bug]StatusBars - Rep - Exalted - Tooltip

1 post in this topic

Date: 2017-06-23 13:14:03
ID: 1
Error occured in: Global
Count: 1
Message: integer overflow attempting to store -1.#IND
Debug:
   [C]: format()
   ...artanUI_Artwork\Themes\Classic\Module-StatusBars.lua:200:
      ...artanUI_Artwork\Themes\Classic\Module-StatusBars.lua:195
   ...artanUI_Artwork\Themes\Classic\Module-StatusBars.lua:268:
      ...artanUI_Artwork\Themes\Classic\Module-StatusBars.lua:265
Locals:
(*temporary) = "%s ( %s / %s ) %d%% %s"
(*temporary) = "Valiance Expedition"
(*temporary) = "0"
(*temporary) = "0"
(*temporary) = -1.#IND
(*temporary) = "Exalted"

AddOns:

  Swatter, v7.0.5 (<%codename%>)
  ACP, v3.4.30 
  AtlasLoot, vv8.04.04
  AtlasLootBurningCrusade, vv8.04.04
  AtlasLootCataclysm, vv8.04.04
  AtlasLootClassic, vv8.04.04
  AtlasLootLegion, vv8.04.04
  AtlasLootMistsofPandaria, vv8.04.04
  AtlasLootWarlordsofDraenor, vv8.04.04
  AtlasLootWrathoftheLichKing, vv8.04.04
  AucAdvanced, v7.4.5714 (TasmanianThylacine)
  AucFilterBasic, v7.4.5714 (TasmanianThylacine)
  AucFilterOutlier, v7.4.5714.5459(7.4/embedded)
  AucMatchUndercut, v7.4.5714.5585(7.4/embedded)
  AucStatHistogram, v7.4.5714 (TasmanianThylacine)
  AucStatiLevel, v7.4.5714 (TasmanianThylacine)
  AucStatPurchased, v7.4.5714 (TasmanianThylacine)
  AucStatSales, v7.4.5714.5598(7.4/embedded)
  AucStatSimple, v7.4.5714 (TasmanianThylacine)
  AucStatStdDev, v7.4.5714 (TasmanianThylacine)
  AucStatWOWEcon, v7.4.5714.5613(7.4/embedded)
  AucUtilAHWindowControl, v7.4.5714.5575(7.4/embedded)
  AucUtilAppraiser, v7.4.5714.5704(7.4/embedded)
  AucUtilAskPrice, v7.4.5714.5599(7.4/embedded)
  AucUtilAutoMagic, v7.4.5714.5686(7.4/embedded)
  AucUtilCompactUI, v7.4.5714.5694(7.4/embedded)
  AucUtilEasyBuyout, v7.4.5714.5576(7.4/embedded)
  AucUtilFixAH, v7.4.5714 (TasmanianThylacine)
  AucUtilItemSuggest, v7.4.5714.5651(7.4/embedded)
  AucUtilPriceLevel, v7.4.5714.5633(7.4/embedded)
  AucUtilScanButton, v7.4.5714.5631(7.4/embedded)
  AucUtilScanFinish, v7.4.5714.5588(7.4/embedded)
  AucUtilScanProgress, v7.4.5714.4979(7.4/embedded)
  AucUtilScanStart, v7.4.5714.5347(7.4/embedded)
  AucUtilSearchUI, v7.4.5714.5710(7.4/embedded)
  AucUtilSimpleAuction, v7.4.5714.5705(7.4/embedded)
  AucUtilVendMarkup, v7.4.5714.4828(7.4/embedded)
  Babylonian, v5.1.DEV.332(/embedded)
  Bartender4, v4.7.7
  BeanCounter, v7.4.5714 (TasmanianThylacine)
  Configator, v5.1.DEV.406(/embedded)
  DebugLib, v5.1.DEV.337(/embedded)
  Enchantrix, v7.4.5714 (TasmanianThylacine)
  EnchantrixBarker, v7.4.5714 (TasmanianThylacine)
  Gatherer, v7.0.5
  GathererHUD, v7.0.5
  Informant, v7.4.5714 (TasmanianThylacine)
  LibExtraTip, v5.12.DEV.423(/embedded)
  Omen, v3.1.12
  Prat30, vr1054      
  Prat30Libraries, v
  SlideBar, v7.0.5 (<%codename%>)
  SpartanUI, v4.4.0
  SpartanUIArtwork, v3.3.0
  SpartanUIFilmEffects, v3.1.4
  SpartanUIPartyFrames, v3.3.0
  SpartanUIPlayerFrames, v3.3.0
  SpartanUIRaidFrames, v3.3.0
  SpartanUISpinCam, v3.1.4
  SpartanUIStyleFel, v1.0.0
  SpartanUIStyleMinimal, v3.3.0
  SpartanUIStyleTransparent, v3.3.0
  Stubby, v7.4.5714 (TasmanianThylacine)
  TipHelper, v5.12.DEV.405(/embedded)
  XPExtended, v2.0.6
  BlizRuntimeLib_enUS v7.2.5.70200 <none>
  (ck=a14)

FIX for Exalted bar not showing color:
"if (ratio < 0) then ratio = 1; end"

	elseif (DB.StatusBars.left == "rep" and side == "left") or (DB.StatusBars.right == "rep" and side == "right") then
		local ratio,name,reaction,low,high,current = 0,GetWatchedFactionInfo();
		if name then ratio = (current-low)/(high-low); end
		if (ratio < 0) then ratio = 1; end -- This is the FIX
		if ratio == 0 then
			_G[FrameName.."Fill"]:SetWidth(0.1);
		else
			_G[FrameName.."Fill"]:SetWidth(ratio*self:GetWidth());
		end
		if DB.StatusBars.RepBar.text then
			_G[FrameName.."Text"]:SetFormattedText("( %s / %s ) %d%%", spartan:comma_value(current-low), spartan:comma_value(high-low), ratio*100)
		else
			_G[FrameName.."Text"]:SetText("")
		end
		SetRepColors(self);

 

The FIX
"if (ratio < 0) then ratio = 1; end"

	local showRepTooltip = function(self)
		local name,react,low,high,current,text,ratio = GetWatchedFactionInfo();
		if name then
			text = GetFactionDetails(name);
			ratio = (current-low)/(high-low);
			if (ratio < 0) then ratio = 1; end -- This is the FIX
			SUI_StatusBarTooltipHeader:SetText(format("%s ( %s / %s ) %d%% %s", name, spartan:comma_value(current-low), spartan:comma_value(high-low), ratio*100,_G["FACTION_STANDING_LABEL"..react]));
			SUI_StatusBarTooltipText:SetText("|cffffd200"..text.."|r");
		else
			SUI_StatusBarTooltipHeader:SetText(REPUTATION);
			SUI_StatusBarTooltipText:SetText(REPUTATION_STANDING_DESCRIPTION);
		end
		tooltip:Show();
	end

 


View full bug

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this