Bagnon

Bagnon

127M Downloads

Bagnon - Bag is sorted illogically

SergioT87 opened this issue · 4 comments

commented

Summary:
The objects in the bag are ordered illogically. Apparently, this is a common problem. I have tried a few solutions. Reinstalling everything, trying another addon or using in-game commands. Nothing has helped
https://i.gyazo.com/37830bc59a86d3549dfa63514b23639f.jpg


Running Software (issues missing this information will be deleted):

  • Addon version: Bagnon TBC
  • Server patch: 2.5.1 39603

Have you read the changelog? (please don't waste our time)
Readed

Describe the bug
The order of the bag is not optimal.
For example, it places the extra arrows in the middle of the bag, so when you use them up you have to constantly rearrange the bag.
The gray objects are placed at the top of the bag, so when you sell them, you generate gaps in the bag.

To Reproduce
Use the "order" button on the bag.

Expected behaviour
Correct and logical order in the bag

Screenshots
https://i.gyazo.com/37830bc59a86d3549dfa63514b23639f.jpg

Error Logs
After type... /run SetSortBagsRightToLeft(true) or /run SetSortBagsRightToLeft(false)


/run SetSortBagsRightToLeft(true)

Message: [string "SetSortBagsRightToLeft(true)"]:1: attempt to call global 'SetSortBagsRightToLeft' (a nil value)
Time: Sat Aug 7 11:21:16 2021
Count: 1
Stack: [string "SetSortBagsRightToLeft(true)"]:1: attempt to call global 'SetSortBagsRightToLeft' (a nil value)
[string "SetSortBagsRightToLeft(true)"]:1: in main chunk
[string "=[C]"]: in function RunScript' [string "@Interface\FrameXML\ChatFrame.lua"]:2160: in function ?'
[string "@interface\FrameXML\ChatFrame.lua"]:4825: in function ChatEdit_ParseText' [string "@Interface\FrameXML\ChatFrame.lua"]:4488: in function ChatEdit_SendText'
[string "@interface\FrameXML\ChatFrame.lua"]:4524: in function `ChatEdit_OnEnterPressed'
[string ":OnEnterPressed"]:1: in function <[string ":OnEnterPressed"]:1>

Locals: (*temporary) = nil
(*temporary) = true
(*temporary) = "attempt to call global 'SetSortBagsRightToLeft' (a nil value)"


/run SetSortBagsRightToLeft(false)

Message: [string "SetSortBagsRightToLeft(false)"]:1: attempt to call global 'SetSortBagsRightToLeft' (a nil value)
Time: Sat Aug 7 11:20:00 2021
Count: 1
Stack: [string "SetSortBagsRightToLeft(false)"]:1: attempt to call global 'SetSortBagsRightToLeft' (a nil value)
[string "SetSortBagsRightToLeft(false)"]:1: in main chunk
[string "=[C]"]: in function RunScript' [string "@Interface\FrameXML\ChatFrame.lua"]:2160: in function ?'
[string "@interface\FrameXML\ChatFrame.lua"]:4825: in function ChatEdit_ParseText' [string "@Interface\FrameXML\ChatFrame.lua"]:4488: in function ChatEdit_SendText'
[string "@interface\FrameXML\ChatFrame.lua"]:4524: in function `ChatEdit_OnEnterPressed'
[string ":OnEnterPressed"]:1: in function <[string ":OnEnterPressed"]:1>

Locals: (*temporary) = nil
(*temporary) = false
(*temporary) = "attempt to call global 'SetSortBagsRightToLeft' (a nil value)"


Additional context
I have tried entering these codes as a workaround. It seems that the order of the bag depends on some Blizzard command that I can't figure out.

commented

First try
Reinstall all

Second try
/run SetSortBagsRightToLeft(true)
/run SetSortBagsRightToLeft(false)

Third try: Addon > AdvancedInterfaceOptions
I have figured out the problem. AdvancedInterfaceOptions addon has a setting in it for “Reverse clean up bags”.
I had this checked for some toons, and not for others. And the kick is, the setting persists even if the addon is gone. It must flip a switch in WoW’s guts that remains no matter what.

Nothing has helped

commented

Tagging along on this one - would this be the correct place to update to modify sorting behaviour in Bagnon?

https://github.com/tullamods/Wildpants/blob/214433cb7b34e97225f69944481d05597a130a90/api/sorting.lua

commented

Maybe from that file you can "force" some configuration.
But the truth is that when deleting the addon variables and reinstalling it, that file is set by default. So the problem seems to come from some "higher" level of the configuration.

commented

SOLVED
This addon sort bags correctly
tdPack2