Kiatra / ChocolateBar

ChocolateBar is a World of Warcraft addons to display plugins in a bar on top or bottom of your screen
https://www.wowace.com/projects/chocolatebar
18 stars 9 forks source link

Yet another LUA error - Dragonflight Pre-patch #21

Closed fraerie closed 1 year ago

fraerie commented 1 year ago

35x bad argument #3 to '?' (Usage: local texture = self:CreateTexture([name, drawLayer, templateName, subLevel])) [string "=[C]"]: in function CreateTexture' [string "@Interface/AddOns/ChocolateBar/Core.lua"]:586: in function <Interface/AddOns/ChocolateBar/Core.lua:580> [string "@Interface/AddOns/ChocolateBar/Core.lua"]:593: in functionGetPointer' [string "@Interface/AddOns/ChocolateBar/Bar.lua"]:390: in function Drag' [string "@Interface/AddOns/ChocolateBar/DragAndDrop.lua"]:74: in functionStart' [string "@Interface/AddOns/ChocolateBar/Chocolate.lua"]:343: in function <Interface/AddOns/ChocolateBar/Chocolate.lua:316>

Locals: (*temporary) = "bad argument #3 to '?' (Usage: local texture = self:CreateTexture([name, drawLayer, templateName, subLevel]))"

Zwixx commented 1 year ago

I try to correct this and made a Pull Request. Opened #22

fraerie commented 1 year ago

I try to correct this and made a Pull Request. Opened #22

I have double checked that I have all the changes that are included in the pull requests and the jostle.lua file linked elsewhere and I am still getting this error:

87x bad argument #3 to '?' (Usage: local texture = self:CreateTexture([name, drawLayer, templateName, subLevel])) [string "=[C]"]: in function CreateTexture' [string "@Interface/AddOns/ChocolateBar/Core.lua"]:586: in function <Interface/AddOns/ChocolateBar/Core.lua:580> [string "@Interface/AddOns/ChocolateBar/Core.lua"]:593: in functionGetPointer' [string "@Interface/AddOns/ChocolateBar/Bar.lua"]:390: in function Drag' [string "@Interface/AddOns/ChocolateBar/DragAndDrop.lua"]:74: in functionStart' [string "@Interface/AddOns/ChocolateBar/Chocolate.lua"]:343: in function <Interface/AddOns/ChocolateBar/Chocolate.lua:316>

Locals: (*temporary) = "bad argument #3 to '?' (Usage: local texture = self:CreateTexture([name, drawLayer, templateName, subLevel]))"

Zwixx commented 1 year ago

I don't know what changes are you made on the jostile beside mine, but you don't need them. Only the changes made in my pull request are needed. Line 586 needs to be: local arrow = pointer:CreateTexture(nil, "BACKGROUND") Do you changed it from DIALOG to BACKGROUND?

fraerie commented 1 year ago

yup - made that change and the change colour parameters in the Chocolate.lua in the pull requests added by yourself

I have even pulled down a fresh copy of the zip and made the changes again in case I messed something up the first time

Zwixx commented 1 year ago

I found a error, if the minimap is in the default position. I get an Error. I look onto this. 64x Interface/AddOns/ChocolateBar/Jostle.lua:364: attempt to index global 'MinimapBorderTop' (a nil value) I moved them a little bit down.

Zwixx commented 1 year ago

Added a fix for the nil-error.

Kiatra commented 1 year ago

Fixed with v3.9