Kzisor Posted February 3, 2015 Share Posted February 3, 2015 (edited) I see now the issue, working on a fix for it. It seems to be with how you added the recipe. You cannot add the recipe in the prefab of the file. It needs to be added in the modmain.lua file. Here is the code which make it work. modmain.luaAssets = {Asset("IMAGE", "images/inventoryimages/wand.tex"),Asset("ATLAS", "images/inventoryimages/wand.xml" ),} local wand = Recipe("wand", {Ingredient("twigs", 1)}, GLOBAL.RECIPETABS.WAR, GLOBAL.TECH.NONE)wand.atlas = "images/inventoryimages/wand.xml" Remove these two assets from your wand.lua and remove the recipe from wand.lua as well. It will work. Now you should be able to alter the wand.tex and wand.xml to your desires. Edited February 3, 2015 by Kzisor 1 Link to comment Share on other sites More sharing options...
mikey99222 Posted February 3, 2015 Author Share Posted February 3, 2015 (edited) I see now the issue, working on a fix for it. It seems to be with how you added the recipe. You cannot add the recipe in the prefab of the file. It needs to be added in the modmain.lua file. Here is the code which make it work. modmain.luaAssets = {Asset("IMAGE", "images/inventoryimages/wand.tex"),Asset("ATLAS", "images/inventoryimages/wand.xml" ),} local wand = Recipe("wand", {Ingredient("twigs", 1)}, GLOBAL.RECIPETABS.WAR, GLOBAL.TECH.NONE)wand.atlas = "images/inventoryimages/wand.xml" Remove these two assets from your wand.lua and remove the recipe from wand.lua as well. It will work. Now you should be able to alter the wand.tex and wand.xml to your desires. thank you sooooo much, it works, (it is invisible when held but hey!) *i think i can fix this, i will add ALL assets from wand.lua to the modmain.lua* Edited February 3, 2015 by mikey99222 1 Link to comment Share on other sites More sharing options...
mikey99222 Posted February 3, 2015 Author Share Posted February 3, 2015 thank you sooooo much, it works, (it is invisible when held but hey!) *i think i can fix this, i will add ALL assets from wand.lua to the modmain.lua* i have another broken mod (http://forums.kleientertainment.com/topic/50008-help-dont-starve-together-character-mod-help-needed/) but i think i will try to fix, then i will learn, then i can help others too! 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