Bagnon

Bagnon

127M Downloads

https://github.com/Jaliborc/ItemSearch-1.3/issues/16

alphabitnz opened this issue ยท 3 comments

commented

Clone of #Jaliborc/ItemSearch-1.3#16

Just referencing here for other Bagnon users to see.

BagBrother/libs/ItemSearch-1.3-2/API.lua:53: attempt to index field 'args' (a nil value)
[string "@BagBrother/libs/ItemSearch-1.3-2/API.lua"]:53: in function <BagBrother/libs/ItemSearch-1.3/API.lua:50>
[string "@BagBrother/libs/ItemSearch-1.3-2/API.lua"]:58: in function `IsUnusable'
[string "@BagBrother/addons/core/classes/item.lua"]:243: in function `UpdateBorder'
[string "@BagBrother/addons/core/classes/item.lua"]:206: in function <...rfaceBagBrother/addons/core/classes/item.lua:199>
[string "=[C]"]: in function `Update'
[string "@BagBrother/addons/core/classes/item.lua"]:134: in function <...rfaceBagBrother/addons/core/classes/item.lua:129>
[string "=[C]"]: in function `Show'
[string "@BagBrother/addons/core/api/frames.lua"]:85: in function `Show'
[string "@BagBrother/addons/core/api/frames.lua"]:77: in function <BagBrother/addons/core/api/frames.lua:76>
[string "=(tail call)"]: ?
[string "@BagBrother/addons/core/features/autoDisplay.lua"]:83: in function <...dOns/BagBrother/addons/core/features/autoDisplay.lua:82>
[string "=[C]"]: in function `ToggleAllBags'
[string "OPENALLBAGS"]:1: in function <[string "OPENALLBAGS"]:1>

Locals:
lines = <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> {
 }
}
(for index) = 15
(for limit) = 5
(for step) = -1
i = 15
(*temporary) = nil
(*temporary) = <table> {
 leftText = ""
 maxPrice = -1
 price = 910
 leftColor = <table> {
 }
 type = 11
}
(*temporary) = -1
(*temporary) = 0
(*temporary) = "attempt to index field 'args' (a nil value)"
C = <table> {
 TooltipInfo = <table> {
 }
 IsItemCache = <table> {
 }
 CurrencyInfo = <table> {
 }
 Container = <table> {
 }
}
id = 112551
L = <table> {
 CLASS_REQUIREMENT = "Classes: (.*)"
 PLAYER_CLASS = "Shaman"
 IN_SET = "Equipment Sets: |cFFFFFFFF(.*)|r"
}
commented

temporary workaround:

comment out section and replace return with pretty much anything, I just used the word 'sheep'

			for i = #lines-1, 5, -1 do
				-- local class = lines[i].args[2].stringVal:match(L.CLASS_REQUIREMENT)
				-- if class then
				--	return not class:find(L.PLAYER_CLASS)
				-- end
				return not sheep
			end
commented

It looks like you are trying to help, so thankj you but I don't understand your comment. There is no "Return" I can see in the first text to replace? You say "comment out section", but WHAT section?

  • Moto
commented

first text is bugsack output, showing the bug was found in file:
BagBrother/libs/ItemSearch-1.3-2/API.lua
from line : 53

please find this file and refer my workaround to apply your custom patch as per my instruction