I’m trying to create a simple mod for X4: Foundations that modifies the SPL M Neutron Gatling Mk2. The goal of my mod is to:
1. Remove the heat generation (set it to `0`).
2. Increase the weapon’s damage (e.g., from `43` to `100`).
I’ve managed to remove the heat generation successfully by editing the `.dat` file like this:
Code: Select all
<diff>
<replace sel="/macros/macro/properties/heat/@value">0</replace>
</diff>
I added the following line to the same `.dat` file to modify the damage:
Code: Select all
<diff>
<replace sel="/macros/macro/properties/damage/@value">100</replace>>
</diff>
The mod is structured correctly as far as I can tell, and the game is recognizing the mod since the heat modification works.
I’ve double-checked the path to the `damage` attribute in the original XML file, and it seems correct.
I’ve also tried using separate `<diff>` elements and even isolated the damage change on its own, but nothing seems to affect the damage value.
Questions:
Is there something wrong with the XML path I’m using for the damage attribute?
Could there be another factor or conflict preventing this change from taking effect?
Are there any other approaches I should try to successfully increase the damage?
I’d really appreciate any guidance or suggestions. Thanks in advance for your help!