BakaSchwarz Posted July 4, 2017 Share Posted July 4, 2017 I am implementing 3 items. One of them is part of the crafting recipe of the other two. My problem is that the image of this one item does not show inside the recipe (see attached image). I set the graphics inside the modmain.lua of my mod: local RECIPETABS = GLOBAL.RECIPETABS local TECH = GLOBAL.TECH local require = GLOBAL.require Assets = { Asset("ATLAS", "images/inventoryimages/voidgem_normal.xml"), Asset("IMAGE", "images/inventoryimages/voidgem_normal.tex"), Asset("ATLAS", "images/inventoryimages/voidgem_refined.xml"), Asset("IMAGE", "images/inventoryimages/voidgem_refined.tex"), Asset("ATLAS", "images/inventoryimages/voidgem_purified.xml"), Asset("IMAGE", "images/inventoryimages/voidgem_purified.tex"), } PrefabFiles = { "voidgem", } AddRecipe("voidgem_normal", {Ingredient("purplegem", 1), Ingredient("nightmarefuel", 2)}, RECIPETABS.MAGIC, TECH.SCIENCE_ONE, nil, nil, nil, nil, nil, "images/inventoryimages/voidgem_normal.xml") AddRecipe("voidgem_refined", {Ingredient("voidgem_normal", 1), Ingredient("goldnugget", 20)}, RECIPETABS.MAGIC, TECH.SCIENCE_ONE, nil, nil, nil, nil, nil, "images/inventoryimages/voidgem_refined.xml") AddRecipe("voidgem_purified", {Ingredient("voidgem_normal", 1), Ingredient("opalpreciousgem", 1)}, RECIPETABS.MAGIC, TECH.SCIENCE_ONE, nil, nil, nil, nil, nil, "images/inventoryimages/voidgem_purified.xml") When looking at the DST Log, i get the following output after hovering over the recipe: [00:10:26]: WARNING! Could not find region 'FROMNUM' from atlas 'images/inventoryimages.xml'. Is the region specified in the atlas? [00:10:26]: Looking for default texture '' from atlas 'images/inventoryimages.xml'. [00:10:26]: Error Looking for default texture in from atlas 'images/inventoryimages.xml'. [00:10:26]: WARNING! Could not find region 'FROMNUM' from atlas 'images/inventoryimages.xml'. Is the region specified in the atlas? [00:10:26]: Looking for default texture '' from atlas 'images/inventoryimages.xml'. [00:10:26]: Error Looking for default texture in from atlas 'images/inventoryimages.xml'. [00:10:27]: WARNING! Could not find region 'FROMNUM' from atlas 'images/inventoryimages.xml'. Is the region specified in the atlas? [00:10:27]: Looking for default texture '' from atlas 'images/inventoryimages.xml'. [00:10:27]: Error Looking for default texture in from atlas 'images/inventoryimages.xml'. What am i doing wrong? I created the xml and tex files from a normal png using TexCreator with default settings. Help is greatly appreciated since this mod is otherwise done... thanks in advance! Link to comment Share on other sites More sharing options...
Lumina Posted July 4, 2017 Share Posted July 4, 2017 local my_prefab = AddRecipe("my_prefab", {Ingredient("greengem", 1), Ingredient("twigs", 5), Ingredient("custom_prefab", 2,"images/inventoryimages/custom_prefab_inventoryimage.xml", "custom_prefab_inventoryimage") }, RECIPETABS.MAGIC, TECH.MAGIC_THREE, nil, nil, nil, nil, nil, "images/inventoryimages/my_prefab_inventoryimage.xml", "my_prefab_inventoryimage.tex" ) Try something like this. Link to comment Share on other sites More sharing options...
BakaSchwarz Posted July 4, 2017 Author Share Posted July 4, 2017 That helped! Thanks a lot! Link to comment Share on other sites More sharing options...
Lumina Posted July 4, 2017 Share Posted July 4, 2017 Glad to hear it Link to comment 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