Need for guide!! how to modify damage of Asgard main battery?

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

ygdtrupt25
Posts: 2
Joined: Sat, 24. Aug 24, 20:53
x4

Need for guide!! how to modify damage of Asgard main battery?

Post by ygdtrupt25 »

I want to decrease the damage of Asgard maingun, its too overwhelm...
I found the file
\assets\fx\weaponfx\macros\bullet_atf_xl_beam_01_mk1_macro.xml

Code: Select all

<macros>
  <macro name="bullet_atf_xl_beam_01_mk1_macro" class="bullet">
    <component ref="bullet_atf_xl_beam_01_mk1" />
    <properties>
      <bullet speed="2.997925e+08" lifetime="7" range="14000" amount="1" barrelamount="1" icon="weapon_beam_mk1" maxhits="1" ricochet="0" scale="1" attach="1" />
      <heat value="3460" />
      <reload time="7.3" />
      <damage value="330426" repair="0" />
      <effects>
        <impact ref="impact_ter_xl_laser_01_mk1" inside="impact_ter_xl_laser_01_mk1_inside" />
        <bigobjectimpact ref="impact_ter_xl_laser_01_mk1_bigobject" inside="impact_ter_xl_laser_01_mk1_bigobject_inside" />
      </effects>
      <sounds>
        <firing ref="weapon_atf_xl_battleship_01_mk1_loop" />
      </sounds>
      <weapon system="weapon_standard" />
    </properties>
  </macro>
</macros>
I tried to modify damage value in this file, but didn't work.
seems beam weapon is different.
how to change damage of beam weapon?
appreciate for help.
Alan Phipps
Moderator (English)
Moderator (English)
Posts: 31738
Joined: Fri, 16. Apr 04, 19:21
x4

Re: Need for guide!! how to modify damage of Asgard main battery?

Post by Alan Phipps »

If you wanted to try reducing the damage without resorting to 3rd party modding/edits, you could try rolling one of two Enhanced Quality (blue) in-game mods for an effect you might like:

Othotsk: Weapon Cooling: Bonus: 21.60% to 27.10% + Weapon Damage: Malus: -10.00% to -5.00%

Benguela: Weapon Cooling: Bonus: 19.90% to 30.50% + Weapon Damage: Malus: -13.00% to -4.10% + Weapon Reload: Bonus: -31.80% to 100.00%
A dog has a master; a cat has domestic staff.
sprIder
Posts: 135
Joined: Sat, 3. Jul 10, 23:23
x4

Re: Need for guide!! how to modify damage of Asgard main battery?

Post by sprIder »

If you want to use a 3rd party mod, take a look at this topic: viewtopic.php?p=5110340.

If you want to do it on your own, you have to know, that if you want to change something in a dlc or an other mod, you also have to transfer this file structure to you own mod:

If you want to change e.g. X4 Foundations\assets\fx\weaponfx\macros\bullet_arg_l_laser_01_mk1_macro.xml (bullet of the main game) your mod needs to be
X4 Foundations\extensions\YourMod\assets\fx\weaponfx\macros\bullet_arg_l_laser_01_mk1_macro.xml.

BUT, in your case, X4 Foundations\extensions\ego_dlc_terran\assets\fx\weaponfx\macros\bullet_atf_xl_beam_01_mk1_macro.xml, the mod file structure is different:
X4 Foundations\extensions\YourMod\extensions\ego_dlc_terran\assets\fx\weaponfx\macros\bullet_atf_xl_beam_01_mk1_macro.xml.

Now, just as described in viewtopic.php?t=354310, the bullet_atf_xl_beam_01_mk1_macro.xml contains following code:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<diff>
	<replace sel="/macros/macro/properties/damage/@value">33043</replace>
</diff>
"33043" is the new damage. --> The original damage (330426) is reduced by 90%. You can set this value to what ever you want.

Of course, I have assumed that you already read this: viewtopic.php?f=181&t=402452
Last edited by sprIder on Sun, 25. Aug 24, 17:30, edited 1 time in total.
ygdtrupt25
Posts: 2
Joined: Sat, 24. Aug 24, 20:53
x4

Re: Need for guide!! how to modify damage of Asgard main battery?

Post by ygdtrupt25 »

sprIder wrote: Sun, 25. Aug 24, 12:27 If you want to use a 3rd party mod, take a look at this topic: viewtopic.php?p=5110340.

If you want to do it on your own, you have to know, that if you want to change something in a dlc or an other mod, you also have to transfer this file structure to you own mod:

If you want to change e.g. X4 Foundations\assets\fx\weaponfx\macros\bullet_arg_l_laser_01_mk1_macro.xml (bullet of the main game) your mod needs to be
X4 Foundations\extensions\YourMod\assets\fx\weaponfx\macros\bullet_arg_l_laser_01_mk1_macro.xml.

BUT, in your case, X4 Foundations\extensions\ego_dlc_terran\assets\fx\weaponfx\macros\bullet_atf_xl_beam_01_mk1_macro.xml, the mod file structure is different:
X4 Foundations\extensions\YourMod\extensions\ego_dlc_terran\assets\fx\weaponfx\macros\bullet_atf_xl_beam_01_mk1_macro.xml.

Now, just as described in viewtopic.php?t=354310, the bullet_atf_xl_beam_01_mk1_macro.xml contains following code:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<diff>
	<replace sel="/macros/macro/properties/damage/@value">33043</replace>
</diff>
"33043" is the new damage. --> The original damage (330426) is reduced by 90%. You can set this value to what ever you want.

Of course, I have assumed that you already read this:

Code: Select all

https://forum.egosoft.com/viewtopic.php?f=181&t=402452
Helpful! it;s solved.

Return to “X4: Foundations - Scripts and Modding”