Jump to content

Custom Icon not working


Sh4mpo

Recommended Posts

Hi all

 

the title pretty much explains it.

What did i do:

I copied the vanilla auger and gave it a new ID and name, I tweaked the amount you get off everything up.

Then i went and tried to find out how to add a custom icon ( its actually a copy of the normal auger ) i found a picture online from it and made it 116 x 80 and added it here: main folder/Mods/Icons

 

Item.xml from the edited auger:

 

<item id="2009" name="SuperAuger">

<property name="Meshfile" value="Items/Tools/augerPrefab"/>

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

<property name="CustomIconTint" value="#FF0000"/>

<property name="Material" value="metal"/>

<property name="RepairTools" value="repairKit"/>

<property name="HoldType" value="20"/>

<property name="SoundIdle" value="Auger_Idle"/>

<property name="Particles_muzzle_smoke" value="nozzlesmoke_chainsaw"/>

<property class="Parts">

<property name="Stock" value="partsAuger_parts"/>

<property name="Receiver" value="smallEngine"/>

<property name="Pump" value="partsHandlebars"/> <!-- DegradationRate -->

<property name="Barrel" value="partsAuger_blade"/>

</property>

<property class="Action0"> <!-- AttackAction -->

<property name="Class" value="Ranged"/>

<property name="Auto_fire" value="true"/>

<property name="Range" value="12"/>

<property name="Hitmask_override" value="Melee"/>

<property name="Delay" value="0.2"/>

<property name="Crosshair_min_distance" value="5"/>

<property name="Crosshair_max_distance" value="30"/>

<property name="Magazine_size" value="2000"/>

<property name="Single_magazine_usage" value="false"/>

<property name="Magazine_items" value="gasCan"/>

<property name="Magazine_item_ray_counts" value="1"/>

<property name="Magazine_item_ray_spreads" value="0"/>

<property name="Bullet_material" value="metal"/>

<property name="Reload_time" value="0.1"/>

<property name="Sound_start" value="Auger_Fire_Start"/>

<property name="Sound_repeat" value="Weapons/Motorized/Auger/auger_fire_lp"/>

<property name="Sound_end" value="Weapons/Motorized/Auger/auger_fire_end"/>

<property name="Sound_empty" value="auger_empty"/>

<property name="Sound_reload" value="Auger_Reload"/>

<property name="Horde_meter_rate" value="0.275"/>

<property name="Horde_meter_distance" value="20"/>

<property name="Particles_muzzle_smoke" value="nozzlesmoke_chainsaw"/>

<property name="DamageBonus.wood" value="0.25"/>

<property name="DamageBonus.head" value="3"/>

<property name="DamageBonus.glass" value="1"/>

<property name="SupportHarvesting" value="true"/>

<property name="UseMeleeCrosshair" value="true"/>

<property name="ToolCategory.harvestingTools" value="20" param1="1"/>

<property name="ToolCategory.Butcher" value="0" param1="20"/>

<property name="ActionExp" value="1"/>

</property>

<property name="Group" value="Tools/Traps"/>

<property name="ActionSkillGroup" value="Mining Tools"/>

<property name="CraftingSkillGroup" value="craftSkillScience"/>

<property name="RepairExpMultiplier" value="10.8"/>

</item>

 

I hope someone can tell me what i'm doing wrong, so far i haven't found anything what i could've done wrong so Hope someone else does find the issue

 

Thnx in advance =D

 

Sh4mpo

Link to comment
Share on other sites

Mods / PRO / ItemIcons

Mods / PRO / ModInfo.xml

Inside this ItemIcons folder you place your icons 116x80

 

Example:

ModInfo.xml

 

 

<?xml version="1.0" encoding="UTF-8" ?><xml>

 

<ModInfo>

 

<Name value="PRO" />

 

<Description value="PRO" />

 

<Author value="Proteus (PRO Team)" />

 

<Version value="v5.2" />

 

<Website value="" />

 

</ModInfo>

 

</xml>

Link to comment
Share on other sites

If you are going to just use the auger icon and tint it, then you don’t need another picture. What you need to do is change your CustomIcon value to auger. That line will always be the item you are using the icon of.

 

If you are truly going to do custom icons, then do as Proteus said. Also make sure your icon is named properly (it is case sensitive) and is a PNG file

Link to comment
Share on other sites

If you are going to just use the auger icon and tint it, then you don’t need another picture. What you need to do is change your CustomIcon value to auger. That line will always be the item you are using the icon of.

 

If you are truly going to do custom icons, then do as Proteus said. Also make sure your icon is named properly (it is case sensitive) and is a PNG file

 

thanks i will try this first

Link to comment
Share on other sites

yes that will work as you said, but if you want to make new items with NEW icons, you WILL need a custom icon folder as what Proteus said, and will have to be exactly 116x80 or they wont show

 

And worth noting on that: Every client that connects to your server will need that ItemIcons MOD installed for showing that custom icon.

In case of a colortint that's not nescesary and the auger can be 100% serverside.

 

Cheers

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...