Hi there, so after running out of test item ID’s to modify into actual usable items, I decided to attempt to add my own item ID, and I was wondering if anyone had any success with doing so - mine has been… Limited to say the least.
(I’ll list the table edits at the end, hopefully someone will know what went wrong)
I attempted to add a new pair of black gloves under a unique ID, booted up the game all ready to add them to my inventory by console… Only to find that Henry was already wearing the gloves… And so was every single NPC.
After some testing I found that while the gloves did not appear in either my or the NPC’s inventory, they were automatically equipped as soon as any other armor piece was, and that they did not show up in the equipment slot… sort of like underwear.
Also curiously, the color tint changed somewhat arbitrarily depending on what other armor you had on, the gloves were brown with a brocade jacket on, but jet black with a black pourpoint.
I have a feeling that I’ve either missed an .xml file somewhere, the ID itself is used for some type of flagging, or I’ve just got some woefully incorrect value somewhere (something that references item_name?), the edits I made are as follows.
KingdomComeDeliverance/Localization/english_xml.pack/text_ui_items.xml
<Row><Cell>ui_nm_mdnt_g</Cell><Cell>Midnight Gloves</Cell><Cell>Midnight Gloves</Cell></Row>
<Row><Cell>ui_in_mdnt_g</Cell><Cell>Test item description.</Cell><Cell>Test item description.</Cell></Row>
KingdomComeDeliverance/Data/Tables.pak/item/armor.xml
<row armor_subtype_id="" armor_type_id="5" brightness="0.08" clothing2_id="" clothing_id="midnight-zzzz-test-clot-zzzzzzzzzzzz" color="8421504" color_hue="1" color_saturation="0.09" computer_name="DJANKES-DT" is_underwear="False" item_id="midnight-zzzz-test-item-zzzzzzzzzzzz" max_status="80" noise="0" slash_def="0.505" smash_def="0.202" stab_def="0.505" str_req="1" superfaction_id="" timestamp="14/09/2015 14:24" zone1_brightness="0.11" zone1_hue="0" zone1_saturation="1" zone2_brightness="1" zone2_hue="0" zone2_saturation="1" zone3_brightness="0.16" zone3_hue="0" zone3_saturation="0.21" />
KingdomComeDeliverance/Data/Tables.pak/item/clothing.xml
<row armor_archetype_id="45" clothing_id="midnight-zzzz-test-clot-zzzzzzzzzzzz" clothing_name="mdnt_gloves" computer_name="PFILCIK-DT" gender_id="0" influence_type="0" intersection_translucency_max="" intersection_translucency_min="" lod_persistence="1" material="s1_p2_l3_v002" model="s1_p2_l3_v003c" morph_target="#V_001" race_id="0" timestamp="28/02/2018 17:20" />
KingdomComeDeliverance/Data/Tables.pak/item/equippable_item.xml
<row charisma="20" conspicuousness="-0.92" item_id="midnight-zzzz-test-item-zzzzzzzzzzzz" rpg_buff_weight="0" social_class_id="1" visibility="-0.92" wealth_level="0" />
KingdomComeDeliverance/Data/Tables.pak/item/item.xml
<row item_category_id="4" item_id="midnight-zzzz-test-item-zzzzzzzzzzzz" item_name="mdnt_gloves" />
KingdomComeDeliverance/Data/Tables.pak/item/pickable_item.xml
<row entity_script="" item_id="midnight-zzzz-test-item-zzzzzzzzzzzz" material="" model="characters/humans/cloth/gloves_001" owner_fading_coef="0.02" price="9000" visibility_coef="1" weight="0.5" />
KingdomComeDeliverance/Data/Tables.pak/item/player_item.xml
<row icon_id="603" item_id="midnight-zzzz-test-item-zzzzzzzzzzzz" ui_info="ui_in_mdnt_g" ui_name="ui_nm_mdnt_g" />
Any help would be greatly appreciated!