Jump to content
zeeb

[SOLVED] Custom item icons not working

Recommended Posts

Can not seem to get my custom items icons to work.

I've put the icons in "C:\Users\<username>\Zomboid\mods\<modname>\media\textures".
I've added "Item_" before the icon names. (Example: Item_Test.png, didn't work without it either)
I've made the pictures indexed and 32x32. (Didn't work without indexed either)
I've added "Icon = Test," to the custom item. (Didn't work with Test.png either)
I've even tried adding the icons to "...\<modname>" and write a .lua with the code:

ModIcons = {}

function ModIcons.loadTextures()
    getTexture("Item_Test.png");
	getTexture("Item_Test2.png");
	getTexture("Item_Test3.png");
	getTexture("Item_Test4.png");
	getTexture("Item_Test5.png");
	getTexture("Item_Test6.png");	
end

Events.OnGameBoot.Add(ModIcons.loadTextures);

(But this method didn't seem to work)


Is the methods I'm using outdated?
Help would be much appreciated!
/Z


SOLVED:

The items and crafting needs to be in the same .txt

Edited by zeeb

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...