Quasimiyao
New member
Hi all, I could use some help with a modlet I am trying to put together. Trying to make a 50 caliber barrel mod for the huntingrifle. Still learning to work with xml files and xpath, and there's a few things I havent worked out yet
I got the barrelmod, the recipe for it, the schematic and also the learnable schematic to learn the blueprint based on Sols learnable schematics working, and using the 50 cal ammo from GG2015's turret mod since I had that installed. Will make my own when I get it working tho.
Problem I am having is getting the rifle to accept the ammo after installing the barrel. This is the code I tried using, based on the barrelextender:
I also tried just switching the ammotype of the rifle to see how to target teh Magazine_items property, but I am not sure how to get to anything under the property class=Action0
I tried switching around @class and @name, but it wont apply that part.
Any help will be much appreciated
EDIT: Seems to be a problem with the ammo itself, added it to the rifle directly in the main xml, and that didnt work either. So will look at adding my own ammo and recipe for it and see where that gets me
EDIT2: Sorry about the lack of title for the thread, tired.. and cant edit title apparently

I got the barrelmod, the recipe for it, the schematic and also the learnable schematic to learn the blueprint based on Sols learnable schematics working, and using the 50 cal ammo from GG2015's turret mod since I had that installed. Will make my own when I get it working tho.
Problem I am having is getting the rifle to accept the ammo after installing the barrel. This is the code I tried using, based on the barrelextender:
Code:
<append xpath="/item_modifiers">
<item_modifier name="modGun50calBarrel" installable_tags="barrelAttachments" blocked_tags="revolver,flaredBarrel" modifier_tags="barrelAttachment" type="attachment">
<property name="Stacknumber" value="1"/>
<item_property_overrides name="gunHuntingRifle">
<effect_group tiered="false">
<passive_effect name="DamageFalloffRange" operation="perc_add" value=".4"/>
<passive_effect name="MaxRange" operation="perc_add" value=".4"/>
<passive_effect name="KickDegreesVertical" operation="perc_add" value="0.12"/>
<passive_effect name="KickDegreesHorizontal" operation="perc_add" value="0.1"/>
<passive_effect name="EntityDamage" operation="perc_add" value="1"/>
</effect_group>
<property class="Action0">
<property name="Magazine_items" value="50 Caliber Ammo"/>
</property>
</item_property_overrides>
<property name="PickupJournalEntry" value="augmentGunsTip"/>
Code:
<configs>
<set xpath="items/item[@name='gunhuntingrifle']/property[@name='Action0']/property[name='Magazine_items']/@value">50 Caliber Ammo</set>
</configs>
Any help will be much appreciated

EDIT: Seems to be a problem with the ammo itself, added it to the rifle directly in the main xml, and that didnt work either. So will look at adding my own ammo and recipe for it and see where that gets me

EDIT2: Sorry about the lack of title for the thread, tired.. and cant edit title apparently
Last edited by a moderator: