Open xenoterracide opened 3 months ago
This and #79 as well as #73 are duplicates (same issue)
The problem lies in splitting the backing methods for itemproperties:IsItemAccountBoundInTooltip
to appropriate files but then not moving the higher level method to a file both clients (retail / classic) load (for example: itemproperties.lua
itself.
:IsStringInTooltipLeftText
overloaded method in separate client specific files: ✔️
:IsItemAccountBoundInTooltip
method in retail only loaded file: ❌
Solution: Cut
-- Account Bound -- Now called Warbound
function ItemProperties:IsItemAccountBoundInTooltip(tooltipdata)
return self:IsStringInTooltipLeftText(tooltipdata, L["TOOLTIP_SCAN_ACCOUNTBOUND"])
end
from itempropertiestooltipscan.lua
(retail only) file and move it to itemproperties.lua
base file.
Alternatively duplicate it to itempropertiestooltipscan_classic.lua
(classic) file.
I don't know if there's more cases like this. This was the immediate error I got on Cataclysm Classic trying to use v6.6.0
Fixing the above error leads to this (again for Cataclysm Classic)
10x ...s/itemproperties/itempropertytooltipscan_classic.lua:66: Invalid arguments to Tooltip Scanner
[string "=[C]"]: in function `error'
[string "@Vendor/systems/itemproperties/itempropertytooltipscan_classic.lua"]:66: in function <...s/itemproperties/itempropertytooltipscan_classic.lua:50>
[string "=(tail call)"]: ?
[string "=(tail call)"]: ?
[string "@Vendor/systems/itemproperties/itemproperties.lua"]:184: in function <...Ons/Vendor/systems/itemproperties/itemproperties.lua:72>
[string "=(tail call)"]: ?
[string "@Vendor/systems/evaluation/itemresultcache.lua"]:112: in function <Vendor/systems/evaluation/itemresultcache.lua:99>
[string "=(tail call)"]: ?
[string "=(tail call)"]: ?
[string "=[C]"]: in function `xpcall'
[string "@Vendor/features/merchant/merchant.lua"]:160: in function <Vendor/features/merchant/merchant.lua:119>
Locals:
(*temporary) = "Invalid arguments to Tooltip Scanner"
Addon now tries to use the proper tooltip scanner but it then errors itself.
I think addon needs a proper test on Cataclysm Classic (maybe other non-retail versions too) 😊
classic Season of Discovery vendor 6.6.0