Jump to content

Recommended Posts

The item im attempting to create looks totally normal when on the ground but in the crafting section (its in survival) it takes the icon of the item below it and in the inventory its completely invisible. In the inventory it doesnt say the "<right mouse button> Heal" message or the inspect message when you hold alt, but you can still do both of its respective functions- just without the little message. I cant find any sort of documentation for the modding on this game and I have found absolutely zero helpful tutorials when it comes to making an item in this game so if any of you modding gods could bestow any sort of wisdom pertaining to my issue I would be forever thankful.

Healer.zip

I have the mod linked in the post, it's very small cause it only has the one item in it.

Assets = 
{
	Asset("ATLAS", "images/inventoryimages/petalsalve.xml"),
}	

Issue is that you didn't include the image in the asset table:

Assets = 
{
	Asset("IMAGE", "images/inventoryimages/petalsalve.tex" ),
	Asset("ATLAS", "images/inventoryimages/petalsalve.xml"),
}	

In addition you'll need to specify the .tex being used in your recipe (assuming it wasn't working either)

local petalsalve = AddRecipe("petalsalve", 
{
	Ingredient("petals", 4),
	Ingredient("rocks", 1)
}, 
GLOBAL.RECIPETABS.SURVIVAL, TECH.SCIENCE_ONE, nil, nil, nil, nil, nil, "images/inventoryimages/petalsalve.xml", "petalsalve.tex")

Let me know if that solved your issue.

1 hour ago, Leonardo Cox said:

Assets = 
{
	Asset("ATLAS", "images/inventoryimages/petalsalve.xml"),
}	

Issue is that you didn't include the image in the asset table:


Assets = 
{
	Asset("IMAGE", "images/inventoryimages/petalsalve.tex" ),
	Asset("ATLAS", "images/inventoryimages/petalsalve.xml"),
}	

In addition you'll need to specify the .tex being used in your recipe (assuming it wasn't working either)


local petalsalve = AddRecipe("petalsalve", 
{
	Ingredient("petals", 4),
	Ingredient("rocks", 1)
}, 
GLOBAL.RECIPETABS.SURVIVAL, TECH.SCIENCE_ONE, nil, nil, nil, nil, nil, "images/inventoryimages/petalsalve.xml", "petalsalve.tex")

Let me know if that solved your issue.

Sort of; when your'e crafting it the crafting icon changes to an item from the last tab you clicked on (i.e. if you click on tools and then survival, it becomes a hammer/science it becomes a think tank/dress it becomes rabbit earmuffs) The inventory image is still blank.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...