Thread Tools Display Modes
05/21/18, 02:41 PM   #1
Phuein
 
Phuein's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 132
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?
  Reply With Quote
05/21/18, 02:51 PM   #2
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 577
http://www.esoui.com/downloads/info1...source....html

And as far as I can see it is ZO_CenterScreenAnnounce_GetCallbackHandlers now.
  Reply With Quote
05/21/18, 03:29 PM   #3
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
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
  Reply With Quote
05/21/18, 03:56 PM   #4
Lakashi
 
Lakashi's Avatar
Join Date: Oct 2017
Posts: 4
I thought it was GetEventHandlers()
  Reply With Quote
05/21/18, 10:51 PM   #5
Phuein
 
Phuein's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 132
Awesome, I'll try it out. Looks solid. Thanks.
  Reply With Quote
05/23/18, 04:43 PM   #6
ArtOfShred
 
ArtOfShred's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 103
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).
  Reply With Quote
07/02/18, 02:24 PM   #7
muenchhausen
 
muenchhausen's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2018
Posts: 13
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?
  Reply With Quote
07/02/18, 02:41 PM   #8
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 577
Originally Posted by muenchhausen View Post
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?
  Reply With Quote
07/02/18, 08:33 PM   #9
Kyoma
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 125
Originally Posted by muenchhausen View Post
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
  Reply With Quote
07/03/18, 10:57 AM   #10
muenchhausen
 
muenchhausen's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2018
Posts: 13
Thank you for the quick answers.
Originally Posted by Kyoma View Post
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.

Last edited by muenchhausen : 07/03/18 at 11:20 AM.
  Reply With Quote
07/24/18, 12:23 PM   #11
muenchhausen
 
muenchhausen's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2018
Posts: 13
Haven't found a work-around yet. Hope it works again with 100024...
  Reply With Quote
07/25/18, 08:54 AM   #12
ZOS_ChipHilseberg
ZOS Staff!
Premium Member
Yes this person is from ZeniMax!
Join Date: Oct 2014
Posts: 551
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.
  Reply With Quote
07/25/18, 08:30 PM   #13
SilverWF
 
SilverWF's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 55
Exclamation

Originally Posted by ZOS_ChipHilseberg View Post
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)
  Reply With Quote
07/30/18, 01:22 PM   #14
muenchhausen
 
muenchhausen's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2018
Posts: 13
Originally Posted by SilverWF View Post
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.
  Reply With Quote
08/02/18, 12:59 PM   #15
ZOS_DanBatson
ZOS Staff!
 
ZOS_DanBatson's Avatar
Yes this person is from ZeniMax!
Join Date: Jul 2015
Posts: 171
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
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » 100023 Src?

Thread Tools
Display Modes

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