Bagnon

Bagnon

122M Downloads

LUA error when trying to sort

marulol opened this issue · 0 comments

commented

Which software were you running?

  • Addon version name: 10.1.9
  • Client used: [e.g. Vanilla 1.14.4, Retail PTR x.x.x, etc] WOTLK CLASSIC

Have you read the changelog?
Mark if read. Mark

Please describe the bug.
A clear and concise description of what the bug is. I'm trying to sort my bags and getting a LUA error.

Please describe how to reproduce it. Clicking sort simply produces the error.

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Any Screenshots?
If applicable, please add screenshots to help explain your problem. https://ibb.co/1rkBzKM

Error Logs are Important!
Type /console scriptErrors 1 in the chat and reload the game. If an error window appears when reproducing the bug, please write here the first message (labelled 1/Many) that appeared. ⚠️ By default, the last error message is shown, not the first! You need to navigate back to the first error.

1x BagBrother/core/api/sorting.lua:122: attempt to compare nil with number
[string "@BagBrother/core/api/sorting.lua"]:122: in function GetSpaces' [string "@BagBrother/core/api/sorting.lua"]:43: in function Iterate'
[string "@BagBrother/core/api/sorting.lua"]:36: in function Run' [string "@BagBrother/core/api/sorting.lua"]:30: in function Start'
[string "@BagBrother/core/classes/frameBase.lua"]:116: in function <BagBrother/core/classes/frameBase.lua:115>
[string "=(tail call)"]: ?
[string "@BagBrother/frames/containers/inventory.lua"]:105: in function `SortItems'
[string "@BagBrother/core/classes/sortButton.lua"]:39: in function <BagBrother/core/classes/sortButton.lua:30>

Locals:
self =

{
SendSignal = defined @BagBrother/libs/WildAddon-1.0/WildAddon-1.0.lua:82
CanRun = defined @BagBrother/core/api/sorting.lua:171
RegisterMessage = defined @Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:80
NewModule = defined @BagBrother/libs/WildAddon-1.0/WildAddon-1.0.lua:68
GetOrder = defined @BagBrother/core/api/sorting.lua:150
Proprieties =
{
}
GetFamilies = defined @BagBrother/core/api/sorting.lua:135
target = BagnonInventory1 {
}
SendMessage = defined @Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:49
Delaying = defined @BagBrother/libs/MutexDelay-1.0/MutexDelay-1.0.lua:46
Rule = defined @BagBrother/core/api/sorting.lua:183
UnregisterSignal = defined @BagBrother/libs/WildAddon-1.0/WildAddon-1.0.lua:78
FitsIn = defined @BagBrother/core/api/sorting.lua:175
Move = defined @BagBrother/core/api/sorting.lua:196
GetSpaces = defined @BagBrother/core/api/sorting.lua:110
RegisterSignal = defined @BagBrother/libs/WildAddon-1.0/WildAddon-1.0.lua:74
UnregisterAllMessages = defined @Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:164
Run = defined @BagBrother/core/api/sorting.lua:33
UnregisterAllEvents = defined @Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:164
Iterate = defined @BagBrother/core/api/sorting.lua:42
UnregisterMessage = defined @Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:143
Stop = defined @BagBrother/core/api/sorting.lua:103
RegisterEvent = defined @Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:80
Start = defined @BagBrother/core/api/sorting.lua:23
Delay = defined @BagBrother/libs/MutexDelay-1.0/MutexDelay-1.0.lua:27
UnregisterEvent = defined @Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:143
Tag = "BAGNON_"
}
spaces =
{
1 =
{
}
2 =
{
}
3 =
{
}
4 =
{
}
5 =
{
}
6 =
{
}
7 =
{
}
8 =
{
}
9 =
{
}
10 =
{
}
11 =
{
}
12 =
{
}
13 =
{
}
14 =
{
}
}
(for generator) = defined =[C]:-1
(for state) =
{
1 = 0
2 = 1
3 = 2
4 = 3
5 = 4
6 = -2
}
(for control) = 1
_ = 1
bag = 0
family = 0
(for index) = 15
(for limit) = 20
(for step) = 1
slot = 15
item =
{
hyperlink = "|cffffffff|Hitem:6661::::::::80:::::::::|h[]|h|r"
isPaid = false
hasLoot = false
isNew = false
iconFileID = 134939
hasNoValue = false
isLocked = false
itemID = 6661
isBound = false
stackCount = 1
isFiltered = false
isReadable = false
}
id = 6661
name = nil
_ = nil
_ = nil
level = nil
_ = nil
_ = nil
_ = nil
_ = nil
equip = nil
_ = nil
_ = nil
class = nil
subclass = nil
(*temporary) = nil
(*temporary) = 2
(*temporary) = 6661
(*temporary) = "attempt to compare nil with number"
Search =
{
IsUnusable = defined @BagBrother/libs/ItemSearch-1.3/API.lua:46
Filters =
{
}
BelongsToSet = defined @BagBrother/libs/ItemSearch-1.3/API.lua:103
IsQuestItem = defined @BagBrother/libs/ItemSearch-1.3/API.lua:63
Matches = defined @BagBrother/libs/ItemSearch-1.3/API.lua:38
Unusable =
{
}
Bangs =
{
}
}