Bag issue with Soulbind forge
Hey folks!
Currently, I keep getting the following error when opening Soulbind Forge. Lua Code:
But it works fine with the bags and the forge, as you can see on the screenshot. The script for the bags also contains the events to display the bags correctly when you want to add new conduits at the forge or edit your soulbind (lines 1587, 1588, 1701, 1703). Script: bags.lua @ DuffedUI Most likely it will be a simple change, however I am currently stuck. The bug does not interfere or hinder the function. It is only unpleasant when a bug is present. Maybe someone can tell me where the error is. Passing the functions Stuffing_Open and Stuffing_Close in line 1587 and 1588 to the RegisterEvent did not work. I thank you in advance for all the input that comes. :) |
DuffedUI replaces OpenAllBagsMatchingContext with an empty function, but the Blizzard UI expects a number returned from that function.
Here's the function called when you open the Soulbind UI: Lua Code:
Here's what that function calls to open bags: Lua Code:
When OpenAllBagsMatchingContext is called, it goes through the bags and counts which ones are opening: Lua Code:
The source of the issue is the very last line of the code you linked: OpenAllBagsMatchingContext = D['Noop']Based on common code practices, D['Noop'] should be equal to function()end. This error can be fixed by changing that line to the following: OpenAllBagsMatchingContext = function() return 0 end |
Quote:
@humfras had also told me that before I saw your posting. I also fixed the other error with D['Noop'], because it is the wrong constant in the UI, correct would have been D['Dummy']. |
All times are GMT -6. The time now is 09:38 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI