ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   AddOn Help/Support (https://www.esoui.com/forums/forumdisplay.php?f=164)
-   -   Master Merchant 3.0 (https://www.esoui.com/forums/showthread.php?t=10776)

Saint-Ange 01/05/24 01:15 PM

Master Merchant 3.0 [Solved]
 
Hi, got recently this error:

Lua Code:
  1. user:/AddOns/MasterMerchant/MasterMerchant.lua:477: operator / is not supported for number / nil
  2. stack traceback:
  3. user:/AddOns/MasterMerchant/MasterMerchant.lua:477: in function 'ProcessSalesInfo'
  4.     <Locals> item = [table:1]{timestamp = 1696887634, price = 1950, id = "2635678932"} </Locals>
  5. user:/AddOns/MasterMerchant/MasterMerchant.lua:534: in function 'ProcessItemWithTimestamp'
  6.     <Locals> item = [table:1], useDaysRange = F, buildOutliersAndStats = T, isValidTimeDate = T </Locals>
  7. user:/AddOns/MasterMerchant/MasterMerchant.lua:638: in function 'MasterMerchant:GetTooltipStats'
  8.     <Locals> self = [table:2]{itemsViewSize = "items_vs", listingsViewMode = "listings_vm", effective_lang = "en", isFirstScan = F, reportsCanceledViewMode = "canceled_vm", purchasesViewSize = "purchases_vs", guildsViewSize = "guild_vs", inventoryMarkersHooked = T, name = "MasterMerchant", reportsViewMode = "posted_vm", isCtrlPressed = F, customTimeframeText = "90 Days", reportsPostedViewMode = "posted_vm", mwimDetected = F, purchasesViewMode = "purchases_vm", isShiftPressed = F, wwDetected = F, viewer = F, gamepadVendorSceneRefreshed = F, personalSalesViewMode = "self_vm", guildSalesViewMode = "guild_vm", salesViewMode = "self_vm", version = "3.7.84", reportsViewSize = "reports_vs", tradingHouseOpened = F, AwesomeGuildStoreDetected = F, supported_lang = T, guildList = "Tamriel Homes, Traders of the ...", tradingHouseBrowseMarkerHooked = T, client_lang = "en", isInitialized = T, listingsViewSize = "listings_vs"}, itemLink = "|H0:item:64489:30:1:0:0:0:0:0:...", averageOnly = T, generateGraph = F, zScoreThreshold = 2.054, maxDeviation = 2.7, iqrMultiplier = 1.5, iqrThreshold = 3, useOuterPercentile = F, ignoreOutliers = F, percentage = 5, trimAgressive = F, outliersList = [table:3]{}, bonanzaList = [table:4]{}, statsData = [table:5]{1 = 8}, bonanzaStatsData = [table:6]{}, versionData = [table:7]{itemIcon = "/esoui/art/icons/crafting_colo...", itemDesc = "Rubedite Ingot", newestTime = 1704369765, itemAdderText = "rr01 white normal materials", wasAltered = F, totalCount = 518, oldestTime = 1696715632}, salesData = [table:8]{}, avgPrice = 144956, legitSales = 86 </Locals>
  9. user:/AddOns/MasterMerchant/MasterMerchant_Inventory.lua:7: in function 'GetAveragePrice'
  10.     <Locals> bagId = 1, slotIndex = 17, itemLink = "|H0:item:64489:30:1:0:0:0:0:0:..." </Locals>
  11. user:/AddOns/MasterMerchant/MasterMerchant_Inventory.lua:44: in function 'AddAlteredInventorySellPrice'
  12.     <Locals> slot = [table:9]{requiredChampionPoints = 0, stackLaunderPrice = 0, stolen = F, specializedItemType = 1550, isPlaceableFurniture = F, uniqueId = 92.821228035014, traitInformationSortOrder = 1, equipType = 0, isPlayerLocked = F, statusSortOrder = 0, slotIndex = 17, launderPrice = 0, isJunk = F, name = "Rubedite Ingot", age = 0, iconFile = "/esoui/art/icons/crafting_colo...", isGemmable = F, isFromCrownStore = F, quality = 1, actorCategory = 0, condition = 100, bagId = 1, displayQuality = 1, locked = F, stackSellPrice = 800, meetsUsageRequirement = T, sellInformationSortOrder = 1, itemInstanceId = 3676470131, traitInformation = 0, itemType = 36, isInArmory = F, rawName = "Rubedite Ingot", sellPrice = 4, statValue = 0, sellInformation = 0, requiredLevel = 1, functionalQuality = 1, stackCount = 200, isBoPTradeable = F, brandNew = F}, typeChanged = T, updatePrice = T </Locals>
  13. user:/AddOns/MasterMerchant/MasterMerchant_Inventory.lua:80: in function 'MasterMerchant:SetInventorySellPriceText'
  14.     <Locals> self = [table:2], rowControl = ud, slot = [table:9], sellPriceControl = ud </Locals>
  15. user:/AddOns/MasterMerchant/MasterMerchant.lua:2793: in function 'setupCallback'
  16.     <Locals> rowControl = ud, slot = [table:9] </Locals>
  17. /EsoUI/Libraries/ZO_Templates/ScrollTemplates.lua:2463: in function 'ZO_ScrollList_UpdateScroll'
  18.     <Locals> self = ud, windowHeight = 539, activeControls = [table:10]{}, offset = 0, IS_REAL_NUMBER = F, activeIndex = 1, numActive = 0, allData = [table:11]{}, visibleDataIndices = [table:12]{1 = 1}, mode = 1, firstInViewVisibleIndex = 1, nextCandidateVisibleIndex = 5, currentDataIndex = 5, dataEntry = [table:13]{typeId = 1}, bottomEdge = 539, controlTop = 208, uniformControlHeight = 52, dataType = [table:14]{height = 52, selectable = T}, controlPool = [table:15]{m_NextFree = 13, m_NextControlId = 12}, control = ud </Locals>
  19. /EsoUI/Libraries/ZO_Templates/ScrollTemplates.lua:2219: in function 'ZO_ScrollList_Commit'
  20.     <Locals> self = ud, windowHeight = 539, selectionsEnabled = F, scrollableDistance = 85, foundSelected = F, i = 0 </Locals>
  21. /EsoUI/Ingame/Inventory/Inventory.lua:1255: in function 'ZO_InventoryManager:ApplySort'
  22.     <Locals> self = [table:16]{itemsLockedDueToDeath = F, selectedTabType = 1}, inventoryType = 1, inventory = [table:17]{listDataType = 1, currentContext = "playerInventoryTextSearch", currentFilter = 5, subFilter = 0, rowTemplate = "ZO_PlayerInventorySlot", currentSortOrder = F, freeSlotsStringId = 5373, freeSlotType = 1, freeSlotsFullStringId = 5374, hasAnyQuickSlottableItems = T, slotType = 2, currentSortKey = "statusSortOrder"}, list = ud, scrollData = [table:11] </Locals>
  23. /EsoUI/Ingame/Inventory/Inventory.lua:1807: in function 'ZO_InventoryManager:UpdateList'
  24.     <Locals> self = [table:16], inventoryType = 1, inventory = [table:17], list = ud, scrollData = [table:11] </Locals>
  25. /EsoUI/Ingame/Inventory/Inventory.lua:1388: in function 'ZO_InventoryManager:ChangeFilter'
  26.     <Locals> self = [table:16], filterTab = [table:18]{normal = "EsoUI/Art/Inventory/inventory_...", inventoryType = 1, isSubFilter = T, filterType = 0, ignoreVisibleCheck = F, tooltipText = "All", highlight = "EsoUI/Art/Inventory/inventory_...", pressed = "EsoUI/Art/Inventory/inventory_...", activeTabText = "All", descriptor = 0}, inventoryType = 1, inventory = [table:17], activeTabText = "Materials", activeSubTabText = "All", formattedTabText = "Materials: All", displayInventory = [table:17], activeTabControl = ud, currentFilterType = 5, sortHeaders = [table:19]{showArrows = T, sortDirection = F, enabled = T} </Locals>
  27. /EsoUI/Ingame/Inventory/Inventory.lua:38: in function 'HandleTabSwitch'
  28.     <Locals> tabData = [table:18] </Locals>
  29. /EsoUI/Libraries/ZO_MenuBar/ZO_MenuBar.lua:287: in function 'MenuBarButton:Release'
  30.     <Locals> self = [table:20]{m_locked = T, m_highlightHidden = F, m_state = 1}, upInside = T, playerDriven = F, buttonData = [table:18] </Locals>
  31. /EsoUI/Libraries/ZO_MenuBar/ZO_MenuBar.lua:605: in function 'MenuBar:SelectDescriptor'
  32.     <Locals> self = [table:21]{m_relativePoint = 2, m_clickSound = "Click_MenuBar", m_downSize = 40, m_normalSize = 30, m_point = 8, m_buttonPadding = -12, m_animationDuration = 180}, descriptor = 0, buttonObject = [table:20] </Locals>
  33. (tail call): ?
  34. /EsoUI/Ingame/Inventory/Inventory.lua:1326: in function 'ZO_InventoryManager:ChangeFilter'
  35.     <Locals> self = [table:16], filterTab = [table:22]{normal = "EsoUI/Art/Inventory/inventory_...", inventoryType = 1, filterType = 5, ignoreVisibleCheck = F, tooltipText = "Materials", highlight = "EsoUI/Art/Inventory/inventory_...", pressed = "EsoUI/Art/Inventory/inventory_...", activeTabText = "Materials", descriptor = 5}, inventoryType = 1, inventory = [table:17], activeTabText = "Materials", formattedTabText = "Materials", displayInventory = [table:17], activeTabControl = ud, currentFilterType = 5, menuBar = ud </Locals>
  36. /EsoUI/Ingame/Inventory/Inventory.lua:38: in function 'HandleTabSwitch'
  37.     <Locals> tabData = [table:22] </Locals>
  38. /EsoUI/Libraries/ZO_MenuBar/ZO_MenuBar.lua:287: in function 'MenuBarButton:Release'
  39.     <Locals> self = [table:23]{m_locked = T, m_highlightHidden = F, m_state = 1}, upInside = T, skipAnimation = F, playerDriven = T, buttonData = [table:22] </Locals>
  40. /EsoUI/Libraries/ZO_MenuBar/ZO_MenuBar.lua:657: in function 'ZO_MenuBarButtonTemplate_OnMouseUp'
  41.     <Locals> self = ud, button = 1, upInside = T </Locals>
  42. ZO_MainMenuCategoryBarButton1_MouseUp:3: in function '(main chunk)'
  43.     <Locals> self = ud, button = 1, upInside = T, ctrl = F, alt = F, shift = F, command = F </Locals>

v3.7.84
Only addon active. It messes up the inventory completely, reproducing ore ingots for example over all the other items while some are simply invisible but leaving empty spaces.

Saint-Ange 01/05/24 01:26 PM

LibDebugLogger.lua attached to this comment + :

https://sir.insidi.at/or/logviewer/nxpMH9

Happening while scrolling the inventory

Language used: English

Do you have account names in the Guild & Account Filter? Nope

Were you holding down CTRL or SHIFT? Nope

Tell me if you need anything else

Baertram 01/05/24 01:56 PM

Without having compared and read everything in detail:

There exist similar error threads here already, where the answer always was to read the MM documentation and backuo your SavedVariables, then reset your SavedVariables and build it new as your data got currupted somehow.

e.g.
https://www.esoui.com/forums/showthread.php?t=10676
Posts by Sharlikran linking the esouimods website with the docu about reset of data, and asking for the files.

Did you try that already?

Sharlikran 01/05/24 07:33 PM

Baertram is 100% correct that normally I send people to the website because it's just data corruption.

It still could be data corruption because the quantity is missing, and I don't see how that could happen.

Follow the instructions in the sticky post 100% to the letter exactly as I have specified. I do not see any of the debug messages I am looking for. Use the slash commands to make sure that debug level is active for LibDebugLogger, and that the stack trace is enabled. Then reload the UI to save the changes. Then log into the game and reproduce the error. Then reload the UI to save the log file BEFORE you drag and drop it to the website.

I need to know exactly what you are doing. The reason being that so far MM is trying to make a tooltip. Without the extra debug messages that are missing I don't know what is happening when the error happens.

When I say exactly, I notice you are sorting the inventory in the above error. So you need to say things like, I log in, open inventory, sort by quantity, and so on. Litterally the exact things you do. If you go to the craftbag first then say so. Exactly what you do.

The main reason I'm concerned is that the quantity of the item isn't there and that's causing the error. How can there be no quantity?

Saint-Ange 01/07/24 10:21 AM

1 Attachment(s)
Hi, thank you for your help guys!

Chronology of the events:
  • login with all addons disabled except: Master Merchant and the required libraries (en cascade)
  • location : Snugpod
  • there's no LibDebugLogger.lua in Saved Variables ATM
  • LibGuildStore and Master Merchant have finished doing their initialazing stuff
  • successfully used the command: /debuglogger stack on
  • successfully used the command: /debuglogger level debug
  • logged out
  • LibDebugLogger.lua is now present in Saved Variables
  • logged in
  • LibGuildStore and Master Merchant have finished doing their initialazing stuff
  • opened the Inventory
  • scrolled down and got this error :
    Lua Code:
    1. user:/AddOns/MasterMerchant/MasterMerchant.lua:477: operator / is not supported for number / nil
    2. stack traceback:
    3. user:/AddOns/MasterMerchant/MasterMerchant.lua:477: in function 'ProcessSalesInfo'
    4.     <Locals> item = [table:1]{price = 1950, timestamp = 1696887634, id = "2635678932"} </Locals>
    5. user:/AddOns/MasterMerchant/MasterMerchant.lua:534: in function 'ProcessItemWithTimestamp'
    6.     <Locals> item = [table:1], useDaysRange = F, buildOutliersAndStats = T, isValidTimeDate = T </Locals>
    7. user:/AddOns/MasterMerchant/MasterMerchant.lua:638: in function 'MasterMerchant:GetTooltipStats'
    8.     <Locals> self = [table:2]{guildsViewSize = "guild_vs", wwDetected = F, reportsPostedViewMode = "posted_vm", mwimDetected = F, customTimeframeText = "90 Days", isInitialized = T, AwesomeGuildStoreDetected = F, itemsViewSize = "items_vs", listingsViewSize = "listings_vs", effective_lang = "en", salesViewMode = "self_vm", inventoryMarkersHooked = T, isFirstScan = F, tradingHouseOpened = F, listingsViewMode = "listings_vm", reportsViewSize = "reports_vs", purchasesViewSize = "purchases_vs", name = "MasterMerchant", tradingHouseBrowseMarkerHooked = T, guildList = "Tamriel Homes, Traders of the ...", isCtrlPressed = F, isShiftPressed = F, version = "3.7.84", viewer = F, reportsCanceledViewMode = "canceled_vm", client_lang = "en", guildSalesViewMode = "guild_vm", gamepadVendorSceneRefreshed = F, supported_lang = T, personalSalesViewMode = "self_vm", reportsViewMode = "posted_vm", purchasesViewMode = "purchases_vm"}, itemLink = "|H0:item:64489:30:1:0:0:0:0:0:...", averageOnly = T, generateGraph = F, zScoreThreshold = 2.054, maxDeviation = 2.7, iqrMultiplier = 1.5, iqrThreshold = 3, useOuterPercentile = F, ignoreOutliers = F, percentage = 5, trimAgressive = F, outliersList = [table:3]{}, bonanzaList = [table:4]{}, statsData = [table:5]{1 = 8}, bonanzaStatsData = [table:6]{}, versionData = [table:7]{wasAltered = F, newestTime = 1704578350, oldestTime = 1696887634, totalCount = 516, itemIcon = "/esoui/art/icons/crafting_colo...", itemDesc = "Rubedite Ingot", itemAdderText = "rr01 white normal materials"}, salesData = [table:8]{}, avgPrice = 135106, legitSales = 81 </Locals>
    9. user:/AddOns/MasterMerchant/MasterMerchant_Inventory.lua:7: in function 'GetAveragePrice'
    10.     <Locals> bagId = 1, slotIndex = 129, itemLink = "|H0:item:64489:30:1:0:0:0:0:0:..." </Locals>
    11. user:/AddOns/MasterMerchant/MasterMerchant_Inventory.lua:44: in function 'AddAlteredInventorySellPrice'
    12.     <Locals> slot = [table:9]{equipType = 0, isInArmory = F, requiredLevel = 1, meetsUsageRequirement = T, bagId = 1, sellInformationSortOrder = 1, traitInformationSortOrder = 1, launderPrice = 0, statusSortOrder = 0, requiredChampionPoints = 0, isFromCrownStore = F, itemType = 36, statValue = 0, isPlaceableFurniture = F, age = 0, stackCount = 15, stolen = F, isBoPTradeable = F, traitInformation = 0, isGemmable = F, isPlayerLocked = F, condition = 100, stackSellPrice = 60, sellInformation = 0, quality = 1, brandNew = F, name = "Rubedite Ingot", iconFile = "/esoui/art/icons/crafting_colo...", uniqueId = 92.821228035166, sellPrice = 4, functionalQuality = 1, specializedItemType = 1550, displayQuality = 1, rawName = "Rubedite Ingot", itemInstanceId = 3676470131, actorCategory = 0, slotIndex = 129, isJunk = F, locked = F, stackLaunderPrice = 0}, typeChanged = T, updatePrice = T </Locals>
    13. user:/AddOns/MasterMerchant/MasterMerchant_Inventory.lua:80: in function 'MasterMerchant:SetInventorySellPriceText'
    14.     <Locals> self = [table:2], rowControl = ud, slot = [table:9], sellPriceControl = ud </Locals>
    15. user:/AddOns/MasterMerchant/MasterMerchant.lua:2793: in function 'setupCallback'
    16.     <Locals> rowControl = ud, slot = [table:9] </Locals>
    17. /EsoUI/Libraries/ZO_Templates/ScrollTemplates.lua:2463: in function 'ZO_ScrollList_UpdateScroll'
    18.     <Locals> self = ud, windowHeight = 539, activeControls = [table:10]{}, offset = 5051.4580078125, IS_REAL_NUMBER = F, activeIndex = 11, numActive = 10, allData = [table:11]{}, visibleDataIndices = [table:12]{1 = 1}, mode = 1, firstInViewVisibleIndex = 98, nextCandidateVisibleIndex = 108, currentDataIndex = 108, dataEntry = [table:13]{typeId = 1}, bottomEdge = 5590.4580078125, controlTop = 5564, uniformControlHeight = 52, dataType = [table:14]{height = 52, selectable = T}, controlPool = [table:15]{m_NextFree = 13, m_NextControlId = 12}, control = ud </Locals>
    19. /EsoUI/Libraries/ZO_Templates/ScrollTemplates.lua:2547: in function 'ZO_ScrollList_MoveWindow'
    20.     <Locals> self = ud, value = 5051.4580078125 </Locals>
    21. Options_Accessibility_NarrationVoiceSpeedDropdownDropdownScrollScrollBar_ValueChanged:3: in function '(main chunk)'
    22.     <Locals> self = ud, value = 5051.4580078125, eventReason = 1 </Locals>
    23. [C]: in function 'SetValue'
    24. /EsoUI/Libraries/ZO_Templates/ScrollTemplates.lua:184: in function 'OnScrollAnimationUpdate'
    25.     <Locals> animationObject = ud, progress = 0.067652121186256, scrollObject = ud, value = 5051.4582237953 </Locals>
  • Inventory is messed up
    Attachment 1655
  • dismissed the error report
  • reloaded the UI
  • LibGuildStore and Master Merchant have finished doing their initialazing stuff
  • https://sir.insidi.at/or/logviewer/8qcC65
  • successfully used the command: /debuglogger level info

Note that earlier today the game freezed everytime I opened a storage chest containing Rubedite Ingots and I had to kill the ESO task in the Task Manager.

Addendum: with Master Merchant disabled while all other addons are enabled: there's effectively 15 Rubedite Ingot in the inventory, no crash nor messed inventory and I can open the chest containing other Rubedite Ingot without problem. So as you said it seems the data about the quantity of Rubedite Ingot has been messed up?

Sharlikran 01/07/24 11:48 AM

Go to your SavedVariables folder and backup all the GSxxData files from 00 to 17 please. Copy them to another folder or a backup folder on your desktop, whatever. Make a zip and attach it in the forums or provide a Mediafire link or some link I don't have to create an account for that you use. I want to look at the files.

Then follow the documentation: https://esouimods.github.io/3-master...html#Luaerrors

There is a link to the button to Reset LibGuildStore, the third option: https://esouimods.github.io/3-master...html#ResetData

Be sure to wait for the refresh to finish. Keep only MM enabled until the refresh is done. Does that resolve the issue?

Saint-Ange 01/07/24 11:58 AM

1 Attachment(s)
here's the ZiP GSxxData files attached

Saint-Ange 01/07/24 12:23 PM

Problem solved!
I had forgotten the problem that can happen with the OneDrive syncing .. saw it happened to others :o
Anyway, thanks for your help/time and let me wish you an happy new year!


All times are GMT -6. The time now is 01:42 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI