Thread Tools Display Modes
09/17/16, 08:24 PM   #1
Aridias Aridio
Join Date: Sep 2016
Posts: 3
Master Merchant UI error

Here's the interface.log info:


2016-09-17T21:29:34.073-05:00 |cff0000Lua Error: user:/AddOns/MasterMerchant/MasterMerchant.lua:1814: attempt to index a nil value
stack traceback:
user:/AddOns/MasterMerchant/MasterMerchant.lua:1814: in function 'MasterMerchant:initBuyingAdvice'
user:/AddOns/MasterMerchant/MasterMerchant.lua:2651: in function '(anonymous)'|r


Here's line 1814 area it's pointing to:


function MasterMerchant:initBuyingAdvice()
if MasterMerchant.originalSetupCallback then return end

local dataType = TRADING_HOUSE.m_searchResultsList.dataTypes[1]

MasterMerchant.originalSetupCallback = dataType.setupCallback
if MasterMerchant.originalSetupCallback then
dataType.setupCallback = function(...)
local row, data = ...
MasterMerchant.originalSetupCallback(...)
zo_callLater(function() MasterMerchant.AddBuyingAdvice(row, data) end, 25)
end
else
d(GetString(MM_ADVICE_ERROR))
end
end

function MasterMerchant.AddBuyingAdvice(rowControl, result)
local buyingAdvice = rowControl:GetNamedChild('BuyingAdvice')
if(not buyingAdvice) then
local controlName = rowControl:GetName() .. 'BuyingAdvice'
buyingAdvice = rowControl:CreateControl(controlName, CT_LABEL)
local anchorControl = rowControl:GetNamedChild('TimeRemaining')
buyingAdvice:SetAnchor(RIGHT, anchorControl, LEFT, -20, 6)
buyingAdvice:SetFont('/esoui/common/fonts/univers67.otf|14|soft-shadow-thin')
end

local sellerName, dealString, margin = zo_strsplit(';', result.sellerName)
--local margin = result.marginString
local dealValue = tonumber(dealString)
if dealValue then
if dealValue > -1 then
if MasterMerchant:ActiveSettings().saucy then
buyingAdvice:SetText(margin .. ' |t16:16:EsoUI/Art/currency/currency_gold.dds|t')
else
buyingAdvice:SetText(margin .. '%')
end
local r, g, b = GetInterfaceColor(INTERFACE_COLOR_TYPE_ITEM_QUALITY_COLORS, dealValue)
if dealValue == 0 then r = 0.98; g = 0.01; b = 0.01; end
buyingAdvice:SetColor(r, g, b, 1)
buyingAdvice:SetHidden(false)
else
buyingAdvice:SetHidden(true)
end
local sellerControl = rowControl:GetNamedChild('SellerName')
sellerControl:SetText(zo_strsplit(';', sellerControl:GetText()))
else
buyingAdvice:SetHidden(true)
end
buyingAdvice = nil
end



Anyone see something in there that can be reworked? Problem I'm having is when selecting an item in a guild (either from bank or kiosk) after searching, it throws up the UI error and won't show the info for the item. ONLY way I can view item prices is to add them into the chat box, or by hovering over chat box item that was linked. The error constantly pops EVERY time I select something new, which gets frustrating as this tool is extremely helpful, and apparently works for everyone else.

Tried disabling other addon (AUI, Skyshards, Lorebooks) to no avail. Tried deleting ALL the MM stuff from savedvariables and reinstalling with fresh download, no help. Tried older versions to see if bug would at least go away, it doesn't.

Here's the bug link: http://www.esoui.com/portal.php?id=1...bug&bugid=1822 which also has the screen shot of the UI error. Anyone know of a way to work around this?

Only thing odd I might be doing is the steam folder for the game is on a partitioned SSD. Dunno if MM is storing something on the Win7 OS side of SSD and can't find it?

Last edited by Aridias Aridio : 09/17/16 at 08:27 PM.
  Reply With Quote
09/17/16, 11:57 PM   #2
Aridias Aridio
Join Date: Sep 2016
Posts: 3
Found a fix

Unsure WHAT fixed it, but added "Better UI" and "Awesome Guild Store", AND started game through the Steam UI vs. just running the launcher short cut.

Regardless, one or more of these changes have allowed items to be viewed w/o the errors.
  Reply With Quote
09/19/16, 11:08 PM   #3
Naeramarth
AddOn Author - Click to view addons
Join Date: Apr 2015
Posts: 3
Download suppresserrormessage and never get ui error again!
  Reply With Quote

ESOUI » AddOns » AddOn Help/Support » Master Merchant UI error


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off