DengSir / tdPack2

MIT License
3 stars 2 forks source link

Does not work with Classic Era / Hardcore Mode #12

Closed trying-to-function closed 3 months ago

trying-to-function commented 1 year ago

This addon is currently broken in Classic Era / Hardcore Mode.

I cloned the master branch using git clone --recurse-submodules https://github.com/DengSir/tdPack2 to get the changes @Road-block merged.

Here are the errors I'm currently seeing:

First login error ``` Date: 2023-09-01 15:23:50 ID: 1 Error occured in: Global Count: 1 Message: Interface/AddOns/tdPack2/Core/Data.lua line 85: table index is nil Debug: [string "@Interface/AddOns/tdPack2/Core/Data.lua"]:85: NewTag2() [string "@Interface/AddOns/tdPack2/Core/Data.lua"]:144: in main chunk Locals: tag = nil ids = { 1 = 34061 2 = 34060 3 = 33189 4 = 21176 5 = 23720 } (*temporary) =
{ Elemental =
{ } Mount =
{ } Pet =
{ } Leather =
{ } Cooking =
{ } Jewelry =
{ } Cloth =
{ } Enchanting =
{ } Metal & Stone =
{ } Herb =
{ } } (*temporary) = "table index is nil" ns =
{ GetBagSlotCount = defined @Interface/AddOns/tdPack2/Api.lua:245 GetBagSlotId = defined @Interface/AddOns/tdPack2/Api.lua:222 EXTRA_COMMAND =
{ } GetBagSlotFamily = defined @Interface/AddOns/tdPack2/Api.lua:249 SORT_TYPE =
{ } GetRuleInfo = defined @Interface/AddOns/tdPack2/Api.lua:302 VERSION = 20000 CopyFrom = defined @Interface/AddOns/tdPack2/Api.lua:290 COMMAND =
{ } IsBagSlotFull = defined @Interface/AddOns/tdPack2/Api.lua:234 BAG_TYPES =
{ } BAG_TYPE =
{ } GetItemFamily = defined @Interface/AddOns/tdPack2/Api.lua:156 GetBagSlotLink = defined @Interface/AddOns/tdPack2/Api.lua:218 IsBagSlotEmpty = defined @Interface/AddOns/tdPack2/Api.lua:230 ToggleMenu = defined @Interface/AddOns/tdPack2/Api.lua:351 IsFamilyContains = defined @Interface/AddOns/tdPack2/Api.lua:268 ItemInfo =
{ } Bag =
{ } IsBank = defined @Interface/AddOns/tdPack2/Api.lua:148 Order =
{ } GetBagFamily = defined @Interface/AddOns/tdPack2/Api.lua:170 GetBagNumSlots = defined @Interface/AddOns/tdPack2/Api.lua:200 ITEM_TAGS =
{ } ORDER =
{ } ripairs = defined @Interface/AddOns/tdPack2/Api.lua:102 Base =
{ } IsAdvanceRule = defined @Interface/AddOns/tdPack2/Api.lua:329 IsBagSlotLocked = defined @Interface/AddOns/tdPack2/Api.lua:253 memorize = defined @Interface/AddOns/tdPack2/Api.lua:108 Task =
{ } Group =
{ } Slot =
{ } Item =
{ } CLICK_LIST =
{ } PickupBagSlot = defined @Interface/AddOns/tdPack2/Api.lua:257 UNKNOWN_ICON = 134400 ICON = "Interface\AddOns\tdPack2\Resource\INV_Pet_Broom" L =
{ } Addon =
{ } IsBag = defined @Interface/AddOns/tdPack2/Api.lua:144 CLICK_TOKENS =
{ } GetCursorPosition = defined @Interface/AddOns/tdPack2/Api.lua:284 GetItemId = defined @Interface/AddOns/tdPack2/Api.lua:204 GetBags = defined @Interface/AddOns/tdPack2/Api.lua:152 GetClickToken = defined @Interface/AddOns/tdPack2/Api.lua:273 } AddOns: ShamanFix, v1.13.2 Swatter, v2.5.6773 (SwimmingSeadragon) Auctionator, v10.1.19 AutoCarrot, v3.00 BagBrother, v Bagnon, v10.1.4 BuffomatClassic, v2023.8.1-955e9415 CurseBreakerCompanion, v1.3.3 DBMCore, v322cbac DBMStatusBarTimers, v322cbac DBMVPVEM, v6b4f4f1 Details, v#Details.20230825.11857.155 DetailsCompare2, v DetailsEncounterDetails, v DetailsRaidCheck, v DetailsStreamer, v DetailsTinyThreat, v DetailsVanguard, v ElvUI, v13.39 ElvUILibraries, v13.39 ExtendedCharacterStats, v3.1.2 FishingBuddy, v0.9.3 FlightTimerClassic, v0.6.1 GearMenu, vv2.3.1 GTFO, v5.5 Hemlock, v1.2.4 ItemRack, v3.75 Journalator, v1.61 JournalatorDisplay, v@project-version@ JournalatorOptionsUI, v@project-version@ JournalatorStatistics, v@project-version@ LeatrixMaps, v1.14.122 LeatrixPlus, v1.14.123 LFGBulletinBoard, v3.11 MRT, v4770 NovaInstanceTracker, v1.45 NovaWorldBuffs, v2.54 OmniCC, v10.1.1 Outfitter, v3.0.4 Plater, vPlater-v563-Classic Quartz, v3.7.6 Questie, v8.8.7 RatingBuster, v Restocker, v2023.6.1-24131de5 SkilletClassic, v1.77 Spy, v1.2.4 StatLogic, v Stubby, v2.5.6772 (SwimmingSeadragon) SuperDuperMacro, vretail 9.0.1.2, classic 1.13.5.4 Talented, vv211114v TalentedData, v TalentedDataExport, v1.0 tdPack2, v2.0.0 ThreatClassic2, v2.48 WeakAuras, v5.7.0 WeakAurasCompanion, v1.1.0 WeaponSwingTimer, v7.1.1 WIM, v3.10.15 BlizRuntimeLib_enUS v1.14.4.11404 (ck=5d1) ```
Second login error ``` Date: 2023-09-01 15:23:50 ID: 2 Error occured in: Global Count: 1 Message: Interface/AddOns/tdPack2/Core/Config.lua line 106: bad argument #2 to 'format' (string expected, got nil) Debug: [string "=[C]"]: format() [string "@Interface/AddOns/tdPack2/Core/Config.lua"]:106: TypeOrTag() [string "@Interface/AddOns/tdPack2/Core/Config.lua"]:151: in main chunk Locals: (*temporary) = "type:%s | tag:%s" (*temporary) = nil (*temporary) = nil (*temporary) = "string expected, got nil" AddOns: ShamanFix, v1.13.2 Swatter, v2.5.6773 (SwimmingSeadragon) Auctionator, v10.1.19 AutoCarrot, v3.00 BagBrother, v Bagnon, v10.1.4 BuffomatClassic, v2023.8.1-955e9415 CurseBreakerCompanion, v1.3.3 DBMCore, v322cbac DBMStatusBarTimers, v322cbac DBMVPVEM, v6b4f4f1 Details, v#Details.20230825.11857.155 DetailsCompare2, v DetailsEncounterDetails, v DetailsRaidCheck, v DetailsStreamer, v DetailsTinyThreat, v DetailsVanguard, v ElvUI, v13.39 ElvUILibraries, v13.39 ExtendedCharacterStats, v3.1.2 FishingBuddy, v0.9.3 FlightTimerClassic, v0.6.1 GearMenu, vv2.3.1 GTFO, v5.5 Hemlock, v1.2.4 ItemRack, v3.75 Journalator, v1.61 JournalatorDisplay, v@project-version@ JournalatorOptionsUI, v@project-version@ JournalatorStatistics, v@project-version@ LeatrixMaps, v1.14.122 LeatrixPlus, v1.14.123 LFGBulletinBoard, v3.11 MRT, v4770 NovaInstanceTracker, v1.45 NovaWorldBuffs, v2.54 OmniCC, v10.1.1 Outfitter, v3.0.4 Plater, vPlater-v563-Classic Quartz, v3.7.6 Questie, v8.8.7 RatingBuster, v Restocker, v2023.6.1-24131de5 SkilletClassic, v1.77 Spy, v1.2.4 StatLogic, v Stubby, v2.5.6772 (SwimmingSeadragon) SuperDuperMacro, vretail 9.0.1.2, classic 1.13.5.4 Talented, vv211114v TalentedData, v TalentedDataExport, v1.0 tdPack2, v2.0.0 ThreatClassic2, v2.48 WeakAuras, v5.7.0 WeakAurasCompanion, v1.1.0 WeaponSwingTimer, v7.1.1 WIM, v3.10.15 BlizRuntimeLib_enUS v1.14.4.11404 (ck=5d1) ```
Click sort button error ``` Date: 2023-09-01 15:24:18 ID: 3 Error occured in: Global Count: 1 Message: Interface/AddOns/tdPack2/Object/ItemInfo.lua line 41: attempt to index field 'ITEM_TAG_SETS' (a nil value) Debug: [string "@Interface/AddOns/tdPack2/Object/ItemInfo.lua"]:41: Build() [string "@Interface/AddOns/tdPack2/Object/ItemInfo.lua"]:18: ctor() [string "@Interface/AddOns/tdPack2/Libs/LibClass-2.0/Class-2.0.lua"]:63: ...rface/AddOns/tdPack2/Libs/LibClass-2.0/Class-2.0.lua:55 [string "=(tail call)"]: ? [string "@Interface/AddOns/tdPack2/Core/ItemInfoCache.lua"]:21: Interface/AddOns/tdPack2/Core/ItemInfoCache.lua:20 [string "@Interface/AddOns/tdPack2/Core/ItemInfoCache.lua"]:30: Get() [string "@Interface/AddOns/tdPack2/Api.lua"]:240: Interface/AddOns/tdPack2/Api.lua:234 [string "=(tail call)"]: ? [string "@Interface/AddOns/tdPack2/Core/Stacking.lua"]:99: IsCanStack() [string "@Interface/AddOns/tdPack2/Core/Stacking.lua"]:74: ProcessSlots() [string "@Interface/AddOns/tdPack2/Core/Stacking.lua"]:58: Process() [string "@Interface/AddOns/tdPack2/Object/Task.lua"]:23: task() [string "@Interface/AddOns/tdPack2/Core/Pack.lua"]:184: ?() [string "@Interface/AddOns/WeakAuras/Libs/AceTimer-3.0/AceTimer-3.0.lua"]:55: .../AddOns/WeakAuras/Libs/AceTimer-3.0/AceTimer-3.0.lua:50 Locals: self =
{ itemSubType = "Consumable" itemType = "Consumable" itemStackCount = 20 itemSubTypeId = 0 itemSetId = 0 itemTypeId = 0 itemName = "Instant Poison VI" itemLevel = 60 itemQuality = 1 itemTexture = 132273 itemEquipLoc = "" itemLink = "|cffffffff|Hitem:8928::::::::60:::::::::|h[Instant Poison VI]|h|r" itemId = 8928 } itemName = "Instant Poison VI" itemLink = "|cffffffff|Hitem:8928::::::::60:::::::::|h[Instant Poison VI]|h|r" itemQuality = 1 itemLevel = 60 _ = 60 itemType = "Consumable" itemSubType = "Consumable" itemStackCount = 20 itemEquipLoc = "" itemTexture = 132273 sellPrice = 125 itemTypeId = 0 itemSubTypeId = 0 bindType = 0 expacId = 254 setId = nil isCraftingReagent = false (*temporary) = nil (*temporary) = 8928 (*temporary) = "attempt to index field 'ITEM_TAG_SETS' (a nil value)" GetItemInfo = defined =[C]:-1 ns =
{ GetBagSlotCount = defined @Interface/AddOns/tdPack2/Api.lua:245 GetBagSlotId = defined @Interface/AddOns/tdPack2/Api.lua:222 EXTRA_COMMAND =
{ } GetBagSlotFamily = defined @Interface/AddOns/tdPack2/Api.lua:249 SORT_TYPE =
{ } GetRuleInfo = defined @Interface/AddOns/tdPack2/Api.lua:302 VERSION = 20000 CopyFrom = defined @Interface/AddOns/tdPack2/Api.lua:290 SetupButton = defined @Interface/AddOns/tdPack2/Button/Button.lua:42 COMMAND =
{ } UI =
{ } IsBagSlotFull = defined @Interface/AddOns/tdPack2/Api.lua:234 CachableOrder =
{ } BAG_TYPES =
{ } BAG_TYPE =
{ } GetItemFamily = defined @Interface/AddOns/tdPack2/Api.lua:156 GetBagSlotLink = defined @Interface/AddOns/tdPack2/Api.lua:218 CustomOrder =
{ } JunkOrder =
{ } IsBagSlotEmpty = defined @Interface/AddOns/tdPack2/Api.lua:230 Search =
{ } GetClickToken = defined @Interface/AddOns/tdPack2/Api.lua:273 ToggleMenu = defined @Interface/AddOns/tdPack2/Api.lua:351 IsFamilyContains = defined @Interface/AddOns/tdPack2/Api.lua:268 ItemInfo =
{ } Stacking =
{ } ITEM_TAGS =
{ } Bag =
{ } Pack =
{ } IsBank = defined @Interface/AddOns/tdPack2/Api.lua:148 Order =
{ } Rule =
{ } Base =
{ } GetBagFamily = defined @Interface/AddOns/tdPack2/Api.lua:170 GetBagNumSlots = defined @Interface/AddOns/tdPack2/Api.lua:200 Saving =
{ } ORDER =
{ } ripairs = defined @Interface/AddOns/tdPack2/Api.lua:102 ItemInfoCache =
{ } IsAdvanceRule = defined @Interface/AddOns/tdPack2/Api.lua:329 IsBagSlotLocked = defined @Interface/AddOns/tdPack2/Api.lua:253 memorize = defined @Interface/AddOns/tdPack2/Api.lua:108 Task =
{ } Group =
{ } Slot =
{ } Item =
{ } CLICK_LIST =
{ } PickupBagSlot = defined @Interface/AddOns/tdPack2/Api.lua:257 UNKNOWN_ICON = 134400 ICON = "Interface\AddOns\tdPack2\Resource\INV_Pet_Broom" L =
{ } Addon =
{ } IsBag = defined @Interface/AddOns/tdPack2/Api.lua:144 CLICK_TOKENS =
{ } GetCursorPosition = defined @Interface/AddOns/tdPack2/Api.lua:284 GetItemId = defined @Interface/AddOns/tdPack2/Api.lua:204 GetBags = defined @Interface/AddOns/tdPack2/Api.lua:152 Sorting =
{ } } IsEquippableItem = defined =[C]:-1 AddOns: ShamanFix, v1.13.2 Swatter, v2.5.6773 (SwimmingSeadragon) Auctionator, v10.1.19 AutoCarrot, v3.00 BagBrother, v Bagnon, v10.1.4 BuffomatClassic, v2023.8.1-955e9415 CurseBreakerCompanion, v1.3.3 DBMCore, v322cbac DBMStatusBarTimers, v322cbac DBMVPVEM, v6b4f4f1 Details, v#Details.20230825.11857.155 DetailsCompare2, v DetailsEncounterDetails, v DetailsRaidCheck, v DetailsStreamer, v DetailsTinyThreat, v DetailsVanguard, v ElvUI, v13.39 ElvUILibraries, v13.39 ExtendedCharacterStats, v3.1.2 FishingBuddy, v0.9.3 FlightTimerClassic, v0.6.1 GearMenu, vv2.3.1 GTFO, v5.5 Hemlock, v1.2.4 ItemRack, v3.75 Journalator, v1.61 JournalatorDisplay, v@project-version@ JournalatorOptionsUI, v@project-version@ JournalatorStatistics, v@project-version@ LeatrixMaps, v1.14.122 LeatrixPlus, v1.14.123 LFGBulletinBoard, v3.11 MRT, v4770 NovaInstanceTracker, v1.45 NovaWorldBuffs, v2.54 OmniCC, v10.1.1 Outfitter, v3.0.4 Plater, vPlater-v563-Classic Quartz, v3.7.6 Questie, v8.8.7 RatingBuster, v Restocker, v2023.6.1-24131de5 SkilletClassic, v1.77 Spy, v1.2.4 StatLogic, v Stubby, v2.5.6772 (SwimmingSeadragon) SuperDuperMacro, vretail 9.0.1.2, classic 1.13.5.4 Talented, vv211114v TalentedData, v TalentedDataExport, v1.0 tdPack2, v2.0.0 ThreatClassic2, v2.48 unitscan, vv1.1.3 WeakAuras, v5.7.0 WeakAurasCompanion, v1.1.0 WeaponSwingTimer, v7.1.1 WIM, v3.10.15 BlizRuntimeLib_enUS v1.14.4.11404 (ck=5e5) ```
trying-to-function commented 3 months ago

Release v2.1.6 seems to have fixed the issue. Thank you!