留言

阿寶 · 2023-01-19 21:19:33

報錯@@"

1x ...ace!KalielsTracker/Modules/Addon_Questie.lua:62: attempt to call global 'GetContainerNumSlots' (a nil value)
[string "@!KalielsTracker/Modules/Addon_Questie.lua"]:62: in function `GetQuestLogSpecialItemInfo'
[string "@!KalielsTracker/Blizzard_Core/Blizzard_ObjectiveTrackerShared.lua"]:193: in function `QuestObjectiveSetupBlockButton_Item'
[string "@!KalielsTracker/Blizzard_Core/Blizzard_QuestObjectiveTracker.lua"]:54: in function <...ker/Blizzard_Core/Blizzard_QuestObjectiveTracker.lua:50>
[string "@!KalielsTracker/KalielsTracker.lua"]:883: in function `SetBlockHeader'
[string "@!KalielsTracker/Blizzard_Core/Blizzard_QuestObjectiveTracker.lua"]:376: in function `func'
[string "@!KalielsTracker/Blizzard_Core/Blizzard_QuestObjectiveTracker.lua"]:227: in function <...ker/Blizzard_Core/Blizzard_QuestObjectiveTracker.lua:212>
[string "@!KalielsTracker/Blizzard_Core/Blizzard_QuestObjectiveTracker.lua"]:255: in function <...ker/Blizzard_Core/Blizzard_QuestObjectiveTracker.lua:236>
[string "@!KalielsTracker/Blizzard_Core/Blizzard_QuestObjectiveTracker.lua"]:363: in function `Update'
[string "@!KalielsTracker/Blizzard_Core/Blizzard_ObjectiveTracker.lua"]:1028: in function <...sTracker/Blizzard_Core/Blizzard_ObjectiveTracker.lua:987>
[string "@!KalielsTracker/KalielsTracker.lua"]:482: in function `ObjectiveTracker_Update'
[string "@!KalielsTracker/KalielsTracker.lua"]:230: in function `Event_QUEST_WATCH_LIST_CHANGED'
[string "@!KalielsTracker/Modules/QuestLog.lua"]:116: in function `KT_AddQuestWatch'
[string "@!KalielsTracker/Modules/QuestLog.lua"]:56: in function `_QuestLog_ToggleQuestWatch'
[string "@!KalielsTracker/Modules/QuestLog.lua"]:74: in function <!KalielsTracker/Modules/QuestLog.lua:61>
[string "@Questie/Modules/QuestLinks/Hooks.lua"]:40: in function `QuestLogTitleButton_OnClick'
[string "*QuestLogFrame.xml:52_OnClick"]:1: in function <[string "*QuestLogFrame.xml:52_OnClick"]:1>

Locals:
questLogIndex = 6
link = nil
item = nil
charges = nil
showItemWhenComplete = nil
questID = 13832
quest = <table> {
 startedBy = <table> {
 }
 Sort = 101
 questFlags = 4480
 level = 80
 requiredSkill = <table> {
 }
 nextQuestInChain = 0
 IsRepeatable = true
 extraObjectives = <table> {
 }
 questLevel = -1
 Id = 13832
 specialFlags = 1
 parentQuest = 0
 name = "下水道的珠寶"
 IsComplete = <function> defined @Questie/Database/QuestieDB.lua:651
 requiredLevel = 80
 objectives = <table> {
 }
 Description = <table> {
 }
 reputationReward = <table> {
 }
 Color = <table> {
 }
 requiredRaces = 0
 finishedBy = <table> {
 }
 sourceItemId = 0
 IsTrivial = <function> defined @Questie/Database/QuestieDB.lua:656
 LocalizedName = "下水道的珠寶"
 SpecialObjectives = <table> {
 }
 objectivesText = <table> {
 }
 Starts = <table> {
 }
 ObjectiveData = <table> {
 }
 Finisher = <table> {
 }
 zoneOrSort = -101
 exclusiveTo = <table> {
 }
 requiredClasses = 0
 Objectives = <table> {
 }
}
(for index) = 0
(for limit) = 4
(for step) = 1
bag = 0
(*temporary) = 1
(*temporary) = nil
(*temporary) = 0
(*temporary) = "attempt to call global 'GetContainerNumSlots' (a nil value)"
isQuestieDBLoaded = true
KT = <table> {
 SaveHeader = <function> defined @!KalielsTracker/KalielsTracker.lua:1407
 SetDefaultModuleLibraries = <function> defined @Questie/Libs/AceAddon-3.0/AceAddon-3.0.lua:363
 SetQuestsHeaderText = <function> defined @!KalielsTracker/KalielsTracker.lua:1425
 IsInTable = <function> defined @!KalielsTracker/Utils.lua:55
 SetSinkStorage = <function> defined @!KalielsTracker/Libs/LibSink-2.0/LibSink-2.0.lua:825
 SetMessage = <function> defined @!KalielsTracker/KalielsTracker.lua:1655
 EnableModule = <function> defined @Questie/Libs/AceAddon-3.0/AceAddon-3.0.lua:328
 modules = <table> {
 }
 baseName = "!KalielsTracker"
 IterateEmbeds = <function> defined @Questie/Libs/AceAddon-3.0/AceAddon-3.0.lua:438
 IsHigherVersion = <function> defined @!KalielsTracker/Utils.lua:21
 MoveButtons = <function> defined @!KalielsTracker/KalielsTracker.lua:1505
 IsTableEmpty = <function> defined @!KalielsTracker/Utils.lua:51
 gameVersion = "3.4.1"
 QuestUtils_GetQuestName = <function> defined @!KalielsTracker/Utils.lua:96
 Event_QUEST_WATCH_LIST_CHANGED = <function> defined @!KalielsTracker/KalielsTracker.lua:228
 SetDefaultModulePrototype = <function> defined @Questie/Libs/AceAddon-3.0/AceAddon-3.0.lua:405
 GetSinkAce3OptionsDataTable = <function> defined @!KalielsTracker/Libs/LibSink-2.0/LibSink-2.0.lua:668
 inInstance = false
 font = "Fonts\bHEI01B.ttf"
 title = "|cff00FFFF[任務]|r 追蹤清單增強"
 IsEnabled = <function> defined @Questie/Libs/AceAddon-3.0/AceAddon-3.0.lua:447
 GetCurrentMapContinent = <function> defined @!KalielsTracker/Utils.lua:143
 DisableModule = <function> defined @Questie/Libs/AceAddon-3.0/AceAddon-3.0.lua:346
 headerBtnColor = <table> {
 }
 PrintTable = <function> defined @!KalielsTracker/Utils.lua:66
 IsTrackerEmpty = <function> defined @!KalielsTracker/KalielsTracker.lua:1614
 RegisterSink = <function> defined @!KalielsTracker/Libs/LibSink-2.0/LibSink-2.0.lua:787
 GetMapNameByID = <function> defined @!KalielsTracker/Utils.lua:152
 forcedUpdate = false
 QUALITY_COLORS = <table> {
 }
 SetSize = <function> defined @!KalielsTracker/KalielsTracker.lua:1244
 OpenOptions = <function> defined @!KalielsTracker/Options.lua:1240
 initialized = true
 SetEnabledState = <function> defined @Questie/Libs/AceAddon-3.0/AceAddon-3.0.lua:420
 screenWidth = 1920
 enabledState = true
 fixedButtons = <table> {
 }
 GameTooltip_AddQuestRewardsToTooltip = <function> defined @!Kalie

Bubbleturtle · 2023-01-19 23:05:21

剛剛也遇到這問題
把Modules底下Addon_Questie裡面62 63行的GetContainerNumSlots(bag)和GetContainerItemInfo(bag, slot)換成C_Container.GetContainerNumSlots(bag)和C_Container.GetContainerItemInfo(bag, slot)應該就能正常用作哩