BetterBags - Gear First

BetterBags - Gear First

7.6k Downloads

Getting an error when enabling Gear > Alphabetically

UberValeon opened this issue ยท 2 comments

commented

For some reason, sometimes and depending on other options like "Show Full Section Names" the backpack window can be totally blank with no items or categories displayed.

image

1x BetterBags/frames/grid.lua:163: invalid order function for sorting
[string "=[C]"]: in function sort' [string "@BetterBags/frames/grid.lua"]:163: in function Sort'
[string "@BetterBags/views/gridview.lua"]:264: in function Render' [string "@BetterBags/frames/bag.lua"]:302: in function Draw'
[string "@BetterBags/core/init.lua"]:258: in function cb' [string "@BetterBags/core/events.lua"]:50: in function <BetterBags/core/events.lua:45> [string "=[C]"]: ? [string "@ElvUI_Libraries/Core/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:19: in function <...ies/Core/CallbackHandler-1.0/CallbackHandler-1.0.lua:15> [string "@ElvUI_Libraries/Core/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:54: in function SendMessage'
[string "@BetterBags/core/events.lua"]:186: in function <BetterBags/core/events.lua:185>

Locals:
(*temporary) =

{
1 =
{
}
2 =
{
}
3 =
{
}
4 =
{
}
5 =
{
}
6 =
{
}
7 =
{
}
8 =
{
}
9 =
{
}
10 =
{
}
11 =
{
}
12 =
{
}
13 =
{
}
14 =
{
}
15 =
{
}
16 =
{
}
17 =
{
}
18 =
{
}
19 =
{
}
20 =
{
}
21 =
{
}
22 =
{
}
23 =
{
}
}
(*temporary) =
{
view = 2
headerDisabled = false
title = Button {
}
fillWidth = false
maxItemsPerRow = 7
content =
{
}
frame = Frame {
}
}
(*temporary) =
{
view = 2
headerDisabled = false
title = Button {
}
fillWidth = false
maxItemsPerRow = 7
content =
{
}
frame = Frame {
}
}

commented

Hi mate.
I was sadly not able to reproduce.
I added a fallback in the sort getter function to Alphabetical sort. Do you still have the lua error ? Is it falling back to alpha sort or does the latest BetterBags updates have fixed the issue completely ?

If you still have it, could you help me investigate by trying to find the use case in which you have the error ?

  • Maybe a screenshot of your bag items when it's not blank so i can see all the section (item categories) you have to display.
  • Trying to find the exact setting that making the error show up
commented

Hi, I am having the same issue. When activating the sort, all items disappear from the bag.
Here is a screenshot of my bag and the error I get when I enable Gear>Alphabeticallyand the bag before enabling it:

image

Message: Interface/AddOns/BetterBags/frames/grid.lua:165: invalid order function for sorting
Time: Sat Aug 24 20:48:06 2024
Count: 3
Stack: Interface/AddOns/BetterBags/frames/grid.lua:165: invalid order function for sorting
[string "=[C]"]: in function `sort'
[string "@Interface/AddOns/BetterBags/frames/grid.lua"]:165: in function `Sort'
[string "@Interface/AddOns/BetterBags/views/gridview.lua"]:278: in function `Render'
[string "@Interface/AddOns/BetterBags/frames/bag.lua"]:304: in function `Draw'
[string "@Interface/AddOns/BetterBags/core/init.lua"]:266: in function `cb'
[string "@Interface/AddOns/BetterBags/core/events.lua"]:50: in function <Interface/AddOns/BetterBags/core/events.lua:45>
[string "=[C]"]: ?
[string "@Interface/AddOns/BetterBags/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:19: in function <...ags/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:15>
[string "@Interface/AddOns/BetterBags/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:54: in function `SendMessage'
[string "@Interface/AddOns/BetterBags/core/events.lua"]:186: in function <Interface/AddOns/BetterBags/core/events.lua:185>

Locals: (*temporary) = <table> {
 1 = <table> {
 }
 2 = <table> {
 }
 3 = <table> {
 }
 4 = <table> {
 }
 5 = <table> {
 }
 6 = <table> {
 }
 7 = <table> {
 }
 8 = <table> {
 }
 9 = <table> {
 }
 10 = <table> {
 }
 11 = <table> {
 }
 12 = <table> {
 }
 13 = <table> {
 }
 14 = <table> {
 }
 15 = <table> {
 }
 16 = <table> {
 }
}
(*temporary) = <table> {
 view = 2
 headerDisabled = false
 title = Button {
 }
 fillWidth = false
 maxItemsPerRow = 7
 content = <table> {
 }
 frame = Frame {
 }
}
(*temporary) = <table> {
 view = 2
 headerDisabled = false
 title = Button {
 }
 fillWidth = false
 maxItemsPerRow = 7
 content = <table> {
 }
 frame = Frame {
 }
}
(*temporary) = <table> {
 view = 2
 headerDisabled = false
 title = Button {
 }
 fillWidth = false
 maxItemsPerRow = 7
 content = <table> {
 }
 frame = Frame {
 }
}

I also disabled every other BetterBags plugin, I receive a different error:
image

Message: Interface/AddOns/BetterBags_GearFirst/main.lua:95: attempt to index local 'b' (a nil value)
Time: Sat Aug 24 21:04:18 2024
Count: 1
Stack: Interface/AddOns/BetterBags_GearFirst/main.lua:95: attempt to index local 'b' (a nil value)
[string "=[C]"]: ?
[string "@Interface/AddOns/BetterBags_GearFirst/main.lua"]:95: in function <Interface/AddOns/BetterBags_GearFirst/main.lua:90>
[string "=(tail call)"]: ?
[string "=[C]"]: in function `sort'
[string "@Interface/AddOns/BetterBags/frames/grid.lua"]:165: in function `Sort'
[string "@Interface/AddOns/BetterBags/views/gridview.lua"]:278: in function `Render'
[string "@Interface/AddOns/BetterBags/frames/bag.lua"]:304: in function `Draw'
[string "@Interface/AddOns/BetterBags/core/init.lua"]:266: in function `cb'
[string "@Interface/AddOns/BetterBags/core/events.lua"]:50: in function <Interface/AddOns/BetterBags/core/events.lua:45>
[string "=[C]"]: ?
[string "@Interface/AddOns/BetterBags/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:19: in function <...ags/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:15>
[string "@Interface/AddOns/BetterBags/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua"]:54: in function `SendMessage'
[string "@Interface/AddOns/BetterBags/core/events.lua"]:186: in function <Interface/AddOns/BetterBags/core/events.lua:185>

Locals: 

I hope this helps, this was a fresh install. I only had a custom category that I deleted before checking this. Dont judge my bags, this is an old character and precisely the reason I need addons like these to organise them :D