Log in to ZYGOR
Log in with social media
OR
Log in with Zygor account

Announcement

Collapse
No announcement yet.

LUA error: attempt to call field 'GetQuestWatchType' (a nil value)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    LUA error: attempt to call field 'GetQuestWatchType' (a nil value)

    I often get this lua error. Open guide: The Barrens (12-15)


    4x ...ns\ZygorGuidesViewerClassicTBC\ZygorGuidesViewe r-2.0.25351.25351.lua:3832: attempt to call field 'GetQuestWatchType' (a nil value)
    [string "@ZygorGuidesViewerClassicTBC\ZygorGuidesViewe r-2.0.25351.25351.lua"]:3832: in function `checked'
    [string "@ZygorGuidesViewerClassicTBC\Libs\UIDropDownF ork. lua"]:692: in function `UIDropDownFork_AddButton'
    [string "@ZygorGuidesViewerClassicTBC\Libs\EasyFork.lu a"]:23: in function `initFunction'
    [string "@ZygorGuidesViewerClassicTBC\Libs\UIDropDownF ork. lua"]:106: in function `UIDropDownFork_Initialize'
    [string "@ZygorGuidesViewerClassicTBC\Libs\EasyFork.lu a"]:32: in function `EasyFork'
    [string "@ZygorGuidesViewerClassicTBC\ZygorGuidesViewe r-2.0.25351.25351.lua"]:3989: in function `OpenQuickStepMenu'
    [string "@ZygorGuidesViewerClassicTBC\ZygorGuidesViewe r-2.0.25351.25351.lua"]:3401: in function `GoalOnClick'
    [string "@ZygorGuidesViewerClassicTBC\Skins\Default\Vi ewer Frame.lua"]:1069: in function <...GuidesViewerClassicTBC\Skins\Default\ViewerF ra me.lua:1068>

    Locals:
    (*temporary) = nil
    (*temporary) = 895
    (*temporary) = "attempt to call field 'GetQuestWatchType' (a nil value)"
    goal = <table> {
    action = "get"
    waypoint_iconoverride = true
    status = "incomplete"
    waypoint_moved_to_waypath = true
    indent = 0
    targetid = 5084
    target = "Baron Longshore's Head"
    L = true
    quest = <table> {
    }
    waypoint_marker_override = "greendot"
    map = 1413
    num = 6
    floor = 0
    waypoint = <table> {
    }
    was_visited = false
    prepared = true
    parentStep = <table> {
    }
    objnum = 1
    autotitle = "64.22,47.13"
    was_clicked = false
    count = 1
    questid = 895
    y = 0.471300
    x = 0.642200
    }

    #2
    If you have all other addons disabled do you still get this error?
    Become a Fan of Zygor Guides on Facebook:
    http://www.facebook.com/pages/Zygor-...04933799556988

    Follow Zygor Guides on Twitter:
    http://twitter.com/zygorguides

    Comment


      #3
      Leveling without any addons is not feasible for me since this error does not always occur.

      But I did disable all addons and did a print of the function:

      /script print(C_QuestLog.GetQuestWatchType, GetQuestWatchType)
      Result both are nil, see image 1a and 1b
      1a-WoWScrnShot_081321_125645.jpg
      1b-WoWScrnShot_081321_125651.jpg
      /script print(C_QuestLog.RemoveQuestWatch, RemoveQuestWatch)
      Result first is nil second is a function pointer. see image 2a and 2b.
      2a-WoWScrnShot_081321_125821.jpg
      2b-WoWScrnShot_081321_125823.jpg

      Comment


        #4
        Of course you will get a nil when you use those scripts. You never supplied the required quest ID in the script. You would also need the quest in question to still be active in your logs and being watched but it looks like you only have 1 quest in the watch list which is not the one that was referenced in the LUA error.
        Become a Fan of Zygor Guides on Facebook:
        http://www.facebook.com/pages/Zygor-...04933799556988

        Follow Zygor Guides on Twitter:
        http://twitter.com/zygorguides

        Comment


          #5
          Yes I know I did print the function on purpose without parameters. In this case it should print a function pointer if the function exists in the table.

          The outcome of /dump C_QuestLog
          [15:40:02] Dump: C_QuestLog
          [15:40:02] C_QuestLog={
          [15:40:02] GetQuestObjectives=<function>,
          [15:40:02] GetMaxNumQuestsCanAccept=<function>,
          [15:40:02] GetQuestInfo=<function>,
          [15:40:02] GetMaxNumQuests=<function>,
          [15:40:02] ShouldShowQuestRewards=<function>,
          [15:40:02] IsOnQuest=<function>,
          [15:40:02] IsQuestFlaggedCompleted=<function [PlayerCompletedQuest]>
          [15:40:02] }

          Here you can see that the function GetQuestWatchType is not present in this table.

          Doing the same on the retail client then the function does exists.

          Dump from the Retail client:
          [06:40:19] Dump: C_QuestLog
          [06:40:19] C_QuestLog={
          [06:40:19] CanAbandonQuest=<function>,
          [06:40:19] IsQuestFlaggedCompleted=<function>,
          [06:40:19] GetTimeAllowed=<function>,
          [06:40:19] IsQuestDisabledForSession=<function>,
          [06:40:19] GetQuestDifficultyLevel=<function>,
          [06:40:19] GetActiveThreatMaps=<function>,
          [06:40:19] IsOnMap=<function>,
          [06:40:19] RemoveQuestWatch=<function>,
          [06:40:19] QuestHasWarModeBonus=<function>,
          [06:40:19] HasActiveThreats=<function>,
          [06:40:19] GetLogIndexForQuestID=<function>,
          [06:40:19] IsComplete=<function>,
          [06:40:19] GetNextWaypointForMap=<function>,
          [06:40:19] IsFailed=<function>,
          [06:40:19] GetNumQuestWatches=<function>,
          [06:40:19] IsUnitOnQuest=<function>,
          [06:40:19] IsRepeatableQuest=<function>,
          [06:40:19] GetNumQuestObjectives=<function>,
          [06:40:19] GetMaxNumQuestsCanAccept=<function>,
          [06:40:19] GetQuestWatchType=<function>,
          [06:40:19] GetInfo=<function>,
          [06:40:19] GetTitleForQuestID=<function>,
          [06:40:19] GetMapForQuestPOIs=<function>,
          [06:40:19] GetQuestType=<function>,
          [06:40:19] AbandonQuest=<function>,
          [06:40:19] IsQuestTrivial=<function>,
          [06:40:19] GetQuestTagInfo=<function>,
          [06:40:19] GetAllCompletedQuestIDs=<function>,
          [06:40:19] RequestLoadQuestByID=<function>,
          [06:40:19] AddWorldQuestWatch=<function>,
          [06:40:19] <skipped 47>
          [06:40:19] }

          Comment


            #6
            Any info on this!!

            Comment


              #7
              We are investigating this.
              Become a Fan of Zygor Guides on Facebook:
              http://www.facebook.com/pages/Zygor-...04933799556988

              Follow Zygor Guides on Twitter:
              http://twitter.com/zygorguides

              Comment


                #8
                This should be fixed with the next update.
                Become a Fan of Zygor Guides on Facebook:
                http://www.facebook.com/pages/Zygor-...04933799556988

                Follow Zygor Guides on Twitter:
                http://twitter.com/zygorguides

                Comment

                Working...
                X