Jump to content

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.

Edited by Lawrence

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:

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...