Thread Tools Display Modes
Prev Previous Post   Next Post Next
12/10/17, 09:43 AM   #1
Dolgubon
 
Dolgubon's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 409
[notabug] Possible bug in crafting

I think I might have found a bug, though it might be intended behaviour.

So the following code will reproduce the bug (assuming it is one) if bag and slot are replaced with some bagID and slotID of an item that can be researched.

EVENT_MANAGER:RegisterForEvent("A", EVENT_CRAFT_COMPLETED, function() WC = true end)
ResearchSmithingTrait( bag, slot ) WC = false
for i = 1, 10 do zo_callLater(function() if not IsPerformingCraftProcess() and not WC then d(i*30)CraftSmithingItem(1,1, 5, 2, 2, false) end end, i*30) end

Theoretically, this code should never actually craft anything. While the research request is being acted upon, IsPerformingCraftProcess() will return false, and when the research request is finished being acted upon, EVENT_CRAFT_COMPLETED should fire, and set WC to true. However, running the code shows that that is not the case. It seems there is a small window where IsPerformingCraftProcess returns false, but EVENT_CRAFT_COMPLETED has not actually fired yet. It's possible that it might have to do with latency.
 
 

ESOUI » Developer Discussions » Bug Reports » [notabug] Possible bug in crafting


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off