ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   100023 Src? (https://www.esoui.com/forums/showthread.php?t=7784)

Phuein 05/21/18 02:41 PM

100023 Src?
 
The API seems to have changed. ZO_CenterScreenAnnounce_GetHandlers is now NIL. Where can I find the latest API? http://esodata.uesp.net/100022/ is the latest online.

Or even, how could I find the change they made to that specific function, so I can fix it?

votan 05/21/18 02:51 PM

http://www.esoui.com/downloads/info1...source....html

And as far as I can see it is ZO_CenterScreenAnnounce_GetCallbackHandlers now.

Baertram 05/21/18 03:29 PM

You could try the esoui github verison too, it should be updted to the most current version now too:
https://github.com/esoui/esoui/tree/master/esoui

Lakashi 05/21/18 03:56 PM

I thought it was GetEventHandlers()

Phuein 05/21/18 10:51 PM

Awesome, I'll try it out. Looks solid. Thanks.

ArtOfShred 05/23/18 04:43 PM

There's two that are probably relevant to you:

ZO_CenterScreenAnnounce_GetEventHandlers() - for almost all events
ZO_CenterScreenAnnounce_GetCallbackHandlers() - for Collectible Updated events (there appears to be a delayed callback on this for tracking when multiple collectibles are unlocked simultaneously).

muenchhausen 07/02/18 02:24 PM

Hi everybody!
@mods: Since this is my first post, feel free do move it where it belongs.
Thank you votan, for the link to the source, this will help me a lot.

My problem: GetItemLinkRecipeCraftingSkillType always returns 0 since 100023 (maybe related to jewelry crafting?), I tried both recipeItemLink and furnishingItemLink.

Any suggestions?

votan 07/02/18 02:41 PM

Quote:

Originally Posted by muenchhausen (Post 35262)
Hi everybody!
@mods: Since this is my first post, feel free do move it where it belongs.
Thank you votan, for the link to the source, this will help me a lot.

My problem: GetItemLinkRecipeCraftingSkillType always returns 0 since 100023 (maybe related to jewelry crafting?), I tried both recipeItemLink and furnishingItemLink.

Any suggestions?

hmm. For the recipes I have to test that, the function returned a non-zero value. That are these itemLinks? Can you post them?

Kyoma 07/02/18 08:33 PM

Quote:

Originally Posted by muenchhausen (Post 35262)
Hi everybody!
@mods: Since this is my first post, feel free do move it where it belongs.
Thank you votan, for the link to the source, this will help me a lot.

My problem: GetItemLinkRecipeCraftingSkillType always returns 0 since 100023 (maybe related to jewelry crafting?), I tried both recipeItemLink and furnishingItemLink.

Any suggestions?

They might have disabled it for recipes you do not own

muenchhausen 07/03/18 10:57 AM

Thank you for the quick answers.
Quote:

Originally Posted by Kyoma (Post 35268)
They might have disabled it for recipes you do not own

I get the recipeItemLink from recipes I do own.

Lua Code:
  1. for recipeListIndex = 1, GetNumRecipeLists() do
  2.     local recCatName, numRecipes = GetRecipeListInfo(recipeListIndex)
  3.     for recipeIndex = 1, numRecipes do
  4.         local known, recName = GetRecipeInfo(recipeListIndex, recipeIndex)
  5.         if(known) then
  6.             local recItemLink = GetRecipeResultItemLink(recipeListIndex, recipeIndex)
  7.             local recItemId = select(4, ZO_LinkHandler_ParseLink(recItemLink))
  8.             local furItemLink = "|H1:item:" .. recItemId .. ":364:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:1:0:0:0|h|h"
d(recItemLink .. furItemLink) outputs a working link for both locals.

muenchhausen 07/24/18 12:23 PM

Haven't found a work-around yet. Hope it works again with 100024...

ZOS_ChipHilseberg 07/25/18 08:54 AM

You are passing the item link for what a recipe makes into a function that expects a recipe. That is why it does not work.

SilverWF 07/25/18 08:30 PM

Quote:

Originally Posted by ZOS_ChipHilseberg (Post 35424)
You are passing the item link for what a recipe makes into a function that expects a recipe. That is why it does not work.

And in this case he must use GetItemLinkCraftingSkillType(itemLink) :banana:

muenchhausen 07/30/18 01:22 PM

Quote:

Originally Posted by SilverWF (Post 35432)
And in this case he must use GetItemLinkCraftingSkillType(itemLink)

He did, with no result. Seems I have to do some research about ItemLinks.
Mea culpa, sorry to bother, thank you anyway.

ZOS_DanBatson 08/02/18 12:59 PM

For the record:

ZO_CenterScreenAnnounce_GetEventHandlers() - This is for events from the engine, registered via RegisterForEvent
ZO_CenterScreenAnnounce_GetCallbackHandlers() - This is for callbacks that come via Lua ZO_CallbackManager objects, registered via RegisterCallback


All times are GMT -6. The time now is 01:19 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI