Berany Posted November 7, 2017 Share Posted November 7, 2017 (edited) Hi I created character mod. I added the character and items(some book). But, They are transparent. I'll show you my .lua files, if you want Please help me... Thank you, Edited November 7, 2017 by Berany Link to comment Share on other sites More sharing options...
JohnWatson Posted November 7, 2017 Share Posted November 7, 2017 https://dont-starve.surge.sh Link to comment Share on other sites More sharing options...
Lumina Posted November 7, 2017 Share Posted November 7, 2017 (edited) Item on inventory are transparents when you didn't created a image tex file (64*64 usually), or made mistakes in your path/name/something. Items on ground and character are usually transparents when you made mistake with spriter, or made mistakes in your path/name/something. Also, yes, having the mod could help, because people can only guess without it. Edited November 7, 2017 by Lumina Link to comment Share on other sites More sharing options...
Berany Posted November 7, 2017 Author Share Posted November 7, 2017 Thanks for the reply. But I don't know yet what is wrong. I attached the file. I would really appreciate it if you could see what was wrong. Thank you again miko.zip Link to comment Share on other sites More sharing options...
Lumina Posted November 8, 2017 Share Posted November 8, 2017 You have Asset("ANIM", "anim/book_cold.zip"), But you have : inst.AnimState:SetBank("books") inst.AnimState:SetBuild("books") inst.AnimState:PlayAnimation(def.name) Replace the bank, build and anim by the correct names. Do the same for others books. For image in inventory, do : inst:AddComponent("inventoryitem") inst.components.inventoryitem.imagename = "myitem" inst.components.inventoryitem.atlasname = "images/inventoryimages/myitem.xml" (First line should already exist). 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