Fancy_Fox_Pers Posted April 29, 2016 Share Posted April 29, 2016 (edited) Hi! My image for crafting a prefab in the crafting tab doesn't show correctly. Does anyone know why and how to fix it? It works with the first prefab (pencil), but not with the second one for some reason (it keeps on using a different image from the game) -- Make a pencil local Ingredient = GLOBAL.Ingredient local af_rec = AddRecipe("pencil_thibaud", {Ingredient("charcoal", 8), Ingredient("log", 2), Ingredient("nightmarefuel", 4)}, GLOBAL.RECIPETABS.DRAWINGS, GLOBAL.TECH.NONE, nil, nil, nil, nil, "paperdrawing_builder", "images/inventoryimages/pencil_thibaud.xml", "pencil_thibaud.tex") af_rec.sortkey = -4 -- Make a Wurm local Ingredient = GLOBAL.Ingredient local af_rec = AddRecipe("wurm_thibaud", {Ingredient("papyrus", 4), Ingredient("gunpowder", 4)}, GLOBAL.RECIPETABS.DRAWINGS, GLOBAL.TECH.NONE, nil, nil, nil, nil, "paperdrawing_builder","images/inventoryimages/wurm.xml", "wurm.tex") GLOBAL.STRINGS.RECIPE_DESC.WURM_THIBAUD = "Draw a wurm!" af_rec.sortkey = -3 And I do have the tex and xml files named "wurm" in inventory images along with pencil_thibaud's Edited April 29, 2016 by Thibooms Link to comment Share on other sites More sharing options...
Muche Posted April 29, 2016 Share Posted April 29, 2016 Hmm, wurm.xml atlas is correct in that it references wurm.tex and is not just renamed from previous filename, right? Are the images specified in mod's assets? Link to comment Share on other sites More sharing options...
Fancy_Fox_Pers Posted April 29, 2016 Author Share Posted April 29, 2016 (edited) 3 minutes ago, Muche said: Hmm, wurm.xml atlas is correct in that it references wurm.tex and is not just renamed from previous filename, right? Are the images specified in mod's assets? Not but neither are the pencil's .tex and .xml and everything is in the modmain (FYI) Edited April 29, 2016 by Thibooms Link to comment Share on other sites More sharing options...
Muche Posted April 29, 2016 Share Posted April 29, 2016 (edited) Is the pencil an inventoryitem that has pencil.tex / .xml in the its prefab's assets? Are wurm.tex / .xml in wurm_thibaud's assets? Edited April 29, 2016 by Muche Link to comment Share on other sites More sharing options...
Fancy_Fox_Pers Posted April 29, 2016 Author Share Posted April 29, 2016 8 minutes ago, Muche said: Is the pencil an inventoryitem that has pencil.tex / .xml in the its prefab's assets? Are wurm.tex / .xml in wurm_thibaud's assets? No they are not :v. So do I add them in the modmain the same way I did for the pencil? Link to comment Share on other sites More sharing options...
Muche Posted April 29, 2016 Share Posted April 29, 2016 Yeah add them into mod's assets. 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