Jump to content

Digest August

We talk about what was done and updated in the past month. We help keep abreast of events.

Read more

Servers monitoring and the Addons Editor

We present you two legends. All dreams come true.

Servers monitoring The Addons Editor

Game tooltips

Tooltips provide a way for 3rd party fansites and extensions to display detailed information on mouseover.

Read more

GetRecipeInfo(RecipeID) => cannot get SpellDescHelper object


Recommended Posts

Есть код:

local recipe = avatar.GetAlchemyMatchedRecipe(-1)

if recipe then

local recipeInfo = avatar.GetRecipeInfo(recipe.recipeId)



Есть лог:

Error: addon Alchemist: Game::CreateRecipeInfoPart: cannot get SpellDescHelper object, details: void __cdecl Game::CreateRecipeInfoPart(const struct GMUIHelper::IRecipe *,class Lua::State &,bool (__cdecl *)(class nstl::basic_string<char> &,class Lua::State &,class Lua::Table &,struct GMUIHelper::ISpellDescHelper *))

Info: addon Alchemist: Пятновыводитель

Я в недоумении: вроде как и GetRecipeInfo(ID) упало по ошибке, но и recipeInfo проинициализировался - name содержит значение.

Код взят из хелпа, LogInfo чуть-чуть допилен (на результат 100% не влияет - можете закомментировать).

Баг в API? Пропустил что-то в доке?

Подскажите в каком направлении работать?

I'm confused: seems, there is exception in GetRecipeInfo(ID), but recipeInfo has been successfully initialized - name contains valid value.

Source taken from documentation, LogInfo slightly modified (but it is not the reason - you can comment "LogInfo" and get the same result)

Is there a bug in API? I missed something important in manual?

Please, give me a hint!

Link to comment
Share on other sites

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using our site you agree to the Terms of Use