EmielRegis Posted March 1, 2014 Share Posted March 1, 2014 (edited) Hello. I made few custom items, they all have own ground, inventory and crafting images. However when my new item is ingredient of another item hes image is not shown in needed to craft items. Anyone know why and how to fix it? Edited March 1, 2014 by EmielRegis Link to comment https://forums.kleientertainment.com/forums/topic/32056-recipe-image-problem/ Share on other sites More sharing options...
EmielRegis Posted March 3, 2014 Author Share Posted March 3, 2014 (edited) Anyone? Edited March 3, 2014 by EmielRegis Link to comment https://forums.kleientertainment.com/forums/topic/32056-recipe-image-problem/#findComment-422875 Share on other sites More sharing options...
NikMik Posted March 3, 2014 Share Posted March 3, 2014 (edited) local prefabname = Ingredient( "prefabname", 1) prefabname.atlas = "images/inventoryimages/prefabname.xml" above the recipe - changing "prefabname" to the name of the prefab you want to act as the ingredient. Here's an example using my mod-in-progress: local maddagger = Ingredient( "maddagger", 1) maddagger.atlas = "images/inventoryimages/maddagger.xml" local madscytherecipe = GLOBAL.Recipe( ("madscythe"), {maddagger, Ingredient("nightmarefuel", 9), Ingredient("marble", 8)}, RECIPETABS.MADNESS, {MAGIC = 0} ) madscytherecipe.atlas = "images/inventoryimages/madscythe.xml" Edited March 3, 2014 by Mr. Tiddles Link to comment https://forums.kleientertainment.com/forums/topic/32056-recipe-image-problem/#findComment-422878 Share on other sites More sharing options...
EmielRegis Posted March 3, 2014 Author Share Posted March 3, 2014 (edited) Great thx ^^ Edited March 3, 2014 by EmielRegis Link to comment https://forums.kleientertainment.com/forums/topic/32056-recipe-image-problem/#findComment-422908 Share on other sites More sharing options...
MidrealmDM Posted April 7, 2014 Share Posted April 7, 2014 (edited) local prefabname = Ingredient( "prefabname", 1)prefabname.atlas = "images/inventoryimages/prefabname.xml" above the recipe - changing "prefabname" to the name of the prefab you want to act as the ingredient. Thanks for the post, it was exactly what I needed as well. Does anyone know how to put a description of the item in the crafting tab? Edited April 7, 2014 by MidrealmDM Link to comment https://forums.kleientertainment.com/forums/topic/32056-recipe-image-problem/#findComment-446564 Share on other sites More sharing options...
DevilXD Posted April 7, 2014 Share Posted April 7, 2014 GLOBAL.STRINGS.RECIPE_DESC.PREFAB_NAME = "Recipe desc." Link to comment https://forums.kleientertainment.com/forums/topic/32056-recipe-image-problem/#findComment-446715 Share on other sites More sharing options...
MidrealmDM Posted April 8, 2014 Share Posted April 8, 2014 GLOBAL.STRINGS.RECIPE_DESC.PREFAB_NAME = "Recipe desc." Perfect - thanks that worked. Link to comment https://forums.kleientertainment.com/forums/topic/32056-recipe-image-problem/#findComment-447898 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now