Jump to content

Why cant i see the vanilla icons on modded weapons?


Solomon

Recommended Posts

Im making some modlet weapon mod for the basics i copied over literally anything from the generic pistol, renamed it, modified a few stats and created a new ammo for it.

Theres only one problem, it doesnt have any icon just the empty square where i can select it.

 

Why does this happen and how can i fix it?

Link to comment
Share on other sites

Need to define a icon. The default items are given icons based on their names. Modded items need to have the icon defined. 

<property name="CustomIcon" value="gunHandgunT1Pistol"/>

That should work. You can make your icon look different by adding an icon tint using hex color values.

<property name="CustomIconTint" value="ff9f9f"/>

Or you can make a custom icon of your own, but that's a lot more work. 

Link to comment
Share on other sites

23 hours ago, AnsontheToad said:

Need to define a icon. The default items are given icons based on their names. Modded items need to have the icon defined. 


<property name="CustomIcon" value="gunHandgunT1Pistol"/>

That should work. You can make your icon look different by adding an icon tint using hex color values.


<property name="CustomIconTint" value="ff9f9f"/>

Or you can make a custom icon of your own, but that's a lot more work. 

Thank you but i have a question regarding to this fix, it still uses the vanilla icons right? So the mod is still serverside only?

Link to comment
Share on other sites

3 hours ago, bdubyah said:

Yeah, it'll use the vanilla icon still. If you look in your game folder, there is an ItemIcons folder with all of them in it. You can reference any of them you want and still stay serverside only. 

Okay, thanks for your help!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...