• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Issues with Modding Nailgun

REDDEV1L24

New member
So I'm making a simple mod to improve the Nailgun slightly with this code:

<configs>
<!-- Nailgun Modifications -->
<set xpath="/items/item[@name='meleeToolRepairT3Nailgun']/property[@class='Action1']/property[@name='Repair_amount']/@value">2000</set>
<set xpath="/items/item[@name='meleeToolRepairT3Nailgun']/property[@class='Action1']/property[@name='Delay']/@value">.25</set>
<set xpath="/items/item[@name='meleeToolRepairT3Nailgun']/effect_group[@name='meleeToolRepairT3Nailgun']/passive_effect[@name='MaxRange']/@value">20</set>
</configs>



But for some reason, none of the values are taking. Hard to tell if delay is working or not but the range and repair_amount aren't changing.

 
So I'm making a simple mod to improve the Nailgun slightly with this code:

<configs>
<!-- Nailgun Modifications -->
<set xpath="/items/item[@name='meleeToolRepairT3Nailgun']/property[@class='Action1']/property[@name='Repair_amount']/@value">2000</set>
<set xpath="/items/item[@name='meleeToolRepairT3Nailgun']/property[@class='Action1']/property[@name='Delay']/@value">.25</set>
<set xpath="/items/item[@name='meleeToolRepairT3Nailgun']/effect_group[@name='meleeToolRepairT3Nailgun']/passive_effect[@name='MaxRange']/@value">20</set>
</configs>



But for some reason, none of the values are taking. Hard to tell if delay is working or not but the range and repair_amount aren't changing.


Are you getting any error messages in console related to this modlet?

 
No, I'm not getting anything in the logs about mods at all.


Check the configsDump folder and look in the items.xml file.  That is the file the game creates after all mods are loaded in so you can verify that everything is changing as it should.  If everything is working as intended in your mod, you should see the changes (easiest thing to do is search for your mod name in the file)

Sorry for the generic / general questions.  I am at work right now so I can't pull up the specific items file to root cause more specifically.

 
BFT2020 said:
Check the configsDump folder and look in the items.xml file.  That is the file the game creates after all mods are loaded in so you can verify that everything is changing as it should.  If everything is working as intended in your mod, you should see the changes (easiest thing to do is search for your mod name in the file)

Sorry for the generic / general questions.  I am at work right now so I can't pull up the specific items file to root cause more specifically.
No worries, that was actually very helpful. i didn't realise it actually created and dumped new config files after the mods. That is helpful. So, it is actually saying that the things have been updated but there is actually a separate property for the repair display value which was still set to 1000. Thanks for the help. That will make my modding a lot easier now.

 
Back
Top