Daily enchanting writ returns (type=none)(name=empty string)
I was doing some writs and noticed my compatibility mod I made for my addon for dailys wasn't functioning so I did some digging and discovered:
Code:
CRAFTING IMO since it is in the CRAFTING section of the quest journal with all the other "QUEST_TYPE_CRAFTING" daily writs AND literally says "craft a supurb glyph...", that it should also be considered a "QUEST_TYPE_CRAFTING" quest and all the others with a similar problem. |
What API functions do you refer to please if you say "it returns", and the values are wrong/nil/empty?
Any GetQuest* API? Mentioning your addon is not enough for a bug report. Please provide an exemple code to run to see that bug and also test it with all addons disabled to see if it really is a bug, or an addon created bug. Thank you |
sorry heres the entire function.
Code:
function MyAddon.HasWritQuest()-- << CHECK FOR ACTIVE WRITS and df(tostring(GetJournalQuestName(quest))) returns [Empty String] for that particular quest.. the remaining quests in my journal return properly as normal. |
What client language do you use, is it English?
I remember there was something with French e.g. And what does GetJournalQuestName return for that quest? |
Quote:
**EDIT Just checked todays writs and they're fine. all returning QUEST_TYPE_CRAFTING and correct names..But yesterdays enchanting was not. |
|
Quote:
|
You didn't get the point of the thread, so I'll copy and paste. :(
You should use the global constant MAX_JOURNAL_QUESTS (=25) instead as the loop count. And for each index, you need to check if it is valid or not. This is really hard for me to say, the bug is in your code. - Calamath |
Quote:
|
Not to mention that Crafting Quests may not be quests that involve crafting. It is probably the certification quests.
Ignore the classification you want and get the quest data ZOS provides using GetJournalQuestType(). See how ZOS classifies them. Irrespective of how you think they should be classified, their classification is what ZOS chose.You may not be able to filter writ quests you don't want by the quest type "crafting" because they are probably daily quests. |
Here's my current implementation of a writ search function, which as far as I know works well. It does have a bit more functionality, but you can strip that out if you don't need it. Line 446 in WritCreator.lua.
Lua Code:
|
Moved to appropriate forum as this is not a bug, thanks Calamath for the reference.
|
Quote:
|
You still did not understand it!
You Must use the max 25 constant as there are gaps in the quest indices and only the "valid" ones (which you need to check via the API functions mentioned by Calamath and others above) of the 1 to 25 are the 5 you got in your list. It's not always 1, 2, 3, 4, 5 as your current situation may have and where it works! |
Quote:
|
All times are GMT -6. The time now is 07:51 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI