Null texture pointer
Wanny opened this issue · 2 comments
Expected Behavior
No errors
Actual Behavior
A lua error with the following text appears:
Time: Thu Sep 8 11:25:45 2022
Count: 1
Stack: ...nterface/AddOns/!Vendorer/VendorerItemListsFrame.lua:60: SetPortraitToTexture(): Couldn't find texture named '(null)'
[string "=[C]"]: in function `SetPortraitToTexture'
[string "@Interface/AddOns/!Vendorer/VendorerItemListsFrame.lua"]:60: in function <...nterface/AddOns/!Vendorer/VendorerItemListsFrame.lua:59>
Locals: (*temporary) = nil
(*temporary) = "Interface\Icons\INV_Artifact_tome02"
I'm using the patched VendorerFrames.xml file posted here, that fixes the SetBackdrop error and other stuff.
Let's see...
-
The cause of the above error is because somehow the addon can't find the image. I extracted the images... the path and filename are okay ¯\_(ツ)_/¯
To fix this for now, just comment line 60 of VendorerItemListsFrame.lua:
-
To remove the Lua error that appears when hovering on the "Sell Unusable" when using a Dractyr, their armor type has to be added in Core.lua, like this:
Hello, I created a PR addressing all these issues for DragonFlight! From what I tested, the addon is completely functional.
#32.
Feel free to use the code from my fork that is compatible with DF, making the addon functional again, until the author can approve it!
https://github.com/sebid/Vendorer/archive/refs/heads/master.zip