This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I'm using AdiBags and get this error when launching its config dialog with "/adibags". I threw some debug code into the AceConfigDialog module to dump out the three tables but I'm not fluent enough in Lua to just spot the error. Perhaps a Lua expert could look at the tables and see why the comparison isn't converging.
Here's my debug code, replacing the tsort call:
-- sort, catch any client error and dump for debugging local status, retval = pcall(tsort, keySort, compareOptions) if not status then print("AceConfigDialog:BuildSortedOptionsTable: " .. retval) -- dump tables to debug sort comparison function print("keySort:") table.foreach(keySort, print) print("tempOrders:") table.foreach(tempOrders, print) print("tempNames:") table.foreach(tempNames, print) endHere's the output of the above:
keySort:1 Ancient Mana2 BoA3 Champion Equipment4 Item Enhancement5 Item Enhancement!6 Key7 Power8 Recipe9 Relic10 Junk11 Miscellaneous12 Trade Goods13 Equipment14 Consumable15 description16 Quest17 newAssoc18 New19 Tradeskill
tempOrders:Ancient Mana 0description 1Champion Equipment 0Trade Goods 0Recipe 0BoA 0newAssoc 10Quest 30New 100Tradeskill 20Power 0Miscellaneous -20Equipment 10Consumable -10Item Enhancement 0Item Enhancement! 0Relic 0Junk -40Key 0
tempNames:Ancient Mana Ancient Manadescription Allow you manually redefine the section in which an item should be put. Simply drag an item on the section title.Champion Equipment Champion EquipmentTrade Goods Trade GoodsRecipe RecipeBoA BoAnewAssoc New OverrideQuest QuestNew NewTradeskill TradeskillPower PowerMiscellaneous MiscellaneousEquipment EquipmentConsumable ConsumableItem Enhancement Item EnhancementItem Enhancement! Item Enhancement!Relic RelicJunk JunkKey Key
This will demonstrate the error in a standalone interpreter. (I couldn't get the issue attachment button to work. It just hangs when I click Upload.)
https://pastebin.com/QrhUwHUK
I think the following change at line 299 in compareOptions will fix it. I'm no longer getting the error.
- if OrderB > 0 then
+ if OrderB >= 0 then
Change makes logical sense to me, applied, thanks!
To post a comment, please login or register a new account.