Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error after adding new bag #1998

Open
qlesz opened this issue Nov 23, 2024 · 1 comment
Open

error after adding new bag #1998

qlesz opened this issue Nov 23, 2024 · 1 comment

Comments

@qlesz
Copy link

qlesz commented Nov 23, 2024

I got this error after adding new bag. After error main bag stop opening and error keep poping up everytime i try to open bags.
11x BagBrother/core/classes/itemGroup.lua:112: attempt to compare number with boolean
[string "@BagBrother/core/classes/itemGroup.lua"]:112: in function Layout' [string "@BagBrother/core/classes/itemGroup.lua"]:32: in function <BagBrother/core/classes/itemGroup.lua:30> [string "=[C]"]: in function Show'
[string "@BagBrother/core/api/frames.lua"]:32: in function Show' [string "@BagBrother/core/api/frames.lua"]:24: in function <BagBrother/core/api/frames.lua:23> [string "=(tail call)"]: ? [string "=(tail call)"]: ? [string "@BagBrother/core/features/autoDisplay.lua"]:83: in function ToggleBackpack'
[string "@Blizzard_MainMenuBarBagButtons/Classic/MainMenuBarBagButtons.lua"]:54: in function `BackpackButton_OnClick'
[string "*MainMenuBarBagButtons.xml:118_OnClick"]:4: in function <[string "*MainMenuBarBagButtons.xml:118_OnClick"]:1>

Locals:
self = Frame {
buttons =

{
}
order =
{
}
frame = BagnonInventory1 {
}
bags =
{
}
}
profile =
{
rules =
{
}
point = "BOTTOMRIGHT"
hiddenBags =
{
}
scale = 0.960000
borderColor =
{
}
enabled = true
reverseBags = true
columns = 6
money = true
alpha = 1
bagBreak = false
x = -50.000076
lockedSlots =
{
}
reverseSlots = false
color =
{
}
hiddenRules =
{
}
y = 100
}
columns = 6
scale = 1
size = 39
space = 1.300000
revBags = true
revSlots = false
x = 6
y = 0
group = 0
(for index) = 1
(for limit) = 1
(for step) = -1
k = 1
frame = Frame {
id = 0
}
bag = 0
numSlots = 20
family = 0
slots =
{
}
(*temporary) = false
(*temporary) = nil
(*temporary) = 0
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) =
{
__super =
{
}
Bags =
{
}
__base =
{
}
__index =
{
}
__name = "BagnonInventory"
ItemGroup =
{
}
__frames =
{
}
__count = 1
MainMenuButtons =
{
}
Title = "%s's Inventory"
}
(*temporary) = "owner"
(*temporary) = nil
(*temporary) = nil
(*temporary) =
{
__super =
{
}
__base =
{
}
__frames =
{
}
__type = "Frame"
__count = 0
OpenSound = 862
FontH = GameFontHighlightLeft {
}
BrokerSpacing = 2
__name = "BagnonFrame"
MoneySpacing = 8
CloseSound = 863
Font = GameFontNormalLeft {
}
__index =
{
}
MoneyFrame =
{
}
BagGroup =
{
}
}
(*temporary) = "owner"
(*temporary) = nil
(*temporary) = "attempt to compare number with boolean"

@qlesz
Copy link
Author

qlesz commented Nov 23, 2024

If anyone else having this issue this is fast fix:
add code below to file ..._classic_era_\Interface\AddOns\BagBrother\core\classes\itemGroup.lua line 112:
profile.bagBreak = tonumber(profile.bagBreak) or 0
(add it before line starting with "if x > 0 and (profile.bagBreak >"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant