Lawrence Posted January 18, 2014 Share Posted January 18, 2014 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 More sharing options...
Lawrence Posted January 18, 2014 Author Share Posted January 18, 2014 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. Link to comment Share on other sites More sharing options...
Lawrence Posted January 18, 2014 Author Share Posted January 18, 2014 Oh, thank you Myself. What would I do without you? Link to comment Share on other sites More sharing options...
Lawrence Posted January 18, 2014 Author Share Posted January 18, 2014 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 ... Anyway, I hope this post will be useful for prevent people to do my same error Link to comment Share on other sites More sharing options...
AnimeOfTheArts Posted January 29, 2015 Share Posted January 29, 2015 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 More sharing options...
Recommended Posts
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.