Subject4056 Posted February 9, 2023 Share Posted February 9, 2023 I'm trying to add a new item to the game. I've got the item defined as: <item name="resource_hand_tools"> <property name="HoldType" value="45"/> <property name="DescriptionKey" value="resource_hand_toolsDesc"/> <property name="CustomIcon" value="resourceHandTools"/> <property name="Meshfile" value="#Other/Items?Misc/parcelPrefab.prefab"/> <property name="DropMeshFile" value="#Other/Items?Misc/sack_droppedPrefab.prefab"/> <property name="Material" value="Mmetal"/> <property name="StackNumber" value="1"/> <property name="EconomicValue" value="0"/> <property name="EconomicBundleSize" value="1"/> <property name="SellableToTrader" value="False"/> <property name="CustomIconTint" value="FFFFFF"/> <property name="Group" value="Resources"/> </item> And my mod structured as: Directory: C:\Program Files (x86)\Steam\steamapps\common\7 Days To Die\Mods\Eureka Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 1/28/2023 8:49 PM Config d----- 2/9/2023 10:48 AM ItemIcons d----- 2/4/2023 11:36 AM src -a---- 1/11/2023 7:36 PM 287 ModInfo.xml Directory: C:\Program Files (x86)\Steam\steamapps\common\7 Days To Die\Mods\Eureka\Config Mode LastWriteTime Length Name ---- ------------- ------ ---- -a---- 1/13/2023 9:27 PM 15 blocks.xml -a---- 1/13/2023 11:47 PM 676 buffs.xml -a---- 2/5/2023 10:44 AM 3655 entityclasses.xml -a---- 2/9/2023 10:52 AM 140006 items.xml -a---- 2/9/2023 10:52 AM 7043 Localization.txt -a---- 2/9/2023 10:52 AM 541 loot.xml -a---- 2/9/2023 10:52 AM 3407 progression.xml -a---- 2/9/2023 10:52 AM 8248 recipes.xml Directory: C:\Program Files (x86)\Steam\steamapps\common\7 Days To Die\Mods\Eureka\ItemIcons Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 2/5/2023 6:10 PM originals -a---- 1/15/2023 10:16 AM 100 ATTRIBUTIONS.txt -a---- 2/5/2023 6:12 PM 40085 masonry.png -a---- 1/15/2023 10:14 AM 3243 metal_file.png -a---- 2/9/2023 10:48 AM 41346 resourceHandTools.png Directory: C:\Program Files (x86)\Steam\steamapps\common\7 Days To Die\Mods\Eureka\ItemIcons\originals Mode LastWriteTime Length Name ---- ------------- ------ ---- -a---- 2/5/2023 10:49 AM 954692 hand_tools_orig.jpg -a---- 2/5/2023 11:10 AM 118583 hand_tools_orig.pdn -a---- 2/5/2023 6:10 PM 1932545 masonry.pdn -a---- 2/5/2023 6:08 PM 693972 masonry_trowel.jpeg The item works as I intend in terms of recipes, showing up in loot, etc., But the inventory icon is blank. I have tried not using CustomIcon/CustomIconTint and the effect is the same. Does anyone have any tips on how to resolve this issue? Attached the icon file for inspection, it's a 160x160 PNG with transparent background which AFAICT is the same as all the vanilla icons. Link to comment Share on other sites More sharing options...
Gouki Posted February 9, 2023 Share Posted February 9, 2023 50 minutes ago, Subject4056 said: I'm trying to add a new item to the game. I've got the item defined as: <item name="resource_hand_tools"> <property name="HoldType" value="45"/> <property name="DescriptionKey" value="resource_hand_toolsDesc"/> <property name="CustomIcon" value="resourceHandTools"/> <property name="Meshfile" value="#Other/Items?Misc/parcelPrefab.prefab"/> <property name="DropMeshFile" value="#Other/Items?Misc/sack_droppedPrefab.prefab"/> <property name="Material" value="Mmetal"/> <property name="StackNumber" value="1"/> <property name="EconomicValue" value="0"/> <property name="EconomicBundleSize" value="1"/> <property name="SellableToTrader" value="False"/> <property name="CustomIconTint" value="FFFFFF"/> <property name="Group" value="Resources"/> </item> And my mod structured as: Directory: C:\Program Files (x86)\Steam\steamapps\common\7 Days To Die\Mods\Eureka Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 1/28/2023 8:49 PM Config d----- 2/9/2023 10:48 AM ItemIcons d----- 2/4/2023 11:36 AM src -a---- 1/11/2023 7:36 PM 287 ModInfo.xml Directory: C:\Program Files (x86)\Steam\steamapps\common\7 Days To Die\Mods\Eureka\Config Mode LastWriteTime Length Name ---- ------------- ------ ---- -a---- 1/13/2023 9:27 PM 15 blocks.xml -a---- 1/13/2023 11:47 PM 676 buffs.xml -a---- 2/5/2023 10:44 AM 3655 entityclasses.xml -a---- 2/9/2023 10:52 AM 140006 items.xml -a---- 2/9/2023 10:52 AM 7043 Localization.txt -a---- 2/9/2023 10:52 AM 541 loot.xml -a---- 2/9/2023 10:52 AM 3407 progression.xml -a---- 2/9/2023 10:52 AM 8248 recipes.xml Directory: C:\Program Files (x86)\Steam\steamapps\common\7 Days To Die\Mods\Eureka\ItemIcons Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 2/5/2023 6:10 PM originals -a---- 1/15/2023 10:16 AM 100 ATTRIBUTIONS.txt -a---- 2/5/2023 6:12 PM 40085 masonry.png -a---- 1/15/2023 10:14 AM 3243 metal_file.png -a---- 2/9/2023 10:48 AM 41346 resourceHandTools.png Directory: C:\Program Files (x86)\Steam\steamapps\common\7 Days To Die\Mods\Eureka\ItemIcons\originals Mode LastWriteTime Length Name ---- ------------- ------ ---- -a---- 2/5/2023 10:49 AM 954692 hand_tools_orig.jpg -a---- 2/5/2023 11:10 AM 118583 hand_tools_orig.pdn -a---- 2/5/2023 6:10 PM 1932545 masonry.pdn -a---- 2/5/2023 6:08 PM 693972 masonry_trowel.jpeg The item works as I intend in terms of recipes, showing up in loot, etc., But the inventory icon is blank. I have tried not using CustomIcon/CustomIconTint and the effect is the same. Does anyone have any tips on how to resolve this issue? Attached the icon file for inspection, it's a 160x160 PNG with transparent background which AFAICT is the same as all the vanilla icons. Hi Subject4056 The folder you put is wrong and you need to add one more. The folders for the icons is: UIAtlases - ItemIconAtlas, in the second folder is where you put your images of your mod (png format and size 160x160), that's why it doesn't show you anything. Regards Link to comment Share on other sites More sharing options...
Evil_Geoff Posted February 9, 2023 Share Posted February 9, 2023 File path in Mod Launcher for the item icons I added for my modifications to The Wasteland: C:\7D2D\Custom\MyMods\7_Days_to_Fallout\Mods\Xtended_Wasteland_2_0\UIAtlases\ItemIconAtlas Default path would look like: C:\Users\username\AppData\Roaming\7DaysToDie\Mods\Xtended_Wasteland_2_0\UIAtlases\ItemIconAtlas Link to comment Share on other sites More sharing options...
Subject4056 Posted February 10, 2023 Author Share Posted February 10, 2023 Changing the path to <MOD>/UIAtlases/ItemIconAtlas worked, thanks Gouki and Evil_Geoff! I've had a look at the tutorials forum but didn't see any good introduction on adding custom icons, any you could recommend? 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