Jump to content

Ingredient icon won't appear


Lawrence

Recommended Posts

Hello there.

I got an ANNOYING problem: the custom ingredient icons won't appear in the recipe.

 

I tried to:

 

.. put the ATLAS and IMAGE in the assets list;

.. wrote  inst.item= Ingredient( "item", 1)
            inst.item.atlas = "images/inventoryimages/item.xml" ...

..local item = GLOBAL.ingredient("item", 1)    (this one in modmain)

           item.atlas = "images/inventoryimages/item.xml" ...

 

But it still gives me that:

 

WARNING! Could not find region 'item.tex' from atlas 'images/inventoryimages.xml'. Is the region specified in the atlas?
images/inventoryimages.xml
        again and again.

 

I know I missing something very simple, but I can't figure what is. I just can't.

What's the correct procedure for adding an ingredient icon?

 

Thank you once again...

 

 - Lawrence C. S.

Link to comment
Share on other sites

Sorry for that stupid post, but as usual, I spend hours to find the solution to a problem, I do not find it, I ask in the forum, and then I figure out that I'm an idiot :frown-new: ...

 

Anyway, I hope this post will be useful for prevent people to do my same error :encouragement:

Link to comment
Share on other sites

Dear Lawrence, you forgot to put "inst.item" in the recipe ingredients!

Try this:

 

inst.itemrecipe = Recipe( "itemX", { Ingredient("something",2), inst.item}, RECIPETABS etc. etc.

im not sure what you mean by inst.itemrecipe = Recipe does that go in the modmain? because any inst. anything in my modmain causes a crash

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...